Industries19 min read

Outpatient Letter Extraction: What the GP Must Act On

Dilr Mira is a class of private clinical small language models from DILR.AI that turn clinical documents into structured JSON for human review. This guide sets out what a GP practice must pull out of each outpatient letter, which tasks the 2026/27 NHS Standard Contract places on the hospital, and why Mira-Q2 needs testing on real letters first.

On this page 12 sections
Outpatient Letter Extraction: What the GP Must Act On DILR MIRA · HEALTHCARE Outpatient Letter Extraction: What the GP Must Act On 01 Read the letter 02 Split by owner 03 Clinician confirms 04 Act and record dilr.ai/blog

An outpatient letter is rarely just a record of what happened in clinic. It is a list of jobs: a medicine to start, a blood test to repeat, a fit note to issue, a referral to make, a follow-up to book. Some of those jobs belong to the patient, some to the hospital team and some to the GP practice. The practice receiving the letter has to find the jobs that are its own, a document problem that runs through our healthcare and industry guides, and NHS outpatient volume keeps rising. In 2025-26 there were 116.9 million outpatient attendances in England, 21.2% above the 2019-20 level, according to NHS England's Hospital Outpatient Activity 2025-26.

The national standards body for records is blunt about why this matters. The PRSB Outpatient Letter Standard describes outpatient letters as the main method of contact between hospital staff and GPs, and often the sole record of the consultation held by the outpatient department and hospital. If a job in that letter is missed, there is often no other document that would catch it.

This guide is written for the Head of Digital in a GP practice or primary care network who is asking whether a private language model can help the practice read inbound clinic letters. It holds one question: what must a receiving practice pull out of an outpatient letter, and which of the requests in it the 2026/27 NHS Standard Contract already assigns to the hospital. It cedes the discharge summary frame to our guide on discharge summary extraction, the referral and triage frame to e-Referral letter extraction, medicine comparison to medicines reconciliation, and code assignment to clinical coding versus extraction.

This guide is shipped by the team behind Dilr Mira, private clinical small language models that return schema-valid JSON on hardware you control. Or see DATS, the five-stage method we use to place AI inside regulated organisations.

What is outpatient letter data extraction?

Outpatient letter data extraction is the work of turning a hospital clinic letter into structured fields a GP practice can check and act on: the diagnoses, the medication changes, the tests ordered, the follow-up plan and, above all, the actions requested of each party. A clinical extraction model such as Dilr Mira can draft those fields, but a trained person in the practice still confirms every action before anything changes in the patient record.

The distinction from other inbound documents matters. A discharge summary closes an admission; an outpatient letter often sits in the middle of an ongoing episode, so its jobs can be split across three owners. The Academy of Medical Royal Colleges (AoMRC) guidance, Please write to me, updated in April 2026, lists what an outpatient clinic letter should include. That list ends with actions to be taken by the patient, by the secondary care clinician and by the primary care team, followed by a hospital phone number and email address for follow-up questions and correcting errors.

That three-owner split is the core of the extraction problem. A summary of the clinic visit is useful. A list of the practice's own jobs, separated from the hospital's and the patient's, is what saves clinical time and prevents a missed action. Everything else in this guide follows from it, and for how we think about placing AI around decisions rather than data, read about our approach.

What does the PRSB Outpatient Letter Standard require a letter to carry?

The PRSB Outpatient Letter Standard, current release v2.2, defines 27 sections for an outpatient letter: 6 mandatory, 12 required where the information is available, and 9 optional at local choice. It exists so that clinical information is recorded and exchanged consistently across care settings. For a GP practice, the standard describes what a well-formed letter should contain, not what every inbound letter actually contains today.

PRSB Outpatient Letter Standard v2.2: sections by obligation
6Mandatory12Required9Optional
The standard defines 27 sections: 6 mandatory, 12 required where available, 9 optional. Source: PRSB, Outpatient Letter Standard summary table

The summary table on the PRSB page shows how the obligations fall. Patient demographics, the GP practice, attendance details, and allergies and adverse reactions appear as mandatory. Referrer details, history, diagnoses, problems and issues, safety alerts and legal information appear as required, meaning they should be included where the information is available. Medications and medical devices appears as optional in that summary table, a local choice, which matters for the later medicines reconciliation step.

That has a practical consequence. A letter that conforms to the standard may still carry no structured medication section, so a medication change can sit inside free-text narrative. An extraction approach that only reads a medications block will miss it, which is why a schema-led extraction has to read the narrative as well. The AoMRC guidance points the other way: it asks for a list of medications with explanations about new or changed treatments. Inbound letters vary across trusts and specialties, so a practice has to plan for both shapes.

Ownership of the standard is also changing. The PRSB page states that from 1 January 2026 the standard is owned and managed by NHS England, which will review the ongoing requirement for it and publish any update on the NHS Standards Directory. A practice building a workflow around the section names should expect them to be revisited, and should key its own schema to the actions it needs rather than to one version of a national template. An AI operating model should treat that kind of external dependency as a named risk with an owner.

Why do letters written to the patient change where the GP's actions sit?

Letters written to the patient change extraction because the GP's actions stop being the main subject of the letter. The AoMRC guidance asks hospital doctors to write directly to the patient in plain English, and says a copy of the patient's letter is usually sufficient for the GP. A GP practice reading such a letter has to find the actions meant for primary care inside a document addressed to someone else, often in a separate section.

The guidance is explicit that a separate letter to the GP is rarely needed and that a copy of the patient's letter is usually sufficient. It allows a section written directly to the GP or other relevant individuals, and it adds a sentence that is, in effect, the specification for this whole extraction task: "This should highlight who is responsible for each action." That sentence comes from the Academy of Medical Royal Colleges, Please write to me, April 2026.

On our reading of that guidance, a practice can receive three letter shapes in the same inbox, and a private extraction model would have to cope with all three:

  • Written to the GP. The traditional form, where actions for the practice are phrased as requests to the GP.
  • Written to the patient, copied to the GP, with a GP section. The actions for primary care sit under their own heading, while the body speaks to the patient in the second person.
  • Written to the patient, copied to the GP, with no GP section. Actions for the practice, if any, are embedded in sentences addressed to the patient, such as "your GP will check your kidney function in two weeks".

The third shape is where a simple keyword search is weakest, because "your GP will" is a request to the practice even though it is written to the patient. It is also where any model is likely to be wrong about ownership, which is why it has to be tested on real letters and why the confirming step cannot be skipped. A named human checker for every automated draft is the kind of control an AI execution office exists to run.

The AoMRC guidance also speaks to AI directly. It says letter templates in the electronic patient record should default to a letter addressed to the patient, that generic natural language processing models should use annotated coded tools so letters end up in the correct record and are appropriately coded, and that submitting data to non-approved AI providers is likely to breach governance rules even where the data is anonymised. That last line is aimed at the writing end, covered in our comparison of ambient scribes and document extraction, but it applies with equal force to a practice choosing a reading tool.

Which requests does the 2026/27 NHS Standard Contract keep with the hospital?

The 2026/27 NHS Standard Contract Service Conditions place several common outpatient tasks on the hospital provider, not the GP. Related onward care, immediate outpatient medication, fit notes and telling patients their results are provider duties, and unrelated onward referral needs the GP's agreement. A GP practice reading a clinic letter can therefore flag certain requests for discussion with the hospital rather than treating every request in the letter as the practice's job.

These duties bind the provider that holds the contract. They do not bind the GP practice, and the contract sets no clock for the practice to read or act on a letter, so the practice's own process sets the pace, which is the kind of process gap DATS consulting is built to map. The clauses below are quoted from the 2026/27 NHS Standard Contract Service Conditions (Full Length), January 2026, and each applies only to the service categories the contract names against it.

Request a letter may make of the GPClauseWhat the clause saysWho it binds
Refer the patient on for the same conditionSC8.4For a non-immediate need directly related to the original referral, the provider must tell the patient without delay, then provide the care if it is within the contracted services or co-operate with the commissioner to secure it if not, and notify the GP, unless referral back is required under SC29.4.1Provider
Refer the patient on for an unrelated problemSC8.5A consent gate, not an assignment: the provider must not carry out or refer onward for non-immediate care not directly related to the original referral without the GP's agreement, except under a Prior Approval SchemeProvider
Prescribe a medicine needed nowSC11.10Where there is an immediate clinical need after outpatient attendance, the provider must itself supply an adequate quantity for the period required by local practice, and at least enough to meet immediate needs until the GP receives the clinic letter and can prescribeProvider
Prescribe on recommendationSC11.11Not an assignment: the parties must have regard to NHS Guidance on Prescribing Responsibilities, so the split depends on that guidanceProvider and commissioners
Issue a fit noteSC11.12After an outpatient attendance the provider must, where appropriate under Fit Note Guidance, issue any necessary fit note free of chargeProvider
Tell the patient their resultsSC12.1.3The provider must notify the patient of the results of all investigations and treatments promptlyProvider

Two cautions keep this honest. First, a clause assigning a duty to the provider does not make every such request in a letter wrong: a recommendation for the GP to continue a medicine long term is ordinary shared care, and SC8.5 explicitly gives the GP a decision to make on unrelated onward care. Second, the contract binds organisations, not individual letters, so the practical use of the table is to create a flag for a person to review, not to auto-reject a request. A flag such as "requested of GP, contract assigns to provider, SC11.12" lets a practice raise a pattern with the trust through its local interface arrangements. If you want help mapping those arrangements, talk to our team.

The clinic letter clock itself, SC11.7, is narrower than it is often described. It requires a clinic letter within 7 days where the provider becomes aware of a matter that would necessitate the GP or other referrer taking prompt action, and it applies to the acute, cancer and radiotherapy, and mental health and learning disability service categories. Its relationship to the discharge summary duties is covered in our discharge summary guide. SC11.8 puts a separate duty on commissioners to help providers reach the national systems and to make sure GPs can receive clinic letters through the applicable delivery method.

Which fields should a GP practice pull out of every outpatient letter?

A GP practice should pull out the fields that drive a decision in primary care, not every section the national standard defines. The useful set is the letter's identity, diagnoses, medication changes with reasons, each requested action with its named owner, tests ordered with who reports results, the follow-up plan, any fit note issued, and the hospital contact for questions. Each field needs a person who confirms it.

The list below is our reading of the AoMRC content list and the contract clauses above, written as a practice-side schema, the same schema-as-input approach Mira-Q2 supports. It is a starting point to adapt, not a national specification.

FieldWhat it holdsWhy the practice needs itWho confirms
Letter identityClinic, consultant, attendance date, letter date, addresseeMatches the letter to the right record and shows whether it was written to the patient or the GPAdministrator
Diagnoses and problemsNew, confirmed or excluded diagnosesUpdates the problem listClinician
Medication changesStart, stop, dose change, with the reason givenDrives a prescription change and a medicines reviewClinician or practice pharmacist
Actions by ownerEach requested action, tagged patient, hospital or GPThe practice's own job listClinician
Contract flagGP-tagged actions that match a provider duty in the table aboveSurfaces a request to discuss with the trustClinician or practice manager
Tests and resultsTests ordered, and who will tell the patientAvoids duplicate tests and missed resultsClinician
Follow-upNext appointment, patient-initiated follow-up or discharge from clinicShows whether the hospital still holds the episodeAdministrator
Fit noteWhether one was issued and to whenAvoids a second certificateAdministrator
Hospital contactPhone number and email for questionsLets the practice resolve an unclear request quicklyAdministrator
A receiving practice's outpatient letter workflow
01Letter receivedMatched to the patient record02Fields draftedPrivate model, inside the practice estate03Actions split by ownerPatient, hospital, GP, with contract flags04Clinician confirmsEvery GP action and medication change05Act and recordTasks created, problem list updated
The model drafts; a person confirms ownership before any record changes.

The single most important field is the action list with owners, and it is also the one most likely to be mis-read. A model that extracts "repeat full blood count in four weeks" without noticing it says "we will arrange" has turned a hospital job into a practice job. That is why the field sits with a clinician, and why a practice should measure missed or mis-owned actions, not overall field accuracy, when it tests any tool. The clinical safety case for the deployment should name that hazard explicitly.

Notice what the schema leaves out. It does not assign SNOMED CT codes, which is a different task with its own risks, covered in clinical coding versus extraction. It does not reconcile the medication changes against the practice's current list, which is the job described in medicines reconciliation. The extraction step prepares the inputs; the decisions stay with people.

What can Mira-Q2 read in an outpatient letter today?

Mira-Q2, the current Dilr Mira release, returns ten fixed JSON fields, including diagnoses, medications, procedures and allergies, and it can follow a different schema passed in its prompt. Out of the box it has no outpatient letter document type and no field for actions by owner. It is strongest on lab reports, medication lists and discharge summaries, so narrative clinic letters need testing on a practice's own documents first.

The details, all from the live Dilr Mira models page and the published Mira-Q2 model card on Hugging Face, are worth reading closely before anyone plans a pilot:

  • The default schema. The ten fields are document type, patient age and sex, encounter date and department, vitals, labs, medications, diagnoses, procedures, allergies and extraction notes. The document type is one of lab report, medication list, discharge summary, pathology report, intake form, progress note or other, so an outpatient letter falls under "other".
  • The narrative gap. On 282 real physician documents across 39 specialties, Mira-Q2 produced valid JSON on 85.8% of them, against 100% on 200 held-out documents from its training distribution. The models page does not report results on outpatient letters at all, so the real-document figure is the nearest published reference point, not a prediction; our evaluation breakdown explains each set.
  • Schema as input. The models page says Mira-Q2 was trained on 2,000 schema variants so it follows a schema passed in its prompt. It describes fitting Mira to a customer's own schema as an engagement that starts from a schema file and a handful of seed examples and trains on real documents, because the synthetic-to-real gap is Mira-Q2's main weakness. Using any schema without setup is listed as a Mira-3 aim, in development. An actions-by-owner field would be a new schema of this kind, so its performance is unknown until it is fitted and tested.
  • Where it runs. Mira-Q2 runs on hardware the organisation controls, on-premise or air-gapped, so letters are not sent to a third-party API. Every output is a draft for a person to check, and Mira does not make clinical decisions.
  • Language and training data. It reads English only and was trained on synthetic data; the models page states that retraining on real documents from a design partner is what closes the gap.

The deployment point connects back to the AoMRC line on non-approved AI providers. A practice that sends clinic letters to a hosted API has to fit that provider into its information governance, including the special category conditions for health data under UK GDPR. A model that runs inside the practice or the primary care network's own estate keeps the documents where they already are, although compliance remains a property of the deployment and its controls, not of any model. Our Mira pillar guide explains how to read the published scorecard, and the 782-document evaluation breaks it down set by set.

The same diagnostic logic underpins our AI operating model consulting, which sets out who owns each automated draft, who checks it and how errors are reported.

How should a GP practice test extraction on its own outpatient letters?

A GP practice should test extraction on a sample of its own recent outpatient letters, marked by a clinician for every action and its owner before the model sees them. The primary measure is missed or mis-owned GP actions, because a missed action is the failure that harms patients. Overall field accuracy, speed and staff time saved are secondary measures that only count once that primary number is acceptable.

A workable test has five parts, and our AI solutions page sets out how we scope this kind of work:

  1. Sample across shapes. Take letters from several specialties and include all three shapes described earlier: written to the GP, written to the patient with a GP section, and written to the patient with no GP section.
  2. Mark a gold set. A clinician lists every action in each letter, tags its owner, and marks any GP-tagged action that matches a provider duty in the contract table.
  3. Run the model blind. Use the practice's own schema, including the actions-by-owner field, with the model running inside the practice's environment.
  4. Count the dangerous errors first. Missed GP actions, hospital actions mis-tagged as GP actions, and medication changes missed or misread.
  5. Decide the human step. Set which fields a clinician must confirm every time and which an administrator can confirm, based on the error counts rather than on preference.

Two practical notes come from the documents themselves. The hospital contact details that the AoMRC guidance asks for give the practice a route to resolve an unclear request, so the schema should capture them. And because the PRSB standard is now under NHS England's review, the test set should be refreshed when letter templates change at the main local trusts. For the wider picture of where AI pays in NHS settings, see AI for healthcare: where it pays, and for the phone side of the same practice, our guide to the GP phone access surge.

What is the best way to handle outpatient letters in a GP practice in 2026?

The best way to handle outpatient letters in 2026 depends on volume, letter shape and governance. A practice with high volume and mostly narrative letters gains most from a private extraction model that drafts actions by owner for a clinician to confirm. A smaller practice receiving mostly structured, coded letters may do better with trained staff and a clear workflow, and no model at all.

We judge the options against four criteria: does the tool separate actions by owner, does it keep letters inside an approved environment, does it publish measurable performance on real documents, and does every output go to a person before it changes the record, the questions an AI execution office should keep asking after launch.

Against those criteria, the honest picture looks like this:

  • A trained workflow with no AI. For a small practice, or one whose main trusts send well-structured letters with a clear GP section, a trained administrator and a clinician sign-off may be the right answer. It has no model risk and no information governance overhead, and we would tell you so on a scoping call.
  • A cloud clinical NLP service. AWS Comprehend Medical is a hosted API that extracts health information and links it to ontologies such as ICD-10-CM, RxNorm and SNOMED CT, which a private model with a fixed schema does not do out of the box. Used as a hosted API, it processes the letter outside the practice's own estate, which the AoMRC governance line asks practices to weigh carefully. Azure Text Analytics for Health offers both a hosted API and an on-premises Docker container, and links entities to UMLS vocabularies that the customer must license separately.
  • A licensed on-premise clinical NLP stack. John Snow Labs offers healthcare language models for de-identification, entity, relation and code extraction, with on-premise deployment, as a licensed product.
  • A private small model fitted to the practice's schema. Dilr Mira runs on hardware the organisation controls and can be fitted to a supplied schema, which is how an actions-by-owner field would be added. It reads English only, has no outpatient letter type or actions field by default, and has no published results on outpatient letters, so it must be fitted and tested on real letters before it is trusted.

None of these removes the clinician from the loop, and none of them changes who the contract binds. If the question is whether to build a schema of this kind and how to fit it into the practice's operating model, that is the work our DATS consulting team scopes. If you want to see how the published model behaves first, start with what Dilr Mira is and the schema-as-input guide.

Frequently asked questions

Does an extraction model decide whether the GP must act on a clinic letter?

No extraction model should decide whether the GP must act on a clinic letter. A model fitted with an actions-by-owner schema could draft a list of requested actions and a likely owner for each, but a clinician in the practice confirms each GP action before a task is created or a prescription changes. The model's job is to stop an action being missed, not to judge it.

The clinical safety case for a deployment should record that confirming step and who performs it.

Does the 7-day clinic letter rule apply to every outpatient appointment?

The 7-day clinic letter rule in SC11.7 of the 2026/27 NHS Standard Contract does not apply to every outpatient appointment. It requires a clinic letter within 7 days where the provider becomes aware of a matter that would necessitate the GP or other referrer taking prompt action, and only in the acute, cancer and radiotherapy, and mental health and learning disability service categories. It binds the provider.

Can Mira-Q2 code an outpatient letter into SNOMED CT?

Mira-Q2 does not code an outpatient letter into SNOMED CT. Its published schema returns diagnoses as a list, and the models page makes no claim that it assigns clinical codes. Coding is a separate step with its own review, which a practice should keep distinct from extraction, as our clinical coding guide explains in detail.

Read clinical coding versus extraction for how the two steps differ in risk and review.

Want to see this on your own letters? Read about Dilr Mira private clinical models, book an AI placement diagnostic, browse our healthcare and industry guides, or read about our approach to placing AI inside regulated organisations.

Talk to the operators

Put every clinic letter action in the right hands.

30-min scoping call · No deck · Confidential. We will tell you whether a private extraction model fits your correspondence 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.

  • outpatient letter data extraction
  • healthcare ai
  • prsb outpatient letter standard
  • clinic letter actions for gp
  • nhs clinic letter ai extraction
  • local llm reddit
  • best clinical document extraction 2026
  • dilr mira

What does this article answer?

The questions this article answers, in short

  • Outpatient letter data extraction is the work of turning a hospital clinic letter into structured fields a GP practice can check and act on: the diagnoses, the medication changes, the tests ordered, the follow-up plan and, above all, the actions requested of each party. A clinical extraction model such as Dilr Mira can draft those fields, but a trained person in the practice still confirms every action before anything changes in the patient record.
  • The PRSB Outpatient Letter Standard, current release v2.2, defines 27 sections for an outpatient letter: 6 mandatory, 12 required where the information is available, and 9 optional at local choice. It exists so that clinical information is recorded and exchanged consistently across care settings. For a GP practice, the standard describes what a well-formed letter should contain, not what every inbound letter actually contains today.
  • Letters written to the patient change extraction because the GP's actions stop being the main subject of the letter. The AoMRC guidance asks hospital doctors to write directly to the patient in plain English, and says a copy of the patient's letter is usually sufficient for the GP. A GP practice reading such a letter has to find the actions meant for primary care inside a document addressed to someone else, often in a separate section.
  • The 2026/27 NHS Standard Contract Service Conditions place several common outpatient tasks on the hospital provider, not the GP. Related onward care, immediate outpatient medication, fit notes and telling patients their results are provider duties, and unrelated onward referral needs the GP's agreement. A GP practice reading a clinic letter can therefore flag certain requests for discussion with the hospital rather than treating every request in the letter as the practice's job.
  • A GP practice should pull out the fields that drive a decision in primary care, not every section the national standard defines. The useful set is the letter's identity, diagnoses, medication changes with reasons, each requested action with its named owner, tests ordered with who reports results, the follow-up plan, any fit note issued, and the hospital contact for questions. Each field needs a person who confirms it.
  • Mira-Q2, the current Dilr Mira release, returns ten fixed JSON fields, including diagnoses, medications, procedures and allergies, and it can follow a different schema passed in its prompt. Out of the box it has no outpatient letter document type and no field for actions by owner. It is strongest on lab reports, medication lists and discharge summaries, so narrative clinic letters need testing on a practice's own documents first.
  • A GP practice should test extraction on a sample of its own recent outpatient letters, marked by a clinician for every action and its owner before the model sees them. The primary measure is missed or mis-owned GP actions, because a missed action is the failure that harms patients. Overall field accuracy, speed and staff time saved are secondary measures that only count once that primary number is acceptable.
  • The best way to handle outpatient letters in 2026 depends on volume, letter shape and governance. A practice with high volume and mostly narrative letters gains most from a private extraction model that drafts actions by owner for a clinician to confirm. A smaller practice receiving mostly structured, coded letters may do better with trained staff and a clear workflow, and no model at all.
Written by Dilr.ai EngineeringEngineering team

Can voice AI handle the calls in my sector?

Dilr Voice answers and places calls for regulated sectors

From clinics and estate agents to financial services, Dilr Voice handles calls 24/7 with the consent, recording and audit rules each sector needs.