Skip to main content
Creating a new NHS England: Health Education England, NHS Digital and NHS England have merged. More about the merger.

Electronic Prescription Service - HL7 V3 API

Access the Electronic Prescription Service (EPS) to send prescriptions from prescribers such as GPs to dispensers such as pharmacies using our HL7 V3 API. This is now deprecated.

This API is in production, but deprecated. We will contact you before agreeing to a retirement date.

If you are developing a new integration, you must use the Electronic Prescription Service - FHIR API instead.

If you have any concerns, contact us.


Use this API to access the Electronic Prescription Service (EPS). EPS allows a prescriber (such as a GP) to send prescriptions electronically to a dispenser (such as a pharmacy) of the patient's choice. This makes the prescribing and dispensing process more efficient and convenient for patients and staff.

You can do different things, depending on your role.

As a prescriber you can:

  • send prescriptions to EPS
  • cancel prescriptions

As a dispenser you can:

  • receive prescriptions from EPS
  • confirm a prescription is dispensed
  • claim for a dispensed prescription

A healthcare worker must be present and authenticated with an NHS smartcard or a modern alternative to use this API.

Prescribing system scope

The EPS prescribing system specification describes reduced functionality for a minimal EPS prescribing system. It's designed to allow urgent and emergency care systems to generate EPS prescriptions, but could apply to other care settings which are in scope:
  • acute (one-off) prescriptions
  • advanced electronic signatures
  • one-off nomination
  • update of local patient demographic record with information from Spine Demographics
  • Dictionary of Medicines and Devices (dm+d)
  • prescription cancellation
  • prescription token printing
  • reporting and information requirements

Who can use this API

This API can only be used where there is a legal basis to do so. Make sure you have a valid use case before you go too far with your development.

You must do this before you can go live (see ‘Onboarding’ below).

API status

This API is in production, but deprecated. We will contact you before agreeing to a retirement date.

Service level

This API is a platinum service, meaning it is operational and supported 24 x 7 x 365.

For more details, see service levels.


This API is an HL7 V3 API and uses:

  • synchronous interactions, using HL7 V3 SOAP web services
  • asynchronous interactions, using HL7 V3 ebXML messaging

The asynchronous pattern is used for interactions which either do not require an immediate response or might take longer, for example:

  • prescribing system is informed of the final outcome of the cancellation request
  • this is currently delivered by Spine to an MHS Endpoint and could be minutes, hours or days from the initial cancellation request

For more details, see HL7 V3.

Message Handling System (MHS) adaptor

To remove the complexity of building your own Message Handling System, we offer a pre-assured, client side MHS adaptor that you can integrate into your own infrastructure.

It makes it easier to connect to the NHS Spine and perform business operations by exposing a RESTful API that conforms to the HL7 V3 standard

Network access

You need a Health and Social Care Network (HSCN) connection to use this API.

For more details, see Network access for APIs.

Security and authorisation


This API is user-restricted, meaning that an end user must be present and authenticated to use it.

The end user must be:

We support the following security patterns:

  • user-restricted HL7 V3 API, using NHS Care Identity Service 2 (NHS CIS2)
  • user-restricted HL7 V3 API, using CIS

For more details see user-restricted APIs.


For some activities, the end user must be authorised to perform that activity.

The API itself does not perform any authorisation checks. Rather, the calling system is expected to perform them. The authorisation rules are specified in our national Role Based Access Control (RBAC) database.

For more details see our national Role Based Access Control (RBAC) database on the registration authorities and smartcards page.


You can test this API using our Path to Live environments.


You must get your software onboarded before it can go live.

Contact us before onboarding with this API. It uses the Common Assurance Process (CAP) which is tailored for each NHS service.


For a full list of interactions for this API, see the Medication Management v2.3.1 section in the Spine Message Implementation Manual (MIM) version 4.2.00.

Note that only the following interaction IDs are supported - the others were not implemented.

Section number Description Interaction ID
6.1 Parent Prescription PORX_IN020101UK31
6.2 Parent Prescription (Non-Urgent)  PORX_IN020102UK31
6.3 Patient Prescription Release Request PORX_IN132004UK30
6.4 Patient Prescription Release Response PORX_IN070103UK31
6.5 Nominated Prescription Release Request PORX_IN060102UK30
6.6 Nominated Prescription Release Response PORX_IN070101UK31
6.7 Prescription Release Rejection PORX_IN110101UK30
6.8 Dispense Proposal Return PORX_IN100101UK31
6.9 Cancel Request  PORX_IN030101UK32
6.10 Cancel Response PORX_IN050101UK31
6.11 Subsequent Cancel Response  PORX_IN050102UK32
6.12 Dispense Notification PORX_IN080101UK31
6.13 Dispense Claim Information PORX_IN090101UK31
6.15 Dispense Reimbursement Claim PORX_IN370101UK31
6.18 Dispense No Claim Notification PORX_IN460101UK31
6.19 Dispenser Withdraw PORX_IN510101UK31
6.21 Rebuild Dispense History PORX_IN540101UK31

For details on the general structure of the interactions, see HL7 V3.

Before you begin any development work using this API, contact us to discuss your best options.

Additional guidance

Systems may need to meet non-functional requirements listed in any NHS Digital agreements.

You may find it useful to read these documents as they provide useful details of the EPS process and the Spine interface.

There are also several other documents which you may find useful. Some relate only to prescribing systems, some only to dispensing systems, others are common to both.


Prescribing documents and guidance include:


Dispensing documents and guidance include:

Prescribing and dispensing

Prescribing and dispensing documents include:

Other useful information

Other useful information includes:

Last edited: 3 May 2023 12:53 pm