Healthcare and the NHS · Playbook 11

I've worked in this sector

Referral and clinical letter processing

Every referral and letter read, summarised and routed within minutes of arriving. The consultant sees a one-screen summary and a suggested priority, and makes every triage and clinical decision.

  • Document AI
  • Retrieval (RAG)
  • Agents with tools
  • Human in the loop
  • DCB0129 / DCB0160
  • MHRA
  • DSPT
  • DTAC
  • e-RS and RTT rules
  • UK GDPR

At a glance

The problem
Referrals wait in e-RS worklists for a consultant to read them, and letters wait in shared inboxes to be filed and passed on
Typical volume
Around 15,000 new referrals and 40,000 incoming letters a month in a large acute trust
Who's involved
Consultants and specialist nurses who triage, the referral management team, medical secretaries, clinical safety, IG and the Caldicott Guardian, the EPR team
Pilot
8–10 weeks in two specialties, after a 3–4 week discovery
Platforms
AWS, Azure, or a sovereign or on-prem stack

An illustrative scenario. The numbers are typical examples, not a client case study. The cloud services and UK rules were checked on 9 November 2026.

The business problem

A large acute trust receives thousands of new referrals a month through the NHS e-Referral Service (e-RS), and many more letters: from GPs, other hospitals, community services and patients, by secure email, through the EPR's document feed and on paper. Each referral has to be read by a consultant or specialist nurse, given a priority, sent to the right clinic, or returned with advice. Each letter has to be matched to the right patient, filed in the record and passed to whoever needs to act on it.

In many specialties, triage happens in batches between clinics. Referrals sit in the e-RS worklist while the referral-to-treatment (RTT) clock is already running. What arrives varies widely: a structured form, a free-text letter, scanned results, a photo of a skin lesion. Consultants spend their triage time hunting for the question being asked and the blood test that isn't there. Letters wait in shared inboxes, get filed late or against the wrong patient, and a line such as 'please expedite, symptoms worse' can be missed.

The pressure is national. NHS England's medium-term planning framework asks every trust to improve 18-week performance by at least 7%, or reach 65%, whichever is greater, in 2026/27, towards 70% nationally by March 2027 and 92% by March 2029. GPs are asked to use advice and guidance before or instead of a referral where it's clinically appropriate, and systems to route referrals through a single point of access for clinical triage. Every triage decision and its reason has to be recorded properly, so the trust can show auditors why each referral was accepted, returned or redirected.

What AI changes

  • Every new referral is read as soon as it lands in the e-RS worklist: the question being asked, history, medicines, results and attachments, in a one-screen summary for the clinician who triages it.
  • The referral is checked against the specialty's own approved referral criteria, and missing information, such as a required blood test or image, is flagged before the consultant opens it.
  • The AI suggests a priority and a clinic, showing its reasons and the criteria it relied on. The consultant accepts, changes or ignores the suggestion, and records the triage outcome themselves.
  • Routine referrals whose wording matches the specialty's published urgent criteria are flagged to the triaging clinician the same day, not at the next triage session.
  • Incoming letters are read, matched to the patient, given suggested codes and routed to the right team. Letters that ask the trust to do something are flagged to the named clinician.
  • Clinicians make every triage and clinical decision. The AI never accepts, rejects, returns or downgrades a referral, and never answers an advice and guidance request.

How success is measured

Agree these, and measure the baseline, before anything is built. Example targets are typical, not promises.

Referral to triage time

How long a referral waits in the worklist before a clinician triages it. The RTT clock is running the whole time.

ExampleFrom 10 working days to under 3

Clinician time per referral

Minutes a consultant or specialist nurse spends reading and triaging each referral.

ExampleDown by a third

Priority override rate

How often clinicians change the suggested priority. Very high means it isn't helping; near zero can mean suggestions are being accepted unread.

ExampleStable, and reviewed weekly

Urgent features missed

Referrals upgraded later that the AI didn't flag, found by audit. The safety measure that matters most.

ExampleEvery case reviewed by the clinical safety officer

Letters routed on time

Share of incoming letters matched, filed and in the right person's queue by the end of the next working day.

ExampleAbove 95%

Letters filed to the wrong patient

Misfiled correspondence found by audit or reported as an incident.

ExampleFalling, measured against last year

UK regulation and controls

Cross-sector rules are on the UK regulation map.

  • NHS EnglandDCB0129 and DCB0160 clinical safety

    If the trust builds the tool, it is the manufacturer under DCB0129 as well as the deploying organisation under DCB0160. That means a named clinical safety officer, a hazard log and a clinical safety case before the pilot. Missed urgent features and misfiled letters are the top hazards. The standards are under review, so expect revised versions.

  • MHRASoftware and AI as a medical device

    Reading, summarising and routing for a clinician to review sits at the lower-risk end. Suggesting a clinical priority is the part most likely to make the software a medical device, because the MHRA's software guidance treats triage as a sign of a possible medical purpose. Write the intended purpose down, get a regulatory view in discovery, and be ready to launch summaries and routing first if priority suggestion needs a device route.

  • NHS EnglandThe e-Referral Service and the RTT rules

    Only a clinician accepts, returns or redirects a referral. The AI reads e-RS through application-restricted API access, which is read-only. Triage outcomes and advice and guidance replies need user-restricted access under the clinician's own NHS Care Identity Service 2 (CIS2) login, so the platform itself stops the AI recording a decision. NHS England has asked for advice and guidance to run through e-RS from July 2026 (October 2026 where a third-party service is used).

  • NHS EnglandDigital Technology Assessment Criteria (DTAC)

    If any part is bought rather than built, the supplier completes the updated DTAC form, which replaced the old one in spring 2026, alongside its clinical safety, DSPT and data protection evidence.

  • ICOUK GDPR, the Data Protection Act 2018 and the Caldicott principles

    Referrals and letters are special category health data. That means a DPIA before the pilot, processing in UK regions, collecting only what's needed, a clear retention period, and a contract that stops providers training their models on your data. The priority is a suggestion to a clinician, not a solely automated decision, which keeps the design clear of the strict limits that still apply to special category data under the amended UK GDPR.

  • NHS EnglandData Security and Protection Toolkit (DSPT)

    Acute trusts complete the CAF-aligned toolkit. The new system, its cloud services and its suppliers are covered in the trust's 2026-27 (version 9) submission, with the API connections and service identities in the trust's asset register.

The solution

Showing AWSAzuresovereign / on-prem services. Switch with the toggle; every diagram and table on this page follows it.

Referral and clinical letter processing: reference architecture
  1. 01Channels

    • GP referrals through e-RS
    • Letters from GPs and other providers
    • Paper post, scanned
  2. 02Intake

    • API GatewayAPI ManagementKong, or your existing API gatewaye-RS and EPR connections
    • AWS LambdaLogic Apps mailbox connectorn8n, or your integration engineSecure mailbox connector
    • Amazon S3Blob StorageCeph, or IONOS S3 Object StorageDocument store
  3. 03Intelligence

    • Amazon TextractContent Understanding (Document Intelligence)Docling plus an open-weight vision modelRead documents
    • Bedrock Knowledge BasesFoundry IQ (Azure AI Search)OpenSearch, or PostgreSQL with pgvectorSpecialty referral criteria
    • Agent
      Bedrock AgentCoreFoundry Agent ServiceLangGraph on Kubernetes, with open-weight models via vLLMReferral reader
    • Agent
      Bedrock AgentCoreFoundry Agent ServiceLangGraph on Kubernetes, with open-weight models via vLLMCorrespondence router
  4. 04Orchestration

    • Step FunctionsLogic Apps / Durable FunctionsTemporalReferral and letter workflow
    • EventBridge + SQSEvent Grid + Service BusApache Kafka or RabbitMQEvents and queues
  5. 05Systems of record

    • NHS e-Referral Service
    • EPR and PAS
    • Electronic document management
  6. 06People

    • Person
      Consultant: triages and decides
    • Person
      Referral management team
    • Person
      Medical secretaries and coders
  • Cloud or platform service (AWSAzuresovereign / on-prem)
  • AI agent
  • A person decides
  • Your existing systems
  • Outside your organisation

Components, side by side

Referral and clinical letter processing: components on AWS, Azure and a sovereign or on-prem stack
LayerAWSAzureSovereign / on-prem
Intake: e-RS, secure email, scanned postReferrals come from the e-RS FHIR API. Letters arrive in the trust's secure mailbox, through the EPR's document feed, or scanned from post.API Gateway, AWS Lambda, Amazon S3API Management, Logic Apps connectors, Blob StorageKong or your existing API gateway; n8n or your integration engine; Ceph or IONOS S3 Object Storage
Reading documentsTest on real scanned letters, poor-quality PDFs and handwritten notes, not clean templates.Amazon Textract, or Bedrock Data AutomationAzure Content Understanding (includes Document Intelligence)Open-source parsing (e.g. Docling) plus an open-weight vision model
Summaries and suggestionsBoth clouds offer a choice of models, including Claude. Test every model on your own referrals, one specialty at a time.Amazon BedrockMicrosoft FoundryOpen-weight models served with vLLM on your own GPUs, or IONOS AI Model Hub
Referral criteria (retrieval)Each specialty's approved referral and triage criteria, owned by its clinical lead and versioned. Every suggestion cites the criterion it used.Bedrock Knowledge BasesFoundry IQ, built on Azure AI SearchOpenSearch, or PostgreSQL with pgvector
Agent runtimeThe original Bedrock Agents closed to new customers on 30 July 2026; new builds use AgentCore.Amazon Bedrock AgentCoreFoundry Agent ServiceAn open-source agent framework (e.g. LangGraph) on Kubernetes
WorkflowAWS Step FunctionsLogic Apps or Durable FunctionsTemporal, or n8n
Middleware and eventsAmazon EventBridge, SQSEvent Grid, Service BusApache Kafka or RabbitMQ
Link to e-RSThe AI's own access is application-restricted, which is read-only. Anything that changes a referral is done under the clinician's CIS2 login. API integrations go through NHS England's onboarding process, so start it in discovery.e-RS FHIR API through API Gatewaye-RS FHIR API through API Managemente-RS FHIR API through Kong or your existing API gateway
Link to the EPR and document managementReuse the integration engine the trust already runs. Agree with your EPR supplier what can be written back, and how, before anything is built.Your existing integration engine, over HL7 v2 or FHIRYour existing integration engine, over HL7 v2 or FHIRYour existing integration engine, over HL7 v2 or FHIR
Human reviewClinicians see the summary and suggestion where they already work, not in a new screen.In the e-RS worklist and the EPR, where clinicians already triageIn the e-RS worklist and the EPR, where clinicians already triageIn the e-RS worklist and the EPR, where clinicians already triage
GuardrailsGrounding checks flag any statement in a summary that isn't in the source documents.Bedrock GuardrailsFoundry guardrails (Azure AI Content Safety)Open-source guardrails (e.g. NeMo Guardrails, Llama Guard)
Identity, keys, data protectionClinicians keep using CIS2 for e-RS. The AI runs under its own service identity, with read-only access.IAM Identity Center, KMS, MacieEntra ID, Key Vault, PurviewKeycloak or your existing Active Directory; OpenBao or HashiCorp Vault; an HSM
Monitoring and auditLog every summary, every suggestion, the criteria version used, and the clinician's decision.CloudWatch, CloudTrailAzure Monitor, Log AnalyticsPrometheus, Grafana, OpenTelemetry
UK data residencyThis is NHS patient data. The trust's IG policy may require UK residency, so an EU-hosted option such as IONOS AI Model Hub (Germany) may not fit.eu-west-2 (London)UK South / UK WestYour own UK data centre, or a UK or EU provider

On a phone, the table shows the platform you pick. Sovereign / on-prem means open, portable components you can run in your own data centre or with a UK or European provider; IONOS is shown as one example, and others exist. What sovereign cloud means →

Hybrid and on-prem

Many organisations keep core systems and sensitive data on their own servers. This is how the same design works across both.

Stays on-prem

The EPR, PAS, document management system and integration engine stay where they are, many of them in the trust's own data centre. e-RS stays a national service. The AI never becomes the record.

Uses cloud AI

Document reading, summaries, criteria retrieval and suggestions run in a UK cloud region, or on the trust's own GPUs with open-weight models for the sovereign option. Only the referral or letter being processed is sent, and nothing is kept beyond the agreed retention period.

How they connect

The e-RS FHIR API for referrals, and the trust's integration engine for the EPR and document management, over HSCN or a private link such as AWS Direct Connect or Azure ExpressRoute. Results come back as events onto the trust's own queue.

If the link drops

Referrals stay safely in the e-RS worklist and letters in the mailbox. Clinicians and secretaries work exactly as they did before the AI, and the backlog is read and summarised when the link returns.

The agents

What each agent may do through its tools, what it may not, and where a person signs off. The limits are enforced by the platform, not the prompt.

Referral reader

May do

  • Read new referrals, attachments and clinical information from the e-RS worklist
  • Look up the patient's recent letters and results in the EPR
  • Check the referral against the specialty's approved criteria
  • Draft a one-screen summary and list missing information
  • Suggest a priority and a clinic, with reasons and the criteria cited

May not do

  • Accept, reject, return or redirect a referral
  • Record a triage outcome in e-RS
  • Reply to an advice and guidance request
  • Book, cancel or change an appointment
  • Contact the patient or the GP

Where a person signs offA clinician triages every referral and records the outcome under their own CIS2 login. The agent's access to e-RS is read-only, enforced by the API's access mode and the platform's identity controls, not by instructions in a prompt.

Correspondence router

May do

  • Read incoming letters from the mailbox, document feed and scans
  • Suggest the patient match, using the NHS number and demographics
  • Suggest the letter type and codes for the record
  • Route the letter to the right team or clinician's queue
  • Flag letters that ask the trust to act

May not do

  • File a letter when the patient match is uncertain
  • Change patient demographics or the problem list
  • Act on what a letter asks for
  • Close a task or discharge a patient

Where a person signs offUncertain matches go to a person to confirm before filing. Anything a letter asks for, such as an earlier appointment, is decided by the clinician it was routed to.

Middleware and integration

e-RS is reached only through its FHIR API, and the EPR and document management only through the trust's integration engine, never directly. If the trust uses a data platform for elective recovery, such as the NHS Federated Data Platform, the referral data feeds the same waiting list rather than a parallel one.

Events decouple the AI from the systems of record. A new referral or letter becomes a message on a queue. If the EPR or e-RS is slow or down, items wait safely, and nothing is lost or processed twice. Every message carries an ID, so a retry never creates a duplicate task or a second filing.

The AI can be switched off without stopping the trust. If it's paused, referrals stay in the e-RS worklist and letters in the inbox, and people work them exactly as they did before.

Process and people

  • A clinical lead in each specialty owns its referral criteria, with change control. The AI is re-tested whenever criteria change.
  • An exception queue for letters the AI can't match to a patient with confidence, owned by the medical records team.
  • Override reasons captured when a clinician changes the suggested priority, and reviewed weekly with the clinical safety officer.
  • A weekly audit of a sample of triaged referrals, including every referral that was later upgraded.
  • A named owner for every prompt and model, with change control like any other clinical system.
  • Clinicians and secretaries trained before go-live, including what the AI can't see: anything not in the referral.

Delivery plan

  1. 3–4 weeks

    Discovery

    Map today's referral and letter flows, measure the baseline, confirm e-RS API access and what the EPR supplier allows, and get a regulatory view on intended purpose.

  2. Gate · must be true to passBaseline agreed, intended purpose written, clinical safety officer named, DPIA and hazard log started, e-RS onboarding begun.

  3. 8–10 weeks

    Pilot

    Two specialties, in shadow mode: the AI summarises and suggests, clinicians triage as normal, and the two are compared.

  4. Gate · must be true to passSummary accuracy and override rate within agreed limits, no missed urgent features in the audit, clinical safety case signed off.

  5. 4–6 weeks

    Production

    Summaries and routing go live in the pilot specialties, with monitoring, support and a rollback plan.

  6. Gate · must be true to passMonitoring, support model, rollback plan and clinician training in place.

  7. Ongoing

    Scale

    Add specialties one at a time, then extend the same pattern to advice and guidance and to inter-provider transfers.

  8. Gate · must be true to passEach new specialty passes the same pilot gate, with its own criteria signed off.

Roles and RACI

Who is responsible, accountable, consulted and informed, by activity
ActivityElective care directorProduct ownerSolutions architectI can fill thisTechnical PMI can fill thisEngineersI can fill thisClinical safety officerIG & CaldicottSecurityI can fill this
Business case and benefitsAccountableResponsibleConsultedConsultedInformedConsultedInformedInformed
Target architecture and integrationInformedConsultedAccountable and ResponsibleConsultedConsultedConsultedConsultedConsulted
Intended purpose and clinical safety caseAccountableConsultedConsultedInformedConsultedResponsibleInformedInformed
DPIA, Caldicott review and DSPTConsultedConsultedConsultedInformedInformedConsultedAccountable and ResponsibleConsulted
Build and integrationInformedConsultedAccountableResponsibleResponsibleConsultedInformedConsulted
Pilot testing on real referralsAccountableResponsibleConsultedResponsibleResponsibleResponsibleInformedInformed
Go-live decisionAccountableResponsibleConsultedResponsibleInformedConsultedConsultedConsulted
Run, monitor and improveAccountableResponsibleConsultedConsultedResponsibleConsultedConsultedConsulted

Business case and benefits

Elective care director
A · Accountable
Product owner
R · Responsible
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
I · Informed
Clinical safety officer
C · Consulted
IG & Caldicott
I · Informed
Security
I · Informed

Target architecture and integration

Elective care director
I · Informed
Product owner
C · Consulted
Solutions architect
A/R · Accountable and Responsible
Technical PM
C · Consulted
Engineers
C · Consulted
Clinical safety officer
C · Consulted
IG & Caldicott
C · Consulted
Security
C · Consulted

Intended purpose and clinical safety case

Elective care director
A · Accountable
Product owner
C · Consulted
Solutions architect
C · Consulted
Technical PM
I · Informed
Engineers
C · Consulted
Clinical safety officer
R · Responsible
IG & Caldicott
I · Informed
Security
I · Informed

DPIA, Caldicott review and DSPT

Elective care director
C · Consulted
Product owner
C · Consulted
Solutions architect
C · Consulted
Technical PM
I · Informed
Engineers
I · Informed
Clinical safety officer
C · Consulted
IG & Caldicott
A/R · Accountable and Responsible
Security
C · Consulted

Build and integration

Elective care director
I · Informed
Product owner
C · Consulted
Solutions architect
A · Accountable
Technical PM
R · Responsible
Engineers
R · Responsible
Clinical safety officer
C · Consulted
IG & Caldicott
I · Informed
Security
C · Consulted

Pilot testing on real referrals

Elective care director
A · Accountable
Product owner
R · Responsible
Solutions architect
C · Consulted
Technical PM
R · Responsible
Engineers
R · Responsible
Clinical safety officer
R · Responsible
IG & Caldicott
I · Informed
Security
I · Informed

Go-live decision

Elective care director
A · Accountable
Product owner
R · Responsible
Solutions architect
C · Consulted
Technical PM
R · Responsible
Engineers
I · Informed
Clinical safety officer
C · Consulted
IG & Caldicott
C · Consulted
Security
C · Consulted

Run, monitor and improve

Elective care director
A · Accountable
Product owner
R · Responsible
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
R · Responsible
Clinical safety officer
C · Consulted
IG & Caldicott
C · Consulted
Security
C · Consulted

R ResponsibleA AccountableC ConsultedI Informed· not involved

Where I'd fit

Option A

Lead the architecture

If there's no architect on the programme, I'd own the design end to end: the e-RS and EPR integration, the document reading, the agents' access and the gates, working closely with your clinical safety officer and your Caldicott Guardian. I'd report to your programme board.

Option B

Support your architect

If your partner, your EPR supplier or your own team already has an architect, I'd take on the document AI, the referral criteria knowledge base and the e-RS integration under their lead, and give them a second senior opinion on security, identity and the clinical safety evidence.

Where this goes wrong

  1. Goes wrong

    The demo used typed referral forms. Real referrals include scanned letters, photos and results tables.

    How the design avoids it

    Pilot on last month's real referrals and letters, every channel and every attachment type.

  2. Goes wrong

    The priority suggestion drifts into a clinical decision, and the tool becomes a medical device without anyone deciding it should.

    How the design avoids it

    A written intended purpose, suggestions drawn from each specialty's own criteria, and a regulatory view before the pilot.

  3. Goes wrong

    Consultants accept suggestions without reading the referral.

    How the design avoids it

    Short, specific summaries with links to the source, an override-rate measure, and an audit of every referral later upgraded.

  4. Goes wrong

    A letter is filed against the wrong patient because the match looked close enough.

    How the design avoids it

    A confidence threshold set with the medical records team, and a person to confirm every uncertain match.

  5. Goes wrong

    The design assumes the AI can write triage outcomes into e-RS.

    How the design avoids it

    Confirm the e-RS access modes in discovery. The AI reads; the clinician records the outcome under their own login.

On the horizon

Changes already announced or under way that affect this design. More in the UK horizon scan.

  1. Late 2026–2027
    The review of DCB0129 and DCB0160 (consultation closed 11 September 2026) is expected to bring revised clinical safety standards.

    Keep the hazard log and safety case structured and current, so moving to the new versions is an update, not a rewrite.

  2. 2027
    Following the National Commission into the Regulation of AI in Healthcare, the MHRA plans draft guidance on changes to AI devices, a 2027 consultation on how AI devices are qualified and classified, and a full roadmap in spring 2027.

    Write the intended purpose down now, keep priority suggestion a separable feature, and review both against the new guidance as it lands.

  3. March 2027 and March 2029
    NHS England's RTT milestones: 70% of patients waiting under 18 weeks by March 2027, and 92% by March 2029.

    Measure referral-to-triage time from day one. It's waiting time the patient experiences but rarely sees reported.

  4. By 2028/29
    NHS England expects acute trusts to be onboarded to the NHS Federated Data Platform and using its core products for elective recovery.

    Design referral data to feed the same waiting list the trust will use for elective recovery, not a separate one.

  5. By December 2028
    The Health Bill, now in the Lords, would give the legal basis for the Single Patient Record. The government's target is to launch it in the NHS App by December 2028.

    Build on national standards such as FHIR and the e-RS API, so the AI can read a fuller record when it becomes available.

Questions to ask your partner or vendor

Good answers are specific. Vague answers to any of these are worth following up.

Copy them into your next supplier meeting

  1. What exactly is the intended purpose, and who decided whether priority suggestion makes it a medical device?
  2. Which e-RS access mode will the AI use, and how do we know it can't record a triage outcome?
  3. How will we measure accuracy on our own referrals and letters, specialty by specialty?
  4. Who owns each specialty's referral criteria, and how does a change reach the AI?
  5. What happens to an uncertain patient match, and who confirms it?
  6. What does it cost to run per thousand referrals, at our volume?

Planning something like this?

Whether you need someone to lead the design or to support the architect you already have, let's talk it through.

Sam Naseem
Sam NaseemBirmingham, UK · UK & Europe
Available now