Community pharmacy · Playbook 72

NHS claims and reimbursement

Every branch's NHS payment checked every month, not a sample. Missed service claims caught while they can still be made, margin explained item by item, and a cash forecast finance can plan with.

  • Document AI
  • Predictive ML
  • Agents with tools
  • Human in the loop
  • Drug Tariff
  • NHS Terms of Service
  • Pharmacy First specification
  • UK GDPR

At a glance

The problem
Hundreds of payment schedules a month, checked by sampling, with service fees and margin lost in small amounts
Typical volume
450 branches, around 4 million items and tens of thousands of service consultations a month
Who's involved
Finance, the reimbursement team, buying, branch operations, IT, information governance
Pilot
8 weeks after a 3 week discovery
Clouds
AWS or Azure, UK regions

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

Each branch is its own NHS contractor and gets its own monthly Schedule of Payments from the NHSBSA: items, fees, Drug Tariff prices, the discount deduction, service payments and adjustments. A group with 450 branches receives 450 of them a month. The reimbursement team checks a sample by hand. Most statements are never compared line by line with what the branch actually dispensed and delivered.

Money leaks in small amounts. A Pharmacy First consultation is recorded in the clinical system but never reaches Manage Your Service, and since June 2025 the window to claim closes at the end of the following month. A branch falls just short of the monthly activity threshold for the fixed payment. Consultations go over the monthly cap and aren't paid. A prescription bundle goes in late. Each one is minor. Across hundreds of branches and twelve months, it's a real sum.

Margin is harder still. Category M prices move every quarter to deliver the agreed retained margin, set at £1.1 billion for 2026/27. Category H, added in March 2026, moves quarterly too. Price concessions are granted month by month, often late in the month: 230 for May 2026 alone. Buyers can't see which lines lose money until weeks later, and finance forecasts branch cash by rule of thumb.

What AI changes

  • Every branch's Schedule of Payments is read and reconciled each month against the dispensing and clinical systems, not a sample.
  • Services recorded but not claimed are flagged to the branch daily, with the deadline, while the claim can still be made.
  • The gap between expected and actual payment is explained in plain English: price, volume, missing claims or adjustments, each linked to the source line.
  • Purchase prices from wholesaler invoices are matched to reimbursement item by item, so buying sees loss-making lines and concession candidates early.
  • Finance gets a cash forecast per branch and for the group, updated as concessions and Category M changes are announced.
  • People make every claim and every correction. The AI finds and explains; it never submits or amends anything.

How success is measured

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

Unclaimed services found in time

The share of recorded but unclaimed consultations flagged before the claim window closes.

ExampleOver 90%

Late and rejected claims

Claims missed, paid late or not paid, by branch and by service.

ExampleDown by half

Variance explained

The share of the gap between expected and actual payment that has a clear cause.

ExampleOver 95% of the value

Days to close the month

How long the reimbursement team takes to reconcile all branches.

ExampleFrom weeks to days

Cash forecast accuracy

Forecast against actual NHS payments, per branch and for the group, three months ahead.

ExampleWithin a few percent for the group

False flag rate

How often a flagged gap turns out not to be one. High means branches will stop reading the flags.

ExampleLow, and reviewed monthly

UK regulation and controls

Cross-sector rules are on the UK regulation map.

  • DHSC / NHSBSAThe Drug Tariff: reimbursement prices (Parts V and VIII)

    Category M prices change each quarter, Category H prices change each quarter on a different cycle, and price concessions apply only to the month they're granted. Prices are held as dated reference data, and every check uses the price that applied in the month of dispensing, including any discount deduction or exemption.

  • NHS England / NHSBSAPharmacy First service specification and Drug Tariff Part VIC

    Consultations flow from an approved clinical system, through an API, into Manage Your Service. Since 1 June 2025, a claim must be made by the end of the month after the consultation, and later claims aren't paid unless a proven IT fault caused the delay. Monthly caps apply by band, and the fixed payment depends on minimum activity and on signing up to linked services. So the design compares the clinical system with MYS every day, not at month end.

  • NHS EnglandNHS Terms of Service and the monthly FP34C submission

    Each branch declares its prescriptions through MYS by the 5th of the month, or the 6th when a bank holiday falls in the first five days, to get the earlier advance payment. Claims must be accurate: claiming for something not supplied or not delivered is fraud. The AI finds gaps and explains them. It never creates, submits or changes a claim.

  • ICO / NHS EnglandUK GDPR, the Data Protection Act 2018 and the DSPT

    Matching services to claims touches patient-level health data. Match on pseudonymised references where possible, leave identifiable data in the source systems, process in UK regions, and fit the platform inside each branch's Data Security and Protection Toolkit assurance.

  • HMRCVAT records and Making Tax Digital for VAT

    Wholesaler invoices and credit notes feed both margin and VAT. Keep extracted invoice data linked to the original document, and leave VAT treatment and returns to the existing finance system.

The solution

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

NHS claims and reimbursement: reference architecture
  1. 01Channels

    • NHSBSA: schedules and MYS
    • Drug Tariff and price concessions
    • Wholesaler invoices and credits
  2. 02Intake

    • AWS Transfer FamilyLogic Apps connectorsAn SFTP server, or your existing EDI gatewayFile and EDI intake
    • Amazon S3Blob StorageCeph, or IONOS S3 Object StorageFile store
    • Amazon RedshiftMicrosoft FabricPostgreSQL, or your existing data warehouseReconciliation data
  3. 03Intelligence

    • Amazon TextractContent Understanding (Document Intelligence)Docling plus an open-weight vision modelRead statements and invoices
    • Bedrock Knowledge BasesFoundry IQ (Azure AI Search)OpenSearch, or PostgreSQL with pgvectorTariff and service rules
    • SageMaker AIAzure Machine LearningMLflow and Kubeflow on KubernetesCash and margin forecasts
    • Agent
      Bedrock AgentCoreFoundry Agent ServiceLangGraph on KubernetesReconciliation agent
  4. 04Orchestration

    • Step FunctionsLogic Apps / Durable FunctionsTemporal, or n8nDaily and month-end runs
    • EventBridge + SQSEvent Grid + Service BusApache Kafka or RabbitMQEvents and queues
  5. 05Systems of record

    • Dispensing system (PMR)
    • Clinical services system
    • Finance system and buying
  6. 06People

    • Person
      Branch team: claim fixes
    • Person
      Reimbursement team: variances
    • Person
      Finance: forecast sign-off
  • Cloud or platform service (AWSAzuresovereign / on-prem)
  • AI agent
  • A person decides
  • Your existing systems
  • Outside your organisation

Components, side by side

NHS claims and reimbursement: components on AWS, Azure and a sovereign or on-prem stack
LayerAWSAzureSovereign / on-prem
Intake: statements, invoices, reference pricesMost wholesaler invoices already arrive by EDI. Reuse that feed and read documents only where there's no data.AWS Transfer Family, S3Logic Apps connectors, Blob StorageAn SFTP server or your EDI gateway, Ceph or IONOS S3 Object Storage
Reading documentsFor payment schedules and short-line supplier invoices that only come as PDFs.Amazon TextractAzure Content Understanding (includes Document Intelligence)Open-source parsing (e.g. Docling) plus an open-weight vision model
Reconciliation storeHolds dated Drug Tariff prices, concessions, claims, payments and purchase prices.Amazon RedshiftMicrosoft FabricPostgreSQL, or your existing data warehouse
The calculationExpected payment is arithmetic: price, quantity, fees, deductions. That's code with tests, not a language model.Tested code in the reconciliation storeTested code in the reconciliation storeTested code in the reconciliation store
ForecastingCash per branch, and the chance a line gets a concession. Amazon Forecast is closed to new customers, so new builds use SageMaker AI.Amazon SageMaker AIAzure Machine LearningMLflow and Kubeflow on Kubernetes
Reasoning and explanationsBoth offer a choice of models, including Claude and others.Amazon BedrockMicrosoft FoundryOpen-weight models served with vLLM on your own GPUs, or IONOS AI Model Hub
Tariff and service rules (retrieval)Drug Tariff parts and service specifications, so every explanation cites the rule.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
WorkflowA daily services check, and a month-end run when the schedules arrive.AWS Step FunctionsLogic Apps or Durable FunctionsTemporal, or n8n
Human reviewFixes happen in MYS or the clinical system, by people, as they do today.Tasks in the branch's existing task tool; variances in finance's reportingTasks in the branch's existing task tool; variances in finance's reportingTasks in the branch's existing task tool; variances in finance's reporting
GuardrailsBedrock GuardrailsAzure AI Content SafetyOpen-source guardrails (e.g. NeMo Guardrails, Llama Guard)
Identity, keys, data protectionIAM Identity Center, KMS, MacieEntra ID, Key Vault, PurviewKeycloak or your existing Active Directory; OpenBao or HashiCorp Vault; an HSM
Monitoring and auditLog every flag, every explanation and what the person did about it.CloudWatch, CloudTrailAzure Monitor, Log AnalyticsPrometheus, Grafana, OpenTelemetry
UK data residencyeu-west-2 (London)UK South / UK WestYour own UK data centre, or a UK/EU provider (IONOS AI Model Hub runs in Germany)

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 dispensing system, the clinical services systems, the finance system and patient-level service records stay where they run today. Matching to claims uses pseudonymised references created on-prem.

Uses cloud AI

Reading payment schedules and PDF invoices, explaining variances against the Drug Tariff, and the cash forecast. The payment calculation itself is ordinary tested code, so it can run on either side.

How they connect

A private link, such as AWS Direct Connect or Azure ExpressRoute, or a VPN, carries pseudonymised extracts out on a schedule and tasks and explanations back. Azure Arc can manage on-prem parts alongside cloud ones on Azure. On the sovereign option, the whole stack runs in your own data centre or with a UK or European provider.

If the link drops

Nothing in the NHS payment process waits for it. Branches claim in MYS as they do today, and the checks catch up when the extracts arrive. The claim window is the deadline that matters, so a link down for more than a day alerts the reimbursement team to check unclaimed services from the clinical system's own reports.

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.

Reconciliation agent

May do

  • Compare dispensing and clinical records with MYS claims and the Schedule of Payments
  • Look up the Drug Tariff price, category and any concession for a given month
  • Explain a variance in plain English, linked to the source lines
  • Create a task for a branch or the reimbursement team, with the deadline
  • Draft a supply problem report for the buying team to check and send

May not do

  • Submit, amend or withdraw a claim in MYS
  • Change an endorsement, a dispensing record or a consultation record
  • Make or change the monthly FP34C declaration
  • Contact the NHSBSA, Community Pharmacy England or a wholesaler
  • Change prices, orders or the finance system

Where a person signs offA named person at the branch or in the reimbursement team makes every claim and every correction, in MYS or the clinical system, as they do today. Finance signs off the cash forecast. The agent has read-only access to every system of record, enforced by the platform's identity and policy controls, not by instructions in a prompt.

Middleware and integration

Four sources feed the reconciliation, and none was built for it: the dispensing system, the clinical services systems (often more than one supplier across a large estate), the NHSBSA's schedules and MYS reports, and wholesaler invoices. Reuse the EDI feeds you already have for purchasing. Don't build new ones for this.

MYS is a portal. In discovery, confirm what can be downloaded, in what format, and whether automated retrieval is allowed. If it isn't, a named person downloading the month's files into a watched folder is a perfectly good answer.

Nothing in the NHS payment process depends on the AI. If a feed is late or the platform is down, the reconciliation runs later and the branches claim exactly as they do now. Switching it off returns the team to today's sampling.

Process and people

  • A reimbursement team owns the exception queue, ordered by deadline first and value second.
  • A clear rule that branches fix claims and the AI never does, written into the branch SOPs.
  • A monthly variance review with finance and buying, including lines that lost money and concessions requested.
  • A named owner for the reference data: Drug Tariff prices, concessions and categories, loaded and checked each month.
  • Branch teams trained on what each task means and how to fix it in MYS or the clinical system.
  • A simple way for branches to mark a flag as wrong, fed back into the rules each month.

Delivery plan

  1. 3 weeks

    Discovery

    Take ten branches' last six months, measure what went unclaimed or unexplained, and confirm access to the dispensing system, clinical systems, MYS outputs and invoices.

  2. Gate · must be true to passA baseline value agreed with finance, data access confirmed, DPIA started, and information governance involved.

  3. 8 weeks

    Pilot

    Thirty branches: back-test on six past months, then run live through two month-ends, with the daily services check sending real tasks.

  4. Gate · must be true to passFlags accurate within agreed limits, variance explained above the target, and finance sign-off.

  5. 4–6 weeks

    Production

    All branches for the services check and the monthly reconciliation, with the cash forecast going to finance.

  6. Gate · must be true to passMonitoring, support model, reference data ownership and branch training in place.

  7. Ongoing

    Scale

    Add new services as they launch, link purchase prices to buying decisions, and prepare the invoice feed for e-invoicing.

  8. Gate · must be true to passEach addition passes the same accuracy and false-flag checks.

Roles and RACI

Who is responsible, accountable, consulted and informed, by activity
ActivityFinance directorHead of reimbursementSolutions architectI can fill thisTechnical PMI can fill thisEngineersI can fill thisIG & DPOSecurityI can fill this
Business case and benefitsAccountableResponsibleConsultedConsultedInformedInformedInformed
Target architectureInformedConsultedAccountable and ResponsibleConsultedConsultedConsultedConsulted
DPIA and data accessInformedConsultedConsultedInformedInformedAccountable and ResponsibleConsulted
Build and integrationInformedConsultedAccountableResponsibleResponsibleInformedConsulted
Reconciliation accuracy testingInformedAccountableResponsibleConsultedResponsibleInformedInformed
Go-live decisionAccountableResponsibleConsultedResponsibleInformedConsultedConsulted
Run, monitor and improveInformedAccountableConsultedConsultedResponsibleConsultedConsulted

Business case and benefits

Finance director
A · Accountable
Head of reimbursement
R · Responsible
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
I · Informed
IG & DPO
I · Informed
Security
I · Informed

Target architecture

Finance director
I · Informed
Head of reimbursement
C · Consulted
Solutions architect
A/R · Accountable and Responsible
Technical PM
C · Consulted
Engineers
C · Consulted
IG & DPO
C · Consulted
Security
C · Consulted

DPIA and data access

Finance director
I · Informed
Head of reimbursement
C · Consulted
Solutions architect
C · Consulted
Technical PM
I · Informed
Engineers
I · Informed
IG & DPO
A/R · Accountable and Responsible
Security
C · Consulted

Build and integration

Finance director
I · Informed
Head of reimbursement
C · Consulted
Solutions architect
A · Accountable
Technical PM
R · Responsible
Engineers
R · Responsible
IG & DPO
I · Informed
Security
C · Consulted

Reconciliation accuracy testing

Finance director
I · Informed
Head of reimbursement
A · Accountable
Solutions architect
R · Responsible
Technical PM
C · Consulted
Engineers
R · Responsible
IG & DPO
I · Informed
Security
I · Informed

Go-live decision

Finance director
A · Accountable
Head of reimbursement
R · Responsible
Solutions architect
C · Consulted
Technical PM
R · Responsible
Engineers
I · Informed
IG & DPO
C · Consulted
Security
C · Consulted

Run, monitor and improve

Finance director
I · Informed
Head of reimbursement
A · Accountable
Solutions architect
C · Consulted
Technical PM
C · Consulted
Engineers
R · Responsible
IG & DPO
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 data model, the integration with your dispensing, clinical and finance systems, the forecasts, and the gates. I'd report to your programme board and work alongside your head of reimbursement.

Option B

Support your architect

If your partner or your own team already has an architect, I'd take on the reconciliation engine, the document reading and the agent under their lead, and give them a second senior opinion on the rest.

Where this goes wrong

  1. Goes wrong

    The reconciliation finds lost money after the claim window has closed.

    How the design avoids it

    Check services daily against MYS, and send each branch a task with the deadline on it.

  2. Goes wrong

    A language model does the sums, and occasionally gets one wrong.

    How the design avoids it

    Tested code calculates every expected payment from dated reference data. The model reads documents and explains.

  3. Goes wrong

    Concessions arrive late, so every month-end forecast is wrong.

    How the design avoids it

    Forecast with a range, mark concession lines as provisional, and update when the price is confirmed.

  4. Goes wrong

    Branches get hundreds of flags and stop reading them.

    How the design avoids it

    Rank by deadline and value, group by cause, and measure how often flags are wrong.

  5. Goes wrong

    Nobody can get the NHSBSA data out automatically, and it's found out late.

    How the design avoids it

    Confirm formats and access in discovery. A named person and a watched folder is fine.

On the horizon

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

  1. Branch by branch, from 29 October 2026
    Independent prescribing in Pharmacy First and the contraception service

    Legally available from 29 October 2026, starting branch by branch once the ICB approves each one. New consultation types, a one-off £500 set-up payment and £525 a month for infrastructure, with prescribing consultations counting towards the Pharmacy First thresholds. Add them to the reconciliation before the first claims, not after the first missing payment.

  2. Quarterly, next in December 2026
    More medicines moving into Category H

    Nineteen products had moved by September 2026, priced from lagged market data. Keep each product's Drug Tariff category as dated reference data, so a move changes the forecast without code changes.

  3. 2027/28 onwards
    Reform of the pharmacy contract, funding and reimbursement

    Community Pharmacy England accepted the 2026/27 settlement on condition of joint work with government on alternative contract, funding and reimbursement models. Keep fees, caps and margin rules as configuration, not code.

  4. April 2029
    Mandatory e-invoicing for VAT invoices

    HMRC published its roadmap on 28 October 2026: a Peppol-based model, a technical consultation in spring 2027 and readiness testing from summer 2028. Wholesaler invoices will arrive as structured data, so design the purchase-price feed to take e-invoices, with document reading as the fallback.

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. How much did we fail to claim last year, and how would we know?
  2. Which parts are calculated by tested code, and which by a model?
  3. How are price concessions confirmed after month end handled in the forecast?
  4. Can the system ever submit or change a claim, and where is that prevented?
  5. What data do we need from the NHSBSA and our system suppliers, and is automated access allowed?
  6. What does it cost to run per branch per month, and who owns the reference data after you leave?

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