Skip to main content

Part of Integration process overview

Stage 1.3 - Explore our FHIR API

Current Chapter

Current chapter – Stage 1.3 - Explore our FHIR API


Learn about the NHS e-Referral Service API endpoints and see how they work using our sandbox environment.

Current live endpoints = 37


Overview

The FHIR API is the modern way to integrate healthcare software with the e-Referral Service.

Our API can be used to create and manage digital referrals in primary and secondary care.

Functionality is broken down into two distinct areas:

  • Primary care referrer - organisations who send and manage referrals
  • Secondary care provider - organisations who receive and manage referrals

You can refer back to our building healthcare software guide for use case information.


1. API Catalogue

These diagrams show our full endpoint catalogue.

For each functional area we provide a typical workflow so that you understand how these endpoints could fit together. These are example flows and not all endpoints may be required.

The business processes behind these workflows and endpoints are described in our use case guide.

Download high resolution diagram (SVG, 2.3MB)


2. Referrer endpoints

2.1 Create referrals and bookings

Using this workflow you can:

  • create a referral request
  • book or defer an appointment to a service
  • send a referral to a triage service
  • upload and manage attachments

Review the create referrals and bookings use case for more information.

A004
Retrieve reference data
A004...
A010
Patient service search
A010...
A011
Create referral 
A011...
A020
Upload file to document store (up to 5MB)
A020...
A015
Retrieve appointment slots
A015...
A012
Maintain referral letter
A012...
A019
Generate patient letter
A019...
A016
Book / defer appointment
A016...
A039
Upload file to document store (up to 100MB)
A039...
Text is not SVG - cannot display Create referrals and bookings diagram
Accessibility description

Create referrals and bookings diagram

This diagram illustrates how the endpoints can be used to create a referrer workflow.

Referral request

For a referral request, the workflow includes the steps:

1.0 Retrieve reference data (A004)

2.0 Patient service search (A010)

3.0 Create referral (A011)

4.0 Upload file to document store (A020)

5.0 Maintain referral letter (A012)

6.0 Generate patient letter (A019)

Appointment booking

For a bookable service, the appointment booking workflow includes the steps:

1.0 Retrieve reference data (A004)

2.0 Patient service search (A010)

3.0 Create referral (A011)

4.0 Retrieve appointment slots (A015)

5.0 Book/defer appointment (A016)

6.0 Upload file to document store (A020)

7.0 Maintain referral letter (A012)

8.0 Generate patient letter (A019)

Referral assessment service (RAS)

For a triage referral, the workflow includes the steps:

1.0 Retrieve reference data (A004)

2.0 Patient service search (A010)

3.0 Create referral (A011)

4.0 Book/defer appointment (A016)

5.0 Upload file to document store (A020)

6.0 Maintain referral letter (A012)

7.0 Generate patient letter (A019)

The diagram also shows a future endpoint (A039) which will allow users to upload large files, up to 100MB in size.

2.2 Update and manage referrals

Using this workflow you can:

  • change a referral shortlist
  • cancel an appointment booking
  • cancel a referral

Review the update and manage referrals use case for more information.

A008
Retrieve referral worklist
A005
Retrieve referral request
A029
Available user actions
A031
Change shortlist
A034
Update appointment
A036
Cancel referral
A038
Retrieve appointment
A033
Retrieve healthcare service
A035
Search for healthcare services
A037
Retrieve healthcare service version
A004
Retrieve reference data
Update and manage referrals diagram
Accessibility description

Update and manage referrals diagram

This diagram illustrates how the endpoints can be used to create a referrer workflow.

Change shortlist (bookable)

For a bookable and triage service (RAS), the change shortlist workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve healthcare services (A033/A035/A037) - This is an optional step

4.0 Available user actions (A029)

5.0 Change shortlist (A031)

Cancel an appointment booking

The cancel appointment booking workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve healthcare services (A033/A035/A037) - This is an optional step

4.0 Available user actions (A029)

5.0 Retrieve reference data (A004)

6.0 Retrieve appointment (A038)

7.0 Update appointment (A034)

Cancel referral

The cancel referral workflow includes the steps:

1.0 Retrieve referral worklist A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve healthcare services (A033/A035/A037) - This is an optional step

4.0 Available user actions (A029)

5.0 Cancel referral (A036)

2.3 Create advice and guidance requests

Using this workflow you can create an advice and guidance request.

Review the create advice and guidance requests use case for more information.

A010
Patient service search
A020
Upload file to document store
A044
Create advice and guidance request
A004
Retrieve reference data
Create advice and guidance requests
Accessibility description

Create advice and guidance requests diagram

This diagram illustrates how the endpoints can be used to create an advice and guidance request workflow.

The workflow includes the steps:

1.0 Retrieve reference data (A004)

2.0 Patient service search (A010)

3.0 Upload file to document store (A020)

4.0 Create advice and guidance request (A044)

2.4 Respond to advice and guidance requests

This referrer functionality is not yet available.

Updates about it's development will be made in our updates and releases section.

Using this workflow you will be able to:

  • retrieve the advice and guidance requests worklist
  • respond to advice
  • convert an advice and guidance request to a referral
  • end advice request
Retrieve advice and guidance worklist
Respond to guidance
End advice request
Convert advice and guidance request to referral
Request and respond to advice and guidance requests diagram
Accessibility description

Respond to advice and guidance requests diagram

This diagram illustrates how our endpoints could be used to respond to advice and guidance requests workflow. These endpoints are not yet available for use in the API.

The workflow includes the steps:

1.0 Retrieve advice and guidance request worklist

2.0 Respond to advice

3.0 End advice

4.0 Convert advice and guidance request to referral 


3. Provider endpoints

3.1 Retrieve clinical referral information and review referrals

Using this workflow you can:

  • retrieve clinical referral information
  • accept/reject a referral
  • cancel an appointment booking to action later
  • record a triage outcome

Review the retrieve clinical referral information and receive and review referrals use cases for more information.

A008
Retrieve referral worklist
A005
Retrieve referral request
A042
Retrieve attachment
A014
Reject referral
A013
Accept referral
A007
Retrieve clinical information
A022
Cancel appointment, action later
A029
Available user actions
A028
Record triage outcome
Retrieve clinical referral information and review referrals diagram
Accessibility description

Retrieve clinical referral information and review referrals diagram

This diagram illustrates how the endpoints can be used to create a provider workflow.

Retrieve clinical referral information

This workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve attachment (A042)

4.0 Retrieve clinical information (A007)

Accept/reject a referral

This workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve attachment (A042)

4.0 Retrieve clinical information (A007)

5.0 Accept referral (A013) or

6.0 Reject referral (A014)

Cancel appointment, action later

This workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve attachment (A042)

4.0 Retrieve clinical information (A007)

5.0 Cancel appointment, action later (A022)

Record triage outcome

This workflow includes the steps:

1.0 Retrieve referral worklist (A008)

2.0 Retrieve referral request (A005)

3.0 Retrieve attachment (A042)

4.0 Retrieve clinical information (A007)

5.0 Available user actions (A029)

6.0 Record triage outcome (A028)

Clinical referral information can include:

  • structured clinical information added by an integrated primary care system
  • service provider activity
  • advice and guidance conversation

It is important that all clinical information is obtained using the endpoints below. Including clinical information across all related referrals in a pathway:

3.2 Receive and review advice and guidance requests

Using this workflow you can:

  • retrieve advice and guidance requests worklist
  • retrieve advice summary and conversations
  • send advice response
  • convert an advice and guidance request to a referral

Review the receive and review advice and guidance requests use case for more information.

A023
Retrieve A&G worklist
A024
Retrieve A&G summary
A025
Retrieve A&G conversation
A026
Send A&G response
A043
Retrieve A&G overview PDF
A042
Retrieve attachment
A027
Convert A&G request to referral
Receive and review advice and guidance requests diagram
Accessibility description

Receive and review advice and guidance requests diagram

This diagram illustrates how the endpoints can be used to create a provider workflow.

Retrieve advice and guidance information

This workflow includes the steps:

1.0 Retrieve advice and guidance requests worklist (A023)

2.0 Retrieve advice and guidance summary (A024)

3.0 Retrieve advice and guidance conversation (A025)

4.0 Retrieve attachment (A042)

5.0 Retrieve advice and guidance overview PDF (A043)

Send advice and guidance response

This workflow includes the steps:

1.0 Retrieve advice and guidance requests worklist (A023)

2.0 Retrieve advice and guidance summary (A024)

3.0 Retrieve advice and guidance conversation (A025)

4.0 Retrieve attachment (A042)

5.0 Retrieve advice and guidance overview PDF (A043)

6.0 Send advice and guidance response (A026)

Convert advice and guidance request to referral

This workflow includes the steps:

1.0 Retrieve advice and guidance requests worklist (A023)

2.0 Retrieve advice and guidance summary (A024)

3.0 Retrieve advice and guidance conversation (A025)

4.0 Retrieve attachment (A042)

5.0 Retrieve advice and guidance overview PDF (A043)

6.0 Convert advice and guidance request to referral (A027)


4.0 User and service information

These endpoints are assistive functions which are not specific to a functional area.

They provide information about:

  • a users role profile
  • roles which a user can work on-behalf-of
  • a service request
A041
Search for servicerequest
A041...
A030
Retrieve business functions
A030...
A040
Retrieve on behalf of users
A040...
Text is not SVG - cannot display User and service information
Accessibility description

User and service information

This diagram illustrates the endpoints which provide user and service specific information.

Within this category there are three endpoints:

1.0 Retrieve e-RS business functions (A030)

2.0 Retrieve e-RS-specific practitioner information (A040)

3.0 Search for service requests (A041)

These are individual endpoints with no dependence on each other to require a workflow.


5.0 Try our open-access sandbox

Our sandbox offers a self-service environment which you can use for learning, experimentation and early testing.

It is open-access, doesn't require authorisation and returns hard-coded responses. The sandbox will only respond to an input that matches one of the examples provided. Otherwise, it is stateless.

You can try the sandbox feature from our Open API Specification (OAS).


Last edited: 26 March 2025 3:58 pm