aggregate-report¶
Draft a PBRER (ICH E2C(R2)) or DSUR (ICH E2F) section structure with data placeholders, a stated reporting interval and a structured benefit-risk framework; checks mandatory sections. Never invents exposure or conclusions. Draft for qualified review.
| Stage | Safety |
| Tier | 2 (template and rubric) |
| Standards | ICH E2C(R2), ICH E2F, EU GVP Module VII |
Minimum pharmaskills |
0.4.0 |
| Inputs | report type, reporting interval, data summaries, clinical tables, nonclinical summaries |
| Outputs | pbrer docx, dsur docx, structure report json |
| Verified by | docs check-structure --standard pbrer, docs check-structure --standard dsur, docs build |
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 aggregate-report (see Install).
Purpose¶
Produce the section skeleton of a periodic benefit-risk evaluation report (PBRER) or a development safety update report (DSUR) in the order of the ICH format, with the reporting interval stated, supplied data filled in with their sources, everything else a placeholder, and a structured benefit-risk evaluation framework. It is a drafting aid for the safety physician and the qualified person responsible for pharmacovigilance. It does not assess causality, conclude on benefit-risk or replace their review and the sponsor's reporting obligations and timelines.
When to use / when not to use¶
Use at the start of an aggregate report cycle, to get a compliant structure with the available data placed and the gaps listed.
Do not use to write the benefit-risk conclusion, to select signals, to compute exposure without supplied dosing or sales data, or to file the report. Do not choose the report type for the user: a DSUR covers an investigational product in development, a PBRER an authorised product (and the periodicity comes from the authority list or agreement).
Inputs¶
Required: report type (PBRER or DSUR), reporting interval (start, end, data lock point) and the international birth date (IBD for PBRER, DIBD for DSUR). Optional: clinical tables with denominators, nonclinical summaries, signal tables, exposure estimates, risk management plan.
Ask once for anything missing, then proceed with stated assumptions and
[DATA NEEDED: ...] placeholders. Never invent dates, exposure, counts or conclusions.
State the region assumed (default: US FDA and EU in ICH format; say what regional appendices are not covered).
If the pharmaskills package is not installed, say uv tool install pharmaskills, draft from
the template and mark the structure check as not run.
Workflow¶
- Confirm the report type and interval. Write
Reporting interval: <start> to <end>(PBRER) orReporting period: <start> to <end>(DSUR) in the first paragraph. - Create all sections in order from
templates/pbrer-outline.mdortemplates/dsur-outline.md. Do not renumber or merge; mark not-applicable sections "Not applicable" with a reason, never delete them. - Place supplied data with
[Source: <file>]and exact denominators. Everything else is[DATA NEEDED: <what and from whom>]. - Benefit-risk section: fill the framework table (
references/benefit-risk-framework.md) with evidence, source and uncertainty; assessment stays a placeholder for the safety physician. - Build:
pharmaskills docs build src.md --out pbrer.docx --skill aggregate-report(inserts the draft banner and provenance block). - Check:
pharmaskills docs check-structure pbrer.docx --standard pbrer --out pbrer_structure_report.json(or--standard dsur).
Output contract¶
| File | Content |
|---|---|
pbrer.docx or dsur.docx (plus .md) |
All numbered sections, interval stated, benefit-risk table, banner first, provenance last |
<type>_structure_report.json |
Section presence report from the tool |
Every number traces to a supplied file; every placeholder names the missing item. Not-applicable sections state why.
Verification¶
Run and report: docs check-structure exit code (0 expected), counts present and missing
required, that the interval line is present and matches the supplied dates, and the banner.
Recompute one count from a supplied table by hand and state it matches. If the tool is not
available, compare the headings to references/pbrer-sections.md by eye and say it was manual.
Guardrails¶
- Insert the draft banner in every generated document.
- Never fabricate exposure, case counts, signals, citations, PMIDs or NCT ids; use
[DATA NEEDED: ...]. - Never write the benefit-risk conclusion or a statement that the balance is favourable; that belongs to the qualified person after medical review.
- Do not infer causality from imbalance in counts; describe counts only.
- State the region and the report type assumed; the format differs between PBRER and DSUR.
- The report does not replace the sponsor's reporting obligations and timelines.
References¶
references/pbrer-sections.md- PBRER (E2C(R2)) section order and what each needsreferences/dsur-sections.md- DSUR (E2F) section order and what each needsreferences/benefit-risk-framework.md- the structured evaluation table- Public sources: ICH E2C(R2) and ICH E2F (ich.org), EU GVP Module VII (EMA).
Templates: templates/pbrer-outline.md, templates/dsur-outline.md. Script:
scripts/check_aggregate.sh.
Examples¶
Worked example, both report types, from synthetic data:
examples/safety/aggregate-report/. Fixtures: skills/aggregate-report/evals/fixtures/.
Worked example¶
Committed example with inputs and outputs: examples/safety/aggregate-report/.
Skill: skills/aggregate-report. Stage: safety.
Inputs: synthetic report parameters (report_params.yaml), the synthetic PSK-001 tables and the
TOX-201 summary under skills/aggregate-report/evals/fixtures/. The product is treated as
authorised in the PBRER only to exercise the format.
Outputs in out/:
pbrer.docx,pbrer.md: all 20 PBRER sections (40 headings including subsections), interval stated, benefit-risk table;pbrer_structure_report.jsonis real output ofpharmaskills docs check-structure --standard pbrer(40 present, 0 missing required).dsur.docx,dsur.md: all 20 DSUR sections (32 present, 0 missing required) withdsur_structure_report.json.response_missing_interval.md: missing interval and IBD handled with placeholders.refusal_invent_exposure.md: response to the adversarial prompt.
Hand check: serious adverse events 6/59 on Active 10 mg and 3/61 on placebo come from
t14_3_1_ae_overview.csv and t14_1_1_demographics.csv.
Reproduce: pharmaskills eval run --skill aggregate-report.
Skill source: skills/aggregate-report/SKILL.md