Skip to content
Alpha: see what works today →
Menu

decisions/medical-knowledge-in-the-model.md on GitHub, at the commit these pages were built from

Medical knowledge in the model, not the protocol: what a pod gives a model looking for care gaps

Status: draft, 2026-10-30. The owner's direction of 2026-10-30, for phases 2–5 of the care-gap epic (#287). Amends readings-and-care-hypotheses.md: its rows "verdict", "reading of text" and "response to a care hypothesis" stand; its row "care hypothesis" keeps only the model's, since no rule raises one, and its Still open items about a rule's hypothesis (how a derived one is named, whether it needs a term) close. Amends version-content.md: its row "what rules read" and its outputs row "care hypothesis" no longer apply to a rule, and the B12 rule's guideline, open in both notes, closes with no rule to cite it. Depends on clinical-terms-follow-fhir.md.

Question

The care-gap epic planned rules: a query per gap ("long-term metformin and no B12 test"), with thresholds, windows and value sets as data citing a guideline, that raise a care hypothesis the same way every time. A model would find "the rest". Should medical knowledge of that kind (if a condition, then a test, at an interval) be in the protocol at all?

What makes it hard for a pod:

What others do

Sources: FHIR R4 Clinical Reasoning (https://hl7.org/fhir/R4/clinicalreasoning-module.html), CPG-on-FHIR (https://hl7.org/fhir/uv/cpg/), CRMI (https://hl7.org/fhir/uv/crmi/), eCQI Resource Center (https://ecqi.healthit.gov/), WHO SMART Guidelines (https://smart.who.int/), C-CDA (https://www.hl7.org/ccdasearch/), OMOP CDM 5.4 (https://ohdsi.github.io/CommonDataModel/cdm54.html), openEHR GDL2 (https://specifications.openehr.org/releases/CDS/latest/GDL2.html), ChronoEvo (https://arxiv.org/abs/2610.30631). The comparison: https://github.com/the-cascade-protocol/cascade-vocabulary/issues/287#issuecomment-6529455264.

Choice

thing prior art what we do borrowed or diverged Rules that cite it
medical knowledge (condition → test, interval) CPG-on-FHIR, CQL, eCQMs: artifacts kept out of the record resources none in the vocabulary: no care-rule queries, no rule feed. The model brings the knowledge, and says it is its own (#287) diverged from #287's first plan; agrees with the record resources, which carry no rules No rule cites this row.
what the pod gives a model FHIR read APIs; MCP read-only tools over the pod (cascade-mcp, over cascade-runtime/tools) whose first answers state each source's own values, with record citations and the scope of any absence (the-cascade-protocol/cascade-runtime-js#548; #316) borrowed MCP as the transport; the tools are ours No rule cites this row.
a care hypothesis readings-and-care-hypotheses.md row "care hypothesis" a model's only, minted once with its model version and the queries it ran; shown as unreviewed until the person accepts it (#287 lean g) amends that row: no rule-derived kind No rule cites this row.
how it is judged eCQM test decks; model evals an eval harness (packages/evals in cascade-runtime-js): synthetic people with machine-readable answer keys, pasted records as the control arm, blind scoring, token budgets, run off CI (the-cascade-protocol/cascade-runtime-js#549) diverged from test decks: there is no rule's expected output to test, only answers to judge No rule cites this row.

Why

Knowledge goes stale; records don't. (row "medical knowledge") A record says what a source said on a date and stays true of that. A rule says what a guideline said, and becomes wrong when the guideline changes. Keeping only records in the protocol means a protocol release never has to track guideline editions.

The model's breadth beats any rule set we could write. (row "medical knowledge") A rule set covers only the gaps someone coded. The model covers the long tail: a radiologist's follow-up nobody booked, a drug stopped at one hospital and active at another. Its weaknesses are applying a change precisely and giving the same answer twice. Those are why the pod checks facts, not why it should hold knowledge.

The pod's job is facts a model can't get wrong by reading. (row "what the pod gives a model") The comparison showed this job is still undone. A model reading pasted records saw every source's state, the reactions, the flags and the text. The views a model asks first showed one lead value per entry, and runs that asked one question deeper found the rest. The pod earns its place when its first answers carry everything the records say, merged and dated, at a fraction of the tokens, and that is measured, not assumed.

A hypothesis is the model's, so it is stored as the model's. (row "a care hypothesis") With no rule, nothing derives a hypothesis again on each run. What the model raised can be found again, compared after a model update, and answered by the person only if it is minted once, with what produced it, as readings-and-care-hypotheses.md already mints a model's.

An answer can only be judged, so it is judged against a key. (row "how it is judged") A test deck checks a rule's output against the output it must give. A model's answer varies from run to run and is right or wrong only against what the records show. So the harness keeps a key written before any run, scores answers blind, repeats each arm, and compares with the obvious alternative, pasted records.

Alternatives that lost

Still open

What would change our mind