heor-model¶
Compute an ICER with dominance logic and a one-way sensitivity table, and a multi-year budget impact, from supplied costs, QALYs, population and uptake; write a summary and an Excel model. Use for early HEOR and market access drafts.
| Stage | Medical and access |
| Tier | 1 (deterministic tool) |
| Standards | ISPOR good practice reports, CHEERS 2022, NICE health technology evaluations manual |
Minimum pharmaskills |
0.3.0 |
| Inputs | strategy costs, strategy qalys, wtp threshold, population, uptake |
| Outputs | heor summary md, model xlsx, icer json, budget impact json |
| Verified by | stats icer, stats budget-impact |
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 heor-model (see Install).
Purpose¶
Give a market access or health economics lead a transparent first calculation: incremental cost-effectiveness ratio (ICER) with dominance handling, a one-way sensitivity table, and a budget impact by year, built from inputs the user supplies, with a short summary and a workbook. It is a draft calculation, not a full health economic model.
When to use / when not to use¶
Use for early value assessment, a back-of-envelope ICER and budget impact for an internal discussion, or to structure what a full model needs.
Do not use for: building Markov or partitioned survival models, probabilistic sensitivity analysis, indirect treatment comparison, submission-ready models, or inventing inputs. Do not describe a result as an HTA body's decision.
Inputs¶
Required: for each strategy a name, cost per patient and QALYs per patient (the comparator first); for budget impact the eligible population per year, uptake per year, and annual cost per patient for the intervention and the comparator. Optional: willingness-to-pay threshold, perspective, time horizon and discount rates, sources.
Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...]
placeholders. Never invent costs, QALYs, utilities, population or uptake. State the perspective,
the currency and the region assumed (none unless stated).
If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then
produce the template-only summary marked unverified.
Workflow¶
- Collect inputs in a table with source for each value; flag any without a source.
- ICER.
pharmaskills stats icer --strategy "NAME:COST:EFFECT" ... --wtp <x> --vary-pct 20 --out icer.json, comparator first, the intervention of interest last (the tool varies the first and last strategies in the sensitivity table). With three or more strategies the table shows dominated and extendedly dominated options; report each by name. - Interpret quadrants. Northeast: ICER against the threshold. Southeast (cheaper, more effective): dominant. Northwest (costlier, less effective): dominated. A negative ICER is not "cost saving" unless the intervention is also more effective: always state the quadrant.
- Budget impact.
pharmaskills stats budget-impact --population p1,p2,p3 --uptake u1,u2,u3 --cost-intervention <c> --cost-comparator <c> --vary-pct 20 --out budget_impact.json. Report each year, the cumulative total and that the total equals the sum of the years. - Sensitivity. Present the tornado table from both tools; say which input drives the result, and which input changes the conclusion relative to the threshold.
- Write
heor_summary.mdfromtemplates/heor-summary.mdandmodel.xlsx(openpyxl) with sheets Inputs, ICER, Sensitivity, Budget impact. Insert the draft banner and a provenance block (pharmaskills docs banner --apply heor_summary.md).
Output contract¶
| File | Content |
|---|---|
heor_summary.md |
Summary, inputs, ICER table, sensitivity, budget impact by year, limitations |
model.xlsx |
Inputs, ICER, Sensitivity, Budget impact, Budget sensitivity sheets with banner row |
icer*.json, budget_impact.json |
Raw tool output |
Quote only numbers present in the tool JSON or the user's inputs. State the threshold used and that it is a user input.
Verification¶
Run and report exit codes of both tools. Recompute the ICER by hand (incremental cost divided by incremental effect) and the budget impact (population x uptake x cost difference) for one year and confirm they match. Check that the yearly impacts sum to the total and that any dominated option is named as dominated. Verify the workbook values equal the JSON values.
Guardrails¶
- Region: state the payer or HTA perspective and region assumed (for example US payer, NICE in the UK, EU member-state HTA); the model is not region-independent and the default is a US payer perspective.
- Insert the draft banner in every generated document; never call the output a validated economic model or HTA-ready.
- Never fabricate costs, QALYs, utilities, population, uptake, sources or citations; unknowns
are
[DATA NEEDED: ...]. - Never present a dominated strategy as cost-effective, or a negative ICER without its quadrant.
- State that sensitivity here is one-way and deterministic, not probabilistic.
- Thresholds, discount rates and perspectives are set by the target HTA body: do not assume.
- State the region assumed.
References¶
references/icer-methods.md- ICER, dominance, net monetary benefit, quadrantsreferences/budget-impact.md- budget impact structure and reporting- Public sources: ISPOR task force reports on budget impact analysis and cost-effectiveness analysis, CHEERS 2022, NICE health technology evaluations manual.
Template: templates/heor-summary.md. Script: scripts/run_icer.sh.
Examples¶
Worked example with a dominated option: examples/medical-commercial/heor-model/. Fixture:
skills/heor-model/evals/fixtures/heor_inputs.yaml.
Worked example¶
Committed example with inputs and outputs: examples/medical-commercial/heor-model/.
Synthetic inputs (skills/heor-model/evals/fixtures/heor_inputs.yaml): standard care (cost
12000, 2.10 QALYs), Drug A (30000, 2.60), Drug C (36000, 2.30); budget impact over three years.
icer_two_strategies.json,icer_three_strategies.json,budget_impact.json: real output ofpharmaskills stats icerandbudget-impact. Hand check: ICER = 18000 / 0.5 = 36000; Drug C is dominated by Drug A; year net impacts 2000000, 4200000, 6600000 sum to 12800000.heor_summary.mdandmodel.xlsx(openpyxl, values copied from the JSON).refusal_dominated_credit.mdandrefusal_invent_inputs.md: correct responses to the adversarial prompts.
Skill source: skills/heor-model/SKILL.md