| name | pgx-cpic-lookup |
| kind | oneshot |
| domain | pgx |
| description | Deterministic CPIC pharmacogenomics lookup over the patient's current medications. Pure code, no LLM. Emits Tier A/B for CPIC Level A/B gene-drug pairs; flags a missing genotype instead of ever directing a dose change. |
pgx-cpic-lookup
A deterministic specialist (spec §7). For each current medication it checks
whether a CPIC gene-drug pair exists and emits an EvidenceRecord:
- CPIC Level A pair -> Tier A
- CPIC Level B pair -> Tier B
- no pair -> nothing
The specific dosing guidance depends on the patient's metabolizer genotype. When no
genotype is on file (the normal demo case) the record states the pair exists and
flags the gap in confidence_note. It never emits a dose directive — the code
gate would block it, and next-data-pgx-coverage is what turns that gap into a
question for the care team.
Entrypoint: specialist.run_specialist(profile, ctx).