By Garima Walia, CEO
The most dangerous output a clinical AI system can produce is not a wrong number in a red box. It is a fluent paragraph written over a hole in the chart.
A missing laboratory result, a problem list that was never retrieved, or a value the source marked as unknown are not invitations to guess. They are states the product has to represent, show to a person, and sometimes stop on. When the model fills the gap anyway — inferring a normal value, treating a missing allergy list as “no known allergies,” or drafting a complete-sounding summary from a partial extract — the user is left with something that looks finished and is not.
At Halkwinds, we build healthcare and enterprise AI for production workflows. The question we want in a design review is not “can the model write this?” It is “what does the system do when the evidence is not there yet?”
Missing is not one thing
Three holes in a chart are easy to confuse and should not be treated the same way.
The first is not present in the source. The electronic health record, or the FHIR server in front of it, truly does not have the element. Under US Core’s missing-data rules (v9.0.0), if a Must Support element has a minimum cardinality of zero and the source does not have the data, the responder omits the element. A client should interpret that omission as “not present in the responder’s system” — not as a clinical negative, and not as permission to invent a value.
The second is expected, but not known. For mandatory elements (minimum cardinality greater than zero), US Core requires the element to remain in the resource, with a reason. HL7 FHIR defines a data-absent-reason extension for this: a coded explanation of why the expected value is missing. The value set distinguishes cases such as unknown, asked-unknown, temp-unknown, not-asked, masked, unsupported, error, not-performed, and not-applicable. Those codes are not decoration. masked is not not-performed. temp-unknown is not “the patient does not have this.” If the model cannot see the reason, or the product discards the extension on ingest, you have already thrown away the signal that should change the next action.
The third is not yet retrieved by you. The source may have the data, but your connector timed out, the token did not cover that resource type, the section is stale, or the job has not run. That is an integration state, not a clinical finding. Treating it as “the source does not have this” is how a pre-visit summary ships with silent gaps.
The implication is simple: absent, unknown, suppressed, and not-yet-fetched must be first-class states in the domain model, not empty strings that a prompt will paper over.
What goes wrong when the model fills the gap
Language models are good at sounding complete. That is a liability in a clinical workflow.
A draft note that never mentions a pending lab can read as if the lab were unremarkable. A risk score computed on imputed “normals” can look calibrated in a notebook and be unsafe on a Monday morning census. An agent allowed to “just continue” will write a narrative, a care-gap flag, or a patient message from whatever subset of the chart arrived, and the reviewer will have to hunt for what was left out.
The failure is often upstream of the model. If retrieval returns tidy JSON with missing fields set to null, and the prompt says “summarize this patient,” the model will do what it was asked. The product never gave it a way to say “I do not have enough to act.”
Evaluation quietly encourages the same habit. If the test set is full of complete charts, and the score is fluency, accuracy, or “the clinician accepted the draft,” the system is rewarded on easy cases. Incomplete, stale, and suppressed records — the ones that matter in production — never appear as a first-class slice.
This is not an argument against clinical AI. It is an argument against treating completeness as a preprocessing detail.
Design the “not yet known” path as a product feature
The FDA, Health Canada, and the UK MHRA’s Good Machine Learning Practice guiding principles are useful here even when the product is not a regulated device. Principle 6 asks that model design reflect uncertainty and variability in the inputs, not only the happy path. Principle 7 emphasizes the human-AI team, not the model in isolation. Principle 9 says users should get clear information about acceptable inputs, known limitations, and how the output fits the workflow.
That becomes a few concrete choices.
Name the states. At minimum: found and usable; found but stale; absent with a reason; not yet retrieved; insufficient to act. Store the reason, the time of last retrieval, and the source, and pass those fields to the model and the interface.
Make abstention a legal output. “Cannot complete this step” should be a structured result with a list of missing or stale items, not a vague apology in prose. For an agent, that means stop or escalate — not improvise the next tool call.
Show the gap to a person. The reviewer should see what was used, what was missing, and why, without opening a second system. A draft that hides its holes trains people to trust the wrong thing. A draft that lists “hemoglobin not in the extract as of 07:12; last potassium is eight days old” is usable.
Do not impute clinical values just to keep the pipeline moving. If a feature is required for a score, wait, request the artifact, or decline to score. Filling a missing lab with a training-set mean belongs in a written risk analysis, not in a default fillna.
Fail the workflow in a defined direction. When the evidence is insufficient, the safe default is almost never “approve,” “no risk,” or “send the letter.” It is a queue for a clinician or specialist, with the evidence pack attached.
That is consistent with how we approach healthcare software and interoperability: the AI layer is only as trustworthy as the record it can actually see. The integration patterns that make that record trustworthy are a separate design problem, which we cover in our FHIR and EHR integration guide. This article is about what the product should do once those holes are visible.
A short checklist for the next design review
Use this as a pass/fail list.
- Can the system tell “source does not have this” from “we have not retrieved it yet” from “the source marked it unknown or masked”?
- Are FHIR
data-absent-reasoncodes (and equivalent source flags) preserved through ingest, or stripped on the way to the model? - Is “insufficient evidence” a first-class output, with a machine-readable list of gaps, or only a sentence in a generated paragraph?
- Does every user-facing draft or score show the evidence that was used and the evidence that was missing?
- Are agents required to stop or escalate when a required section is absent or stale, or can they continue generating?
- Do evaluation sets include incomplete, stale, and suppressed charts — and do you score appropriate abstention as a success, not a failure?
- Is there a written rule for whether the system waits, requests, or declines when a required input is missing?
- Are those events logged (inputs, reason codes, model or rules version, and the action taken) so a later review can see why the system did not act?
- Have you told users, in the product, what inputs are acceptable and when not to rely on the output — the essence of GMLP principle 9?
- If this workflow were shown to a clinician with two holes in the chart, would they rather have your current draft, or a shorter draft plus a visible gap list?
If you cannot answer the first three with a yes, the model is not what needs another week of prompt work.
How you know it is working
You will not get this from a leaderboard. Watch the exception queue: how often the system abstains for a documented reason, how often a reviewer agrees the gap was real, and how often a “complete” output later turns out to have missed a section. Re-run the same cases when a connector fails, and confirm the product degrades into a wait or a review — not a smoother paragraph.
Halkwinds is a software, AI, and cloud engineering firm. CareAxis, our published healthcare reference platform, includes a FHIR integration layer. The points above are design rules we would apply to any clinical AI workflow that reads a chart, not a claim about a particular deployment.
If your team is scoping a healthcare-AI workflow and wants a second look at the architecture — including how the system behaves when the record is incomplete — we offer a free two-week AI and cloud architecture review. Email pinkikushwah@halkwinds.com, or use our contact page.
Sources
- HL7 International, US Core Implementation Guide v9.0.0, “Missing Data,” https://www.hl7.org/fhir/us/core/general-requirements.html#missing-data
- HL7 International, FHIR R4, Extension: Data Absent Reason, https://hl7.org/fhir/R4/extension-data-absent-reason.html
- U.S. Food and Drug Administration, Health Canada, and UK MHRA, “Good Machine Learning Practice for Medical Device Development: Guiding Principles,” https://www.fda.gov/medical-devices/artificial-intelligence-enabled-medical-devices/good-machine-learning-practice-medical-device-development-guiding-principles
Top comments (0)