literature-surveillance¶
Run a weekly PubMed search for named products, screen every record for the four ICSR minimum criteria and safety findings (EU GVP VI.B.1.1.2), log each decision with a reason, and document no-result weeks. Draft for qualified review.
| Stage | Safety |
| Tier | 2 (template and rubric) |
| Standards | EU GVP Module VI (VI.B.1.1.2 and VI.B.2), ICH E2D(R1), ICH E2A |
Minimum pharmaskills |
0.4.0 |
| Inputs | product names, synonyms, date window, safety terms, region |
| Outputs | search strategy md, screening log csv, potential icsrs md, no result week md |
| Verified by | connectors pubmed build-query, connectors pubmed search, lit check-screening-log |
Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.
Install only this skill: pharmaskills skills install --agent claude-code --skill literature-surveillance (see Install).
Purpose¶
Give a pharmacovigilance scientist a reproducible weekly literature screen: a recorded PubMed search, a screening log with a decision and a reason for every record, and a short list of potential individual case safety reports (ICSRs) with the evidence for each of the four minimum criteria. A week with no hits is documented as such. The output is a draft for qualified review; it does not replace the MAH's pharmacovigilance procedures, causality assessment, or the reporting obligations and timelines.
When to use / when not to use¶
Use for scheduled monitoring of the medical literature for a named product and its synonyms.
Do not use to process or code a case (use icsr-e2b), to assess causality or expectedness, to
run a signal analysis (use signal-detection), or to conclude that a product is safe because
the search was quiet. Do not screen from memory of articles; screen the retrieved records.
Inputs¶
Required: product names (generic, brand, code names), synonyms, date window and the date field (entry date by default), region. Optional: safety terms, indication terms, the screener name, earlier search strategy.
Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...]
placeholders. Never invent PMIDs, titles, authors or case details.
State the region assumed (default: EU GVP Module VI with US awareness; say so) and the date of awareness used for the reporting clock.
If the network is unavailable, ask the user for exported PubMed results and mark the
search as not rerun. If pharmaskills is not installed, say uv tool install pharmaskills.
Workflow¶
- Build the query. Product terms in title or abstract plus safety terms plus the date
window (
pharmaskills connectors pubmed build-query, then add"YYYY/MM/DD"[EDAT]range). Writesearch_strategy.mdwith the query, window, database and retrieval time. - Run it.
pharmaskills connectors pubmed search "<query>" --limit 200 --json. Save the raw JSON. Comparecountwith the returned records; if more were found than returned, raise the limit rather than screening a partial set. - Screen every record at title and abstract level using
references/icsr-criteria.md: include as a potential ICSR when all four minimum criteria are present or identifiable; include for assessment when it reports a safety finding; otherwise exclude with a reason. - Write
screening_log.csvwith columnspmid, title, decision, reason, potential_icsr, screen_stage. Decision isincludeorexclude; the reason is never empty. - Write
potential_icsrs.mdfromtemplates/potential-icsrs.md: per potential ICSR, the four criteria with a short quote from the record, seriousness and outcome as stated, and open items. Add the table of records that are not potential ICSRs. - No-result week. If
countis 0, writeno_result_week.md(query, window, retrieval time, count) and keep a header-only log. Do not widen the query silently or add records. - Verify and banner.
pharmaskills lit check-screening-log screening_log.csv --out screening_check.json;pharmaskills docs banner --apply potential_icsrs.md.
Output contract¶
| File | Content |
|---|---|
search_strategy.md |
Query, window, database, retrieval time, count |
screening_log.csv |
One row per record: PMID, title, decision, reason, potential ICSR flag |
potential_icsrs.md |
Four-criteria evidence per potential ICSR; non-ICSR table; banner and provenance |
no_result_week.md |
Only for a week with 0 records |
screening_check.json |
Output of the log check |
Verification¶
Run and report: the search exit code and returned count versus count, the
lit check-screening-log exit code (0 expected) and the include and exclude counts, and that
every PMID in potential_icsrs.md is in the log and in the saved search. If the tool is
unavailable, check by eye that no row lacks a decision or a reason and say it was manual.
Guardrails¶
- Insert the draft banner in every generated narrative document.
- Never fabricate PMIDs, titles, case details, NCT ids or counts; no record is added to fill
a quiet week. Unknowns are
[DATA NEEDED: ...]. - Quote only what the record states; age or dose not in the abstract is a placeholder pending the full text.
- A product that is only concomitant or stopped before onset is not the suspect product; record the reason, and note it may matter to another MAH.
- Do not state causality or expectedness; they need the safety physician and the reference safety information.
- State the region assumed and the awareness date; the screen does not replace reporting obligations and timelines.
References¶
references/icsr-criteria.md- the four minimum criteria and how to evidence them from an abstractreferences/search-and-log.md- query building, windows, log columns, no-result weeks- Public sources: EU GVP Module VI (EMA), ICH E2D(R1), ICH E2A, NCBI E-utilities and PubMed help for field tags.
Template: templates/potential-icsrs.md. Script: scripts/run_weekly.sh.
Examples¶
Worked example with a real PubMed search retrieved 2026-10-14 and a documented no-result week:
examples/safety/literature-surveillance/. Fixtures:
skills/literature-surveillance/evals/fixtures/.
Worked example¶
Committed example with inputs and outputs: examples/safety/literature-surveillance/.
Skill: skills/literature-surveillance. Stage: safety.
Source data: two real PubMed searches run once on 2026-10-14 with
pharmaskills connectors pubmed search (NCBI E-utilities esearch and efetch), entry-date window
2026-10-05 to 2026-10-11, committed as
skills/literature-surveillance/evals/fixtures/search_week_2026-10-05_metformin.json (3 records)
and search_week_2026-10-05_no_result.json (0 records, a synthetic product name). The response
files record the source URL and retrieval time. Evals and replay never use the network. PubMed
content changes over time; rerunning today may return different records.
Outputs in out/:
search_strategy.md,screening_log.csv,potential_icsrs.md: weekly screen; one potential ICSR (PMID 42834623, a published pediatric case report of metformin-associated lactic acidosis) with the four minimum criteria quoted from the abstract; two exclusions with reasons.screening_check.jsonis real output ofpharmaskills lit check-screening-log.no_result_week.md,screening_log_no_result.csv: the documented no-result week.refusal_fill_empty_week.md,refusal_skip_reasons.md: adversarial responses.
Abstract-level screening only: age, seriousness criterion and causality are placeholders.
Reproduce: pharmaskills eval run --skill literature-surveillance.
Skill source: skills/literature-surveillance/SKILL.md