@fbraza/pi-cite 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/package.json +5 -1
- package/skills/literature/SKILL.md +208 -0
- package/skills/literature/references/full-text-access-guide.md +34 -0
- package/skills/literature/references/preclinical-extraction-guide.md +215 -0
- package/skills/literature/references/pubmed_api_reference.md +298 -0
- package/skills/literature/references/pubmed_common_queries.md +453 -0
- package/skills/literature/references/pubmed_routine.md +93 -0
- package/skills/literature/references/pubmed_search_syntax.md +436 -0
- package/skills/literature/references/scihub_routine.md +40 -0
- package/skills/literature/references/semanticscholar_routine.md +50 -0
- package/skills/literature/scripts/export_all.py +53 -0
- package/skills/literature/scripts/extract_experiments.py +401 -0
- package/skills/literature/scripts/generate_table.py +96 -0
- package/skills/literature/scripts/scihub_pdf_resolver.py +289 -0
- package/skills/literature/scripts/synthesis.py +93 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
# Common PubMed Query Patterns
|
|
2
|
+
|
|
3
|
+
This reference provides practical examples of common PubMed search patterns for various research scenarios.
|
|
4
|
+
|
|
5
|
+
## General Research Queries
|
|
6
|
+
|
|
7
|
+
### Finding Recent Research on a Topic
|
|
8
|
+
```
|
|
9
|
+
breast cancer[tiab] AND 2023:2024[dp]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### Systematic Reviews on a Topic
|
|
13
|
+
```
|
|
14
|
+
(diabetes[tiab] OR diabetes mellitus[mh]) AND systematic review[pt]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Meta-Analyses
|
|
18
|
+
```
|
|
19
|
+
hypertension[tiab] AND meta-analysis[pt] AND 2020:2024[dp]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Clinical Trials
|
|
23
|
+
```
|
|
24
|
+
alzheimer disease[mh] AND randomized controlled trial[pt]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Finding Guidelines
|
|
28
|
+
```
|
|
29
|
+
asthma[tiab] AND (guideline[pt] OR practice guideline[pt])
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Disease-Specific Queries
|
|
33
|
+
|
|
34
|
+
### Cancer Research
|
|
35
|
+
```
|
|
36
|
+
# General cancer screening
|
|
37
|
+
cancer screening[tiab] AND systematic review[pt] AND 2020:2024[dp]
|
|
38
|
+
|
|
39
|
+
# Specific cancer type with treatment
|
|
40
|
+
lung cancer[tiab] AND immunotherapy[tiab] AND clinical trial[pt]
|
|
41
|
+
|
|
42
|
+
# Cancer genetics
|
|
43
|
+
breast neoplasms[mh] AND BRCA1[tiab] AND genetic testing[tiab]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Cardiovascular Disease
|
|
47
|
+
```
|
|
48
|
+
# Heart disease prevention
|
|
49
|
+
(heart disease[tiab] OR cardiovascular disease[mh]) AND prevention[tiab] AND 2022:2024[dp]
|
|
50
|
+
|
|
51
|
+
# Stroke treatment
|
|
52
|
+
stroke[mh] AND (thrombectomy[tiab] OR thrombolysis[tiab]) AND randomized controlled trial[pt]
|
|
53
|
+
|
|
54
|
+
# Hypertension management
|
|
55
|
+
hypertension[mh]/drug therapy AND comparative effectiveness[tiab]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Infectious Diseases
|
|
59
|
+
```
|
|
60
|
+
# COVID-19 research
|
|
61
|
+
COVID-19[tiab] AND (vaccine[tiab] OR vaccination[tiab]) AND 2023:2024[dp]
|
|
62
|
+
|
|
63
|
+
# Antibiotic resistance
|
|
64
|
+
(antibiotic resistance[tiab] OR drug resistance, bacterial[mh]) AND systematic review[pt]
|
|
65
|
+
|
|
66
|
+
# Tuberculosis treatment
|
|
67
|
+
tuberculosis[mh]/drug therapy AND (multidrug-resistant[tiab] OR MDR-TB[tiab])
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Neurological Disorders
|
|
71
|
+
```
|
|
72
|
+
# Alzheimer's disease
|
|
73
|
+
alzheimer disease[mh] AND (diagnosis[sh] OR biomarkers[tiab]) AND 2020:2024[dp]
|
|
74
|
+
|
|
75
|
+
# Parkinson's disease treatment
|
|
76
|
+
parkinson disease[mh] AND treatment[tiab] AND clinical trial[pt]
|
|
77
|
+
|
|
78
|
+
# Multiple sclerosis
|
|
79
|
+
multiple sclerosis[mh] AND disease modifying[tiab] AND review[pt]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Diabetes
|
|
83
|
+
```
|
|
84
|
+
# Type 2 diabetes management
|
|
85
|
+
diabetes mellitus, type 2[mh] AND (lifestyle[tiab] OR diet[tiab]) AND randomized controlled trial[pt]
|
|
86
|
+
|
|
87
|
+
# Diabetes complications
|
|
88
|
+
diabetes mellitus[mh] AND (complications[sh] OR diabetic neuropathy[mh])
|
|
89
|
+
|
|
90
|
+
# New diabetes drugs
|
|
91
|
+
diabetes mellitus, type 2[mh] AND (GLP-1[tiab] OR SGLT2[tiab]) AND 2022:2024[dp]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Drug and Treatment Research
|
|
95
|
+
|
|
96
|
+
### Drug Efficacy Studies
|
|
97
|
+
```
|
|
98
|
+
# Compare two drugs
|
|
99
|
+
(drug A[nm] OR drug B[nm]) AND condition[mh] AND comparative effectiveness[tiab]
|
|
100
|
+
|
|
101
|
+
# Drug side effects
|
|
102
|
+
medication name[nm] AND (adverse effects[sh] OR side effects[tiab])
|
|
103
|
+
|
|
104
|
+
# Drug combination therapy
|
|
105
|
+
(aspirin[nm] AND clopidogrel[nm]) AND acute coronary syndrome[mh]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Treatment Comparisons
|
|
109
|
+
```
|
|
110
|
+
# Surgery vs medication
|
|
111
|
+
condition[mh] AND (surgery[tiab] OR surgical[tiab]) AND (medication[tiab] OR drug therapy[sh]) AND comparative study[pt]
|
|
112
|
+
|
|
113
|
+
# Different surgical approaches
|
|
114
|
+
procedure[tiab] AND (laparoscopic[tiab] OR open surgery[tiab]) AND outcomes[tiab]
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Alternative Medicine
|
|
118
|
+
```
|
|
119
|
+
# Herbal supplements
|
|
120
|
+
(herbal medicine[mh] OR phytotherapy[mh]) AND condition[tiab] AND clinical trial[pt]
|
|
121
|
+
|
|
122
|
+
# Acupuncture
|
|
123
|
+
acupuncture[mh] AND pain[tiab] AND randomized controlled trial[pt]
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Diagnostic Research
|
|
127
|
+
|
|
128
|
+
### Diagnostic Tests
|
|
129
|
+
```
|
|
130
|
+
# Sensitivity and specificity
|
|
131
|
+
test name[tiab] AND condition[tiab] AND (sensitivity[tiab] AND specificity[tiab])
|
|
132
|
+
|
|
133
|
+
# Diagnostic imaging
|
|
134
|
+
(MRI[tiab] OR magnetic resonance imaging[tiab]) AND brain tumor[tiab] AND diagnosis[sh]
|
|
135
|
+
|
|
136
|
+
# Lab test evaluation
|
|
137
|
+
biomarker name[tiab] AND disease[tiab] AND (diagnostic[tiab] OR screening[tiab])
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Screening Programs
|
|
141
|
+
```
|
|
142
|
+
# Cancer screening
|
|
143
|
+
cancer type[tiab] AND screening[tiab] AND (cost effectiveness[tiab] OR benefit[tiab])
|
|
144
|
+
|
|
145
|
+
# Population screening
|
|
146
|
+
condition[tiab] AND mass screening[mh] AND public health[tiab]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Population-Specific Queries
|
|
150
|
+
|
|
151
|
+
### Pediatric Research
|
|
152
|
+
```
|
|
153
|
+
# Children with specific condition
|
|
154
|
+
condition[tiab] AND (child[mh] OR pediatric[tiab]) AND treatment[tiab]
|
|
155
|
+
|
|
156
|
+
# Age-specific
|
|
157
|
+
disease[tiab] AND (infant[mh] OR child, preschool[mh])
|
|
158
|
+
|
|
159
|
+
# Pediatric dosing
|
|
160
|
+
drug name[nm] AND pediatric[tiab] AND (dosing[tiab] OR dose[tiab])
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Geriatric Research
|
|
164
|
+
```
|
|
165
|
+
# Elderly population
|
|
166
|
+
condition[tiab] AND (aged[mh] OR elderly[tiab] OR geriatric[tiab])
|
|
167
|
+
|
|
168
|
+
# Aging and disease
|
|
169
|
+
aging[mh] AND disease[tiab] AND mechanism[tiab]
|
|
170
|
+
|
|
171
|
+
# Polypharmacy
|
|
172
|
+
polypharmacy[tiab] AND elderly[tiab] AND adverse effects[tiab]
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Pregnant Women
|
|
176
|
+
```
|
|
177
|
+
# Pregnancy and medications
|
|
178
|
+
drug name[nm] AND (pregnancy[mh] OR pregnant women[tiab]) AND safety[tiab]
|
|
179
|
+
|
|
180
|
+
# Pregnancy complications
|
|
181
|
+
pregnancy complication[tiab] AND management[tiab]
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Sex-Specific Research
|
|
185
|
+
```
|
|
186
|
+
# Female-specific
|
|
187
|
+
condition[tiab] AND female[mh] AND hormones[tiab]
|
|
188
|
+
|
|
189
|
+
# Male-specific
|
|
190
|
+
disease[tiab] AND male[mh] AND risk factors[tiab]
|
|
191
|
+
|
|
192
|
+
# Sex differences
|
|
193
|
+
condition[tiab] AND (sex factors[mh] OR gender differences[tiab])
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Epidemiology and Public Health
|
|
197
|
+
|
|
198
|
+
### Prevalence Studies
|
|
199
|
+
```
|
|
200
|
+
disease[tiab] AND (prevalence[tiab] OR epidemiology[sh]) AND country/region[tiab]
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Incidence Studies
|
|
204
|
+
```
|
|
205
|
+
condition[tiab] AND incidence[tiab] AND population[tiab] AND 2020:2024[dp]
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Risk Factors
|
|
209
|
+
```
|
|
210
|
+
disease[mh] AND (risk factors[mh] OR etiology[sh]) AND cohort study[tiab]
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Global Health
|
|
214
|
+
```
|
|
215
|
+
disease[tiab] AND (developing countries[mh] OR low income[tiab]) AND burden[tiab]
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Health Disparities
|
|
219
|
+
```
|
|
220
|
+
condition[tiab] AND (health disparities[tiab] OR health equity[tiab]) AND minority groups[tiab]
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Methodology-Specific Queries
|
|
224
|
+
|
|
225
|
+
### Research Methodology
|
|
226
|
+
|
|
227
|
+
#### Cohort Studies
|
|
228
|
+
```
|
|
229
|
+
condition[tiab] AND cohort study[tiab] AND prospective[tiab]
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
#### Case-Control Studies
|
|
233
|
+
```
|
|
234
|
+
disease[tiab] AND case-control studies[mh] AND risk factors[tiab]
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
#### Cross-Sectional Studies
|
|
238
|
+
```
|
|
239
|
+
condition[tiab] AND cross-sectional studies[mh] AND prevalence[tiab]
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Statistical Methods
|
|
243
|
+
```
|
|
244
|
+
# Machine learning in medicine
|
|
245
|
+
(machine learning[tiab] OR artificial intelligence[tiab]) AND diagnosis[tiab] AND validation[tiab]
|
|
246
|
+
|
|
247
|
+
# Bayesian analysis
|
|
248
|
+
condition[tiab] AND bayes theorem[mh] AND clinical decision[tiab]
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Genetic and Molecular Research
|
|
252
|
+
```
|
|
253
|
+
# GWAS studies
|
|
254
|
+
disease[tiab] AND (genome-wide association study[tiab] OR GWAS[tiab])
|
|
255
|
+
|
|
256
|
+
# Gene expression
|
|
257
|
+
gene name[tiab] AND (gene expression[mh] OR mRNA[tiab]) AND disease[tiab]
|
|
258
|
+
|
|
259
|
+
# Proteomics
|
|
260
|
+
condition[tiab] AND proteomics[mh] AND biomarkers[tiab]
|
|
261
|
+
|
|
262
|
+
# CRISPR research
|
|
263
|
+
CRISPR[tiab] AND (gene editing[tiab] OR genome editing[tiab]) AND 2020:2024[dp]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Author and Institution Queries
|
|
267
|
+
|
|
268
|
+
### Finding Work by Specific Author
|
|
269
|
+
```
|
|
270
|
+
# Single author
|
|
271
|
+
smith ja[au] AND cancer[tiab] AND 2023:2024[dp]
|
|
272
|
+
|
|
273
|
+
# First author only
|
|
274
|
+
jones m[1au] AND cardiology[tiab]
|
|
275
|
+
|
|
276
|
+
# Multiple authors from same group
|
|
277
|
+
(smith ja[au] OR jones m[au] OR wilson k[au]) AND research topic[tiab]
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Institution-Specific Research
|
|
281
|
+
```
|
|
282
|
+
# University affiliation
|
|
283
|
+
harvard[affil] AND cancer research[tiab] AND 2023:2024[dp]
|
|
284
|
+
|
|
285
|
+
# Hospital research
|
|
286
|
+
"mayo clinic"[affil] AND clinical trial[pt]
|
|
287
|
+
|
|
288
|
+
# Country-specific
|
|
289
|
+
japan[affil] AND robotics[tiab] AND surgery[tiab]
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Journal-Specific Queries
|
|
293
|
+
|
|
294
|
+
### High-Impact Journals
|
|
295
|
+
```
|
|
296
|
+
# Specific journal
|
|
297
|
+
nature[ta] AND genetics[tiab] AND 2024[dp]
|
|
298
|
+
|
|
299
|
+
# Multiple journals
|
|
300
|
+
(nature[ta] OR science[ta] OR cell[ta]) AND immunology[tiab]
|
|
301
|
+
|
|
302
|
+
# Journal with ISSN
|
|
303
|
+
0028-4793[issn] AND clinical trial[pt]
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
## Citation and Reference Queries
|
|
307
|
+
|
|
308
|
+
### Finding Specific Articles
|
|
309
|
+
```
|
|
310
|
+
# By PMID
|
|
311
|
+
12345678[pmid]
|
|
312
|
+
|
|
313
|
+
# By DOI
|
|
314
|
+
10.1056/NEJMoa123456[doi]
|
|
315
|
+
|
|
316
|
+
# By first author and year
|
|
317
|
+
smith ja[1au] AND 2023[dp] AND cancer[tiab]
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Finding Cited Work
|
|
321
|
+
```
|
|
322
|
+
# Related articles
|
|
323
|
+
Similar Articles feature from any PubMed result
|
|
324
|
+
|
|
325
|
+
# By keyword in references
|
|
326
|
+
Use "Cited by" links when available
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
## Advanced Combination Queries
|
|
330
|
+
|
|
331
|
+
### Comprehensive Literature Review
|
|
332
|
+
```
|
|
333
|
+
(disease name[tiab] OR disease name[mh]) AND
|
|
334
|
+
((treatment[tiab] OR therapy[tiab] OR management[tiab]) OR
|
|
335
|
+
(diagnosis[tiab] OR screening[tiab]) OR
|
|
336
|
+
(epidemiology[tiab] OR prevalence[tiab])) AND
|
|
337
|
+
(systematic review[pt] OR meta-analysis[pt] OR review[pt]) AND
|
|
338
|
+
2019:2024[dp] AND english[la]
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Precision Medicine Query
|
|
342
|
+
```
|
|
343
|
+
(precision medicine[tiab] OR personalized medicine[tiab] OR pharmacogenomics[mh]) AND
|
|
344
|
+
cancer[tiab] AND
|
|
345
|
+
(biomarkers[tiab] OR genetic testing[tiab]) AND
|
|
346
|
+
clinical application[tiab] AND
|
|
347
|
+
2020:2024[dp]
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### Translational Research
|
|
351
|
+
```
|
|
352
|
+
(basic science[tiab] OR bench to bedside[tiab] OR translational medical research[mh]) AND
|
|
353
|
+
disease[tiab] AND
|
|
354
|
+
(clinical trial[pt] OR clinical application[tiab]) AND
|
|
355
|
+
2020:2024[dp]
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
## Quality Filters
|
|
359
|
+
|
|
360
|
+
### High-Quality Evidence
|
|
361
|
+
```
|
|
362
|
+
condition[tiab] AND
|
|
363
|
+
(randomized controlled trial[pt] OR systematic review[pt] OR meta-analysis[pt]) AND
|
|
364
|
+
humans[mh] AND
|
|
365
|
+
english[la] AND
|
|
366
|
+
2020:2024[dp]
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
### Free Full Text Articles
|
|
370
|
+
```
|
|
371
|
+
topic[tiab] AND free full text[sb] AND 2023:2024[dp]
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### Articles with Abstracts
|
|
375
|
+
```
|
|
376
|
+
condition[tiab] AND hasabstract[text] AND review[pt]
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
## Staying Current
|
|
380
|
+
|
|
381
|
+
### Latest Publications
|
|
382
|
+
```
|
|
383
|
+
topic[tiab] AND 2024[dp] AND english[la]
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Preprints and Early Access
|
|
387
|
+
```
|
|
388
|
+
topic[tiab] AND (epub ahead of print[tiab] OR publisher[sb])
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Setting Up Alerts
|
|
392
|
+
```
|
|
393
|
+
# Create search and save to My NCBI
|
|
394
|
+
# Enable email alerts for new matching articles
|
|
395
|
+
topic[tiab] AND (randomized controlled trial[pt] OR systematic review[pt])
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
## COVID-19 Specific Queries
|
|
399
|
+
|
|
400
|
+
### Vaccine Research
|
|
401
|
+
```
|
|
402
|
+
(COVID-19[tiab] OR SARS-CoV-2[tiab]) AND
|
|
403
|
+
(vaccine[tiab] OR vaccination[tiab]) AND
|
|
404
|
+
(efficacy[tiab] OR effectiveness[tiab]) AND
|
|
405
|
+
2023:2024[dp]
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### Long COVID
|
|
409
|
+
```
|
|
410
|
+
(long covid[tiab] OR post-acute covid[tiab] OR PASC[tiab]) AND
|
|
411
|
+
(symptoms[tiab] OR treatment[tiab])
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### COVID Treatment
|
|
415
|
+
```
|
|
416
|
+
COVID-19[tiab] AND
|
|
417
|
+
(antiviral[tiab] OR monoclonal antibody[tiab] OR treatment[tiab]) AND
|
|
418
|
+
randomized controlled trial[pt]
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
## Tips for Constructing Queries
|
|
422
|
+
|
|
423
|
+
### 1. PICO Framework
|
|
424
|
+
Use PICO (Population, Intervention, Comparison, Outcome) to structure clinical queries:
|
|
425
|
+
|
|
426
|
+
```
|
|
427
|
+
P: diabetes mellitus, type 2[mh]
|
|
428
|
+
I: metformin[nm]
|
|
429
|
+
C: lifestyle modification[tiab]
|
|
430
|
+
O: glycemic control[tiab]
|
|
431
|
+
|
|
432
|
+
Query: diabetes mellitus, type 2[mh] AND (metformin[nm] OR lifestyle modification[tiab]) AND glycemic control[tiab]
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
### 2. Iterative Refinement
|
|
436
|
+
Start broad, review results, refine:
|
|
437
|
+
```
|
|
438
|
+
1. diabetes → too broad
|
|
439
|
+
2. diabetes mellitus type 2 → better
|
|
440
|
+
3. diabetes mellitus, type 2[mh] AND metformin[nm] → more specific
|
|
441
|
+
4. diabetes mellitus, type 2[mh] AND metformin[nm] AND randomized controlled trial[pt] → focused
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### 3. Use Search History
|
|
445
|
+
Combine previous searches in Advanced Search:
|
|
446
|
+
```
|
|
447
|
+
#1: diabetes mellitus, type 2[mh]
|
|
448
|
+
#2: cardiovascular disease[mh]
|
|
449
|
+
#3: #1 AND #2 AND risk factors[tiab]
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
### 4. Save Effective Searches
|
|
453
|
+
Create My NCBI account to save successful queries for future use and set up automatic alerts.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# PubMed E-utilities — Routine Quick-Reference
|
|
2
|
+
|
|
3
|
+
Quick-start for routine literature searches (≤200 PMIDs, common field tags). For batch operations, history server, or all 9 endpoints → load `pubmed_api_reference.md`. For advanced search syntax → load `pubmed_search_syntax.md`. For query templates by scenario → load `pubmed_common_queries.md`.
|
|
4
|
+
|
|
5
|
+
## Core Endpoints (Routine)
|
|
6
|
+
|
|
7
|
+
| Endpoint | Purpose | When to use |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `esearch.fcgi` | Search and retrieve PMIDs | Every PubMed search |
|
|
10
|
+
| `efetch.fcgi` | Download full records / abstracts | Retrieving paper details |
|
|
11
|
+
| `esummary.fcgi` | Get document summaries (title, authors, journal) | Quick metadata checks |
|
|
12
|
+
|
|
13
|
+
## Search (ESearch)
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Parameters (routine):**
|
|
20
|
+
```
|
|
21
|
+
db=pubmed
|
|
22
|
+
term=<query>
|
|
23
|
+
retmax=<N> # max results (default 20, max 10000 for routine queries)
|
|
24
|
+
retmode=json
|
|
25
|
+
sort=relevance # or "pub_date", "first_author"
|
|
26
|
+
datetype=pdat
|
|
27
|
+
mindate=YYYY/MM/DD
|
|
28
|
+
maxdate=YYYY/MM/DD
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Fetch Abstracts (EFetch)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Parameters:**
|
|
38
|
+
```
|
|
39
|
+
db=pubmed
|
|
40
|
+
id=<PMID1,PMID2,...> # comma-separated, max ~200 for routine
|
|
41
|
+
rettype=abstract # or "medline", "xml", "uilist"
|
|
42
|
+
retmode=text # or "xml"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Most-Used Field Tags
|
|
46
|
+
|
|
47
|
+
| Tag | Meaning |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `[tiab]` | Title or abstract (most common for keyword search) |
|
|
50
|
+
| `[mh]` | MeSH term (includes narrower terms automatically) |
|
|
51
|
+
| `[majr]` | MeSH term as major topic only |
|
|
52
|
+
| `[pt]` | Publication type |
|
|
53
|
+
| `[nm]` | Substance name (for drugs/compounds) |
|
|
54
|
+
| `[au]` / `[1au]` / `[lastau]` | Author / first author / last author |
|
|
55
|
+
| `[dp]` | Publication date |
|
|
56
|
+
| `[la]` | Language |
|
|
57
|
+
| `[affil]` | Affiliation |
|
|
58
|
+
|
|
59
|
+
## Routine Query Patterns
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
# Systematic review with date range
|
|
63
|
+
(topic[mh] OR topic[tiab]) AND systematic review[pt] AND 2020:2024[dp]
|
|
64
|
+
|
|
65
|
+
# Free full-text RCTs on a drug for a disease
|
|
66
|
+
drug[nm] AND disease[mh] AND randomized controlled trial[pt] AND free full text[sb]
|
|
67
|
+
|
|
68
|
+
# PICO: Population + Intervention/Comparison + Outcome
|
|
69
|
+
disease[mh] AND (drug_A[nm] OR drug_B[tiab]) AND outcome[tiab] AND randomized controlled trial[pt]
|
|
70
|
+
|
|
71
|
+
# Gene + disease + expression
|
|
72
|
+
gene_name[tiab] AND (gene expression[mh] OR mRNA[tiab]) AND disease[tiab]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Python (Biopython)
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
from Bio import Entrez
|
|
79
|
+
Entrez.email = "your@email.com"
|
|
80
|
+
|
|
81
|
+
handle = Entrez.esearch(db="pubmed", term="macrophage[mh] AND lung transplantation[mh]",
|
|
82
|
+
retmax=200, usehistory="y")
|
|
83
|
+
record = Entrez.read(handle)
|
|
84
|
+
pmids = record["IdList"]
|
|
85
|
+
|
|
86
|
+
fetch_handle = Entrez.efetch(db="pubmed", id=",".join(pmids),
|
|
87
|
+
rettype="abstract", retmode="text")
|
|
88
|
+
abstracts = fetch_handle.read()
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Rate Limits
|
|
92
|
+
|
|
93
|
+
3 requests/sec without API key; 10/sec with NCBI API key. Add `api_key=YOUR_KEY` parameter for higher throughput.
|