A patient arrives on a ward with a carrier bag of boxes, a printed repeat slip and a letter from the care home. Somewhere in those three documents is the list of medicines the person was actually taking yesterday, and someone has to turn it into a list the ward can trust. NICE recommends that, in an acute setting, this happens within 24 hours of the person moving from one care setting to another, or sooner if clinically necessary, and that the GP practice reconciles within 1 week of receiving discharge information.
For a Head of Digital, that is a throughput problem with a clock attached. The comparison itself is professional work: NICE asks for a trained and competent health professional, ideally a pharmacist, pharmacy technician, nurse or doctor. Before any comparison, though, someone has to read. Letters, lists and records arrive as documents, and the medicines inside them have to be found before anyone can compare anything. The World Health Organization's 2019 technical report on medication safety in transitions of care puts the scale of the problem plainly: medication discrepancies affect almost every patient who moves across a transition of care.
This guide holds one narrow altitude: the reconciliation clock and the medicines field. It covers what reconciliation is, what NICE sets as the timing, which inputs are documents and which are already structured, what a medicines entry has to carry before a professional can compare it, and where an extraction model fits. It cedes the sending-versus-receiving question for hospital discharge, and the national discharge standards, to our guide on discharge summary extraction for NHS teams. It cedes the clinical safety case to our DCB0129 and DCB0160 guide. Reconciliation itself stays a professional decision throughout.
This guide is shipped by the team behind Dilr Mira, a class of private clinical small language models that turn clinical documents into structured JSON on hardware the customer controls. Or see DATS, the five-stage AI consulting system that decides where a model like this belongs in a pharmacy workflow.
What is medicines reconciliation, and where does document extraction fit?
Medicines reconciliation is the step where a health professional builds an accurate list of the medicines a person is currently taking and compares it with the list in use, so discrepancies are found and changes documented. Document extraction fits only in the first half: it can draft a medicines list from typed document text for a professional to check. The comparison, the judgement about each discrepancy and the decision to change a prescription stay with the professional.
NICE's own definition, in quality standard QS120, is short enough to pin to a project charter: "Medicines reconciliation is the process of identifying an accurate list of a person's current medicines and comparing it with the current list in use." That sentence comes from NICE QS120 statement 4, which also lists where the information can come from: medicines the patient brings to hospital, GP surgery records, repeat prescription slips, hospital case notes, community pharmacy patient medication records and the care home medicines administration record.
Read that list as an information architect would. Some of those sources are structured data in a clinical system. Others are paper or a PDF that a person has to read line by line. Extraction is a tool for the second group only, and the whole value case for it rests on how much of a team's reconciliation time is spent reading rather than comparing. That is a measurable question, and it is the first thing worth measuring before buying anything, which is why our DATS consulting work starts with a time-and-task baseline rather than a model.
NICE guideline NG5 also makes a point that matters for capacity planning: reconciliation may need to happen more than once in a single hospital stay, for example on admission, on transfer between wards and on discharge. Each of those can mean reading a new set of inputs. For the wider case for AI across the sector, our healthcare hub on where AI pays in the UK sets the context this post narrows from.
What clocks does NICE set for medicines reconciliation?
NICE sets two headline reconciliation clocks, plus separate timing for sharing information. In an acute setting, guideline NG5 recommends reconciliation within 24 hours of a person moving between care settings, or sooner if clinically necessary. In primary care, it recommends reconciliation after discharge as soon as practically possible, before a new prescription or supply is issued, and within 1 week of the GP practice receiving the information. Both are recommendations, not statute.
The precise wording matters, because each clock starts from a different event. The primary care clock in NICE guideline NG5, published in March 2015, reads: "This should happen as soon as is practically possible, before a prescription or new supply of medicines is issued and within 1 week of the GP practice receiving the information." The clock starts when the information arrives, which makes the speed of reading the arriving document part of the clock, not something that happens before it.
| Setting | NICE source | What it recommends |
|---|---|---|
| Acute admission or move between care settings | NG5 recommendation 1.3.1 | Accurately list all medicines and reconcile within 24 hours, or sooner if clinically necessary |
| Information sent on any transfer | NG5 recommendation 1.2.2 | Share complete and accurate medicines information, ideally within 24 hours of the transfer |
| Primary care after discharge | NG5 recommendation 1.3.3 | Reconcile before a new prescription or supply, within 1 week of the practice receiving the information |
| Transfer into or out of a care home | SC1 recommendation 1.7.3 | Make the information needed for reconciliation available on the day of transfer |
Quality standard QS120 turns the two headline clocks into measurable statements. Statement 4 asks that inpatients in an acute setting have a reconciled list of their medicines within 24 hours of admission. QS120 statement 5 asks that people discharged from a care setting have a reconciled list in their GP record within 1 week of the practice receiving the information. Each statement suggests a process measure, which gives a Head of Digital a ready-made baseline: the proportion of patients reconciled inside the clock, before and after any change.
Care homes have their own guideline. NICE SC1 on managing medicines in care homes recommends that, when a resident transfers into a care home, the care home manager or the person responsible for the transfer coordinates reconciliation as part of a full needs assessment, that a pharmacist is involved, and that commissioners and providers make the information available on the day the resident transfers.
Two scoping notes keep these clocks honest. First, NICE guidance is a recommendation that organisations are expected to take into account; it is not a statutory duty, so a post or a vendor that says "NICE requires" is overstating it. Second, the duties are organisational: NG5 recommendation 1.3.4 asks organisations to give a designated health professional overall responsibility for the reconciliation process. A model cannot hold that responsibility, and no supplier should imply it can. The governance design behind that line is what our AI operating model work writes down.
Which reconciliation inputs arrive as documents, and which are already structured?
Medicines reconciliation draws on two kinds of input. Structured sources, such as the Summary Care Record and the GP record itself, already hold medicines as data, so extraction adds nothing. Unstructured sources, such as transfer letters, care home records, outpatient letters, printed repeat slips and a patient's own list, carry the medicines inside prose or tables that a person has to read. Extraction can only help with the typed or printed part of that second kind.
The Summary Care Record, described by NHS England Digital as a national database created from GP records, holds current medication, allergies and details of previous bad reactions to medicines, and authorised staff involved in direct care can see it. Because it is already data, it needs no reading step at all. A trust that has not yet made the most of its structured feeds should do that before it buys any extraction capability, because a structured source needs no model and carries no extraction error.
A national record built from the GP record can only be as current as that record, and it cannot show what the person is actually taking at home. That is where documents come back in: the letter from the care home, the clinic letter that stopped a drug last week, the community pharmacy record, the carrier bag of boxes. NICE's own list of sources mixes both kinds, and the comparison draws on both.
So the practical map for a Head of Digital has three columns. Sources that are already structured go straight to the professional. Sources that are typed or printed documents are candidates for extraction, with a draft list for the professional to check, provided the document type has been tested first, because a model trained on some document types is weaker on types it has not seen. Sources that are handwritten, photographed or physical, such as the boxes themselves, stay with the professional entirely. The clinical document extraction pillar guide explains why typed document text is where today's small models perform, and where they do not.
What does a medicines entry need to carry before a pharmacist can compare it?
A medicines entry needs more than a drug name before a pharmacist can compare it. NICE guideline NG5 lists, among the information to share at transfer, the medicine's name, strength, form, dose, timing, frequency and duration, how it is taken and what it is for, any change and the reason for it, and the date and time of the last dose for weekly or monthly medicines. Allergies and the type of reaction belong alongside the list.
That field list, from NG5 recommendation 1.2.3, is the most useful single artefact for anyone specifying an extraction schema for reconciliation. Its full list also covers contact details, the nominated community pharmacy, what the person has been told and review or monitoring needs; the table below keeps only the medicines and allergy items, grouped for comparison. It tells you what a draft entry must try to capture and, by implication, what an entry that only carries a name and a dose is missing. QS120 sets a shorter minimum for the list itself: name, dosage, frequency and route of administration.
| Field group, from NG5 1.2.3 | Why the comparison needs it | Extraction note |
|---|---|---|
| Name of the medicine | The anchor for every comparison | Draft as written in the document; check naming against the local formulary |
| Strength and form | Two entries with the same name can differ here | Test whether the model separates these from the name |
| Dose, timing, frequency and duration | A changed value here is a discrepancy to explain | Abbreviations and free text vary by author |
| How it is taken and what it is for | Explains an unusual dose or route | Leave empty when the document does not state it |
| Changes, and the reason for each change | Separates an intended change from an error | Often written as prose rather than as a list item |
| Date and time of the last dose | Matters for weekly, monthly and injected medicines | Absence should be flagged, not guessed |
| Allergies and type of reaction | Safety check before any new supply | A separate field, not a medicines entry |
Count the rows: seven groups of information, and only the first is a name. Two of them, the reason for a change and the last dose date, explain or time a change rather than describe the medicine, and they are easy to miss when they sit in a sentence rather than a list. That is the honest boundary for any extraction model. It can draft the fields the document states. It cannot supply the fields the document leaves out, and a good schema makes the gap visible rather than filling it. Our guide to response schemas versus fine-tuning covers how a schema like this is passed to a model and why an empty field beats an invented one.
How large is the medication error burden that reconciliation guards against?
The medication error burden in England is large and spread across every setting. A study published in BMJ Quality and Safety in 2021 estimated 237 million medication errors a year in England across the whole medicines process, 66 million of them potentially clinically significant. Care homes carried the largest share of the estimated errors, at 41.7%, ahead of primary care at 38.4% and secondary care at 19.9%.
Those figures come from Elliott and colleagues in BMJ Quality and Safety, an economic analysis funded by the NIHR Policy Research Programme. The same study estimated that definitely avoidable adverse drug events consume 181,626 bed-days a year and cause or contribute to 1708 deaths.
Read the chart with care, because it is easy to over-claim from it. These are all medication errors across prescribing, transition, dispensing, administration and monitoring, not reconciliation errors. The same study puts errors at the transition stage itself at 1.4% of the estimated total, with administration the largest stage at 54.4%. The figures do not show that faster reconciliation would remove a given number of errors, and nobody should build a business case that says so.
What the chart does support is a narrower point about where reconciliation inputs come from. Care homes and primary care together account for most of the estimated errors, and the care home record is one of the sources NICE QS120 names for reconciliation. Where that record arrives as a typed document, it falls in the extraction column set out earlier in this guide. For a voice-side view of the same pathway, our post on AI voice for pharmacy prescription reminders covers the patient contact that follows a reconciled list, which is a separate job for Dilr Voice.
What can Mira-Q2 extract from a medicines document today?
Mira-Q2, the current release of Dilr Mira, reads English clinical document text on hardware the customer controls and returns ten required JSON fields, including a list of medications, a list of recorded allergies and a notes field for the human reviewer. Medication lists and discharge summaries are among the document types it was trained on and performs best on. Every output is a draft for a person to check, never a clinical decision.
The live Dilr Mira models page, updated in October 2026, describes the medications field simply as a list of medications, with training data that used drug names from the US National Library of Medicine. Two consequences follow for an NHS reconciliation team. The published schema does not set out the sub-fields inside each medication entry, so the NG5 field list set out earlier in this guide is something a deployment supplies, not something the default schema already guarantees. And because the training vocabulary is US drug naming, UK naming and the local formulary are things to test on a trust's own documents before anyone relies on the draft.
The schema can be changed, within limits. The models page says Mira-Q2 was trained on 2,000 schema variants so that it follows a schema passed in its prompt, and that a private deployment starts by agreeing the schema from a schema file and a handful of seed examples. The model card describes those variants as renamed, dropped and minimal schemas, so a reconciliation schema that adds new sub-fields, such as a last dose date, is a deployment step to be tested, not a published result. The published evaluation measured the default ten-field schema, so a team must validate its own schema on its own documents before trusting the output.
The published evaluation itself, on the Mira-Q2 model card on Hugging Face, covers 782 documents across four test sets. Mira-Q2 produced valid JSON on 100% of 200 held-out documents, 100% of 150 documents in a different formatting dialect, 94.7% of 150 real physician documents that match its schema, and 85.8% of 282 real physician documents across 39 specialties, with zero identifier leaks across all 782. Those are validity figures, and DILR.AI publishes the gap between training-distribution and real documents rather than hiding it. Our 782-document scorecard reads each set in detail.
Three limits belong in any reconciliation business case. Mira-Q2 reads English only. It was trained on synthetic data, and the models page says retraining on real documents from a design partner is what closes the gap. And it reads document text: the model card lists OCR pipeline integration among the work that closes the gap, so a photographed or handwritten list needs a separate text step and is outside what the published figures describe. On licensing, the Mira-Q2 adapter is published under Apache-2.0, while the Qwen2.5-3B-Instruct base it runs on is licensed for non-commercial use, so read both before building anything commercial on it. Our introduction to Dilr Mira covers the product in more depth.
The same placement logic underpins our AI execution office, the embedded delivery team that builds and wires in a validated workflow, then hands the capability to the client.
How should a trust or practice set up the reconciliation workflow around an extraction model?
A trust or practice should treat the extraction model as a drafting step that sits before the professional, never as a replacement for the comparison. The model drafts a medicines list from each document, the workflow records which document each draft came from, and the reviewer checks what the document did not state. A pharmacist, technician, nurse or doctor then compares the draft with the list in use and records every decision.
Five design rules keep that workflow inside what NICE recommends and what the model can honestly do. They are our view of good practice, not NICE text.
- The draft is labelled as a draft. Nothing the model produces reaches the patient record without a named professional accepting it, and the process sits under the designated professional NG5 recommendation 1.3.4 asks organisations to appoint.
- Every draft carries its source. The workflow, not the model alone, must let the reviewer open the document a draft came from, so a discrepancy can be traced quickly rather than re-read from scratch.
- Gaps are shown, not filled. Validation should test that a missing strength, reason for change or last dose date appears as missing. An empty field prompts a question to the patient, the care home or the prescriber; an invented value hides one.
- Allergies are checked separately. Allergies and reactions are their own field and their own check, never merged into the medicines entries.
- The clock is measured before and after. Use the QS120 process measures as the baseline, and judge the model by whether more patients are reconciled inside 24 hours or 1 week, not by extraction scores alone, the same discipline our operating model work applies to any AI workflow.
Around those rules sit the obligations that bind the deploying organisation. Health data is special category data under UK GDPR Article 9, and processing it with a new technology is the kind of processing for which a data protection impact assessment should come before any pilot. The deploying organisation also owns its clinical risk management under DCB0160, which our clinical safety guide walks through. A private model running inside the trust's own environment simplifies the data protection picture because the document does not leave the building; it does not remove the safety case. The DATS methodology is how we sequence those steps with a client, and the AI solutions overview shows the problem types it covers.
What is the best way to speed up medicines reconciliation in 2026?
The best way to speed up medicines reconciliation in 2026 depends on where the time goes. If most time is spent finding information that already exists as data, better use of the Summary Care Record and GP record access wins. If most time is spent reading typed letters and records, a private extraction model can draft the list. If volume is low, more pharmacy technician time is often the simplest answer.
Judge any option on four criteria: does the document leave the organisation, does the output show its source for every entry, has it been validated on the organisation's own documents, and does it move the QS120 measure. Against those criteria, the honest landscape looks like this.
Structured access comes first, and sometimes it is the whole answer. Where the Summary Care Record and the GP record cover what the team needs, no extraction model beats a field that is already data. More staff time is the next honest option: for a small practice receiving a handful of discharge letters a week, extra pharmacy technician time can be simpler to set up and govern than a new model, and in our view it can win that scenario outright.
Hosted clinical language APIs, such as Amazon Comprehend Medical and Azure Text Analytics for health, suit teams already committed to that cloud. In their standard hosted form, documents are processed in the provider's service, which some information governance teams will accept and others will not. Licensed on-premise clinical NLP, such as John Snow Labs, is another route for teams that want local processing under a commercial licence; our John Snow Labs comparison sets it against Mira-Q2 in detail.
A small private model such as Mira-Q2 fits a narrower case: typed English documents, a requirement that the document never leaves the building, and a team willing to validate a reconciliation schema on its own documents first. For hospital discharge specifically, our discharge summary extraction guide covers the receiving-side workflow, and our clinical coding comparison explains why extraction is not coding. If you want help deciding which route fits, our contact page is the start, and more of our healthcare writing sits under our industries category.
Can an extraction model carry out medicines reconciliation on its own?
No extraction model should carry out medicines reconciliation on its own. NICE guideline NG5 recommends that organisations ensure reconciliation is done by a trained and competent health professional, ideally a pharmacist, pharmacy technician, nurse or doctor, and that a designated professional holds organisational responsibility for the process. Dilr Mira and similar tools can draft the medicines list from a document, but comparing it, judging each discrepancy and changing a prescription remain professional decisions.
The model's job is to shorten the reading, so the professional's time goes on the comparison and on the conversation with the patient and their family or carers, which NG5 recommendation 1.3.6 asks for wherever appropriate.
Does Mira-Q2 output dm+d codes for each medicine?
Mira-Q2 does not publish a dm+d coding capability. The live Dilr Mira models page describes its medications field as a list of medications, with training data that used US National Library of Medicine drug names, and it does not state that codes from the NHS Dictionary of Medicines and Devices are produced. A trust needing dm+d codes should treat coding as a separate, validated step after extraction.
That separation is deliberate in good design anyway: extraction captures what the document says, and coding maps it to a terminology, which is a different job with its own checks. Our about page explains who builds Dilr Mira and how we work with clinical teams.
Want to see this on your own documents? Read about Dilr Mira, book an AI placement diagnostic, see our DATS methodology, or read the clinical document extraction guide before you scope a pilot.
Get the medicines list to the pharmacist sooner.
30-min scoping call · No deck · Confidential. We will tell you whether a private extraction model fits your reconciliation workflow, and where it does not.
Written by the Dilr.ai engineering team, practitioners who ship enterprise AI in production. Follow us on LinkedIn for shipping notes, or subscribe via the RSS feed.