The Short Answer
Storing chat transcripts is not clinical memory. In the Lost in the Middle study, GPT-3.5-Turbo answered 75.8% correctly when the relevant document sat first in a 20-document context and 53.8% when it sat in the middle, below its 56.1% closed-book score. Clinical memory is structured, provenance-carrying facts read from the system of record, ranked by criticality and recency. With ibl.ai you own all the code and the data.
A transcript records what was said. A clinical memory layer records what is true about the patient, where it came from, and how dangerous it is to get wrong.
What is the difference between chat history and clinical memory?
Chat history is an append-only log of turns. Clinical memory is a set of structured facts with provenance, criticality and a timestamp.
The two get conflated because both are described as "the agent remembers." Storing every turn and replaying it into the context window is storage, not memory.
Nothing in that log distinguishes a passing remark from a life-threatening allergy, and nothing marks which assertion has since been superseded.
| Property | Stored chat transcript | Clinical memory layer |
|---|---|---|
| Unit | A conversational turn | A coded clinical fact |
| Provenance | Who typed it, when | Source system, author, as-of date |
| Priority | Position in the log | Criticality and recency |
| Retrieval | Stuff the window, hope | Query the record, rank, cite |
| Governance | A prompt instruction | Enforced beneath the model |
Why doesn't a longer context window fix buried clinical facts?
Because the failure mode is not running out of room. It is that models under-use information sitting in the middle of what they were given.
Liu et al. measured this directly in Lost in the Middle: How Language Models Use Long Contexts, first posted July 2023 and published in Transactions of the ACL in 2024.
In their 20-document multi-document QA setting, GPT-3.5-Turbo answered 75.8% of questions correctly when the document containing the answer was placed first, and 53.8% when it was placed in the middle.
The comparison that matters clinically is the third number. Closed-book performance, with no documents supplied at all, was 56.1%. Retrieving the right document and burying it mid-context left the model worse off than retrieving nothing.
That result holds for models explicitly built for long contexts. A larger window changes how much you can put in front of a model, not how reliably it uses the part in the middle.
It is worth being precise about what this does and does not say. It is a benchmark on open-domain question answering, not a clinical trial.
What transfers is the mechanism: position inside a long undifferentiated blob affects whether a fact is used, and a transcript is exactly such a blob.
Which clinical facts does a memory layer have to carry, and in what structure?
The federal interoperability standard has become specific about this, which makes it a usable specification rather than a matter of taste.
USCDI v7 was released on July 23, 2026 β it is final, not a draft β and adds 31 new or substantially revised data elements.
Two of them are directly about the problem here. Allergy Intolerance Criticality, in the Allergies and Intolerances class, is defined as an "estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance".
Medication Administration carries structured information about medications actually given, including medication, dose, route, timing and site.
Those are memory primitives. Criticality is a priority field: it tells a retrieval layer which fact must surface first regardless of where it was recorded. Medication Administration distinguishes what was ordered from what was given.
A transcript has neither. It has a sentence somewhere in a log, with no field that says this one can kill the patient.
How often does incomplete documentation actually harm patients?
Often enough that it is the leading category of allergy safety failure in the published literature.
A 2022 study in the Journal of Allergy and Clinical Immunology: In Practice reviewed 299,031 safety reports from two academic medical centers over five years and identified 744 confirmed allergy-related safety events.
Incomplete or inaccurate EHR documentation accounted for 375 of them, 50.4% β the largest single category, ahead of every other failure type in their schema.
Medication history shows the same pattern.
A 2022 study in BMC Health Services Research of 635 patients admitted to internal medicine wards at two Ethiopian referral hospitals found 39.1% had at least one unintended medication discrepancy on admission, with omission the most frequent type at 41.75%.
This is the pre-existing failure that an AI layer either helps with or quietly amplifies. An agent that reasons over a transcript inherits every gap in it and adds a new one, because it also has to find the fact again.
What does a clinical memory layer look like in practice?
Four properties, none of which is a model capability.
- Facts, not turns. Extract to coded elements β allergy with criticality, medication with dose, route and timing β rather than storing prose and re-parsing it on every query.
- Provenance on every fact. Which system, which author, as of when. A clinician cannot safely act on an assertion whose source and date are unknown, however fluent the sentence containing it.
- Prioritized retrieval, not context stuffing. Query the record and rank by criticality and recency, then supply a short, ordered set of facts. This is the direct countermeasure to the middle-of-context effect.
- Governance beneath the model. Role-scoped read access, complete audit trails, and PHI handling enforced server-side rather than requested in a system prompt.
The same structural point applies to the work itself: prior authorization and reconciliation are multi-step pipelines rather than conversations, and a pipeline needs facts with fields, not a chat log.
The general version of this distinction β what separates storage from usable agent context β is covered in memory and skills. In healthcare the stakes change, and so does the required structure.
It also assumes the underlying access problem is solved, which for most health systems it is not the model but the data.
How does ibl.ai build clinical memory inside the hospital perimeter?
By running the memory layer where the system of record already is.
With ibl.ai you own all the code and the data.
The platform is deployed on the health system's own infrastructure with full source code access, is model-agnostic across any LLM, is usage-based with no per-seat pricing, and can deploy anywhere from your own cloud to on-premise, GovCloud, or a fully air-gapped network.
Agents read from the EHR and adjacent systems in place under role-scoped, read-only permissions. Retrieved facts carry their source system and as-of date, and are ranked before they reach the model rather than concatenated into a window.
PHI handling is enforced server-side, beneath the model, and every access is audited against the institution's existing identity provider.
For a CMIO or a compliance officer the operative property is inspectability: you can read the code that touches PHI instead of accepting an assurance about it.
1.6M+ users across 400+ organizations run the platform this way, including NVIDIA, MIT, and Syracuse University.
ibl.ai is family-owned and operated from New York, NY.
Related reading: prior auth is not a question β why clinical AI needs pipelines β the workflow half of the same argument, and memory and skills for the general architecture.
Sources: the position-of-context results from Liu et al., Lost in the Middle, published in TACL vol. 12 (2024); the USCDI v7 release date and new data elements from the ONC Standards Bulletin 2026-2 and the Criticality element page; the allergy safety event figures from Allergy Safety Events in Health Care (JACI: In Practice, 2022); the medication discrepancy figures from BMC Health Services Research (2022).