Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Booking and Referral Standard (BaRS) - FHIR API

Sends booking and referral information between NHS service providers using the Booking and Referral Standard as an HL7 FHIR R4 API. OpenAPI harvested verbatim (8 paths).

Booking and Referral Standard (BaRS) - FHIR API is one of 10 APIs that NHS England publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include FHIR, Booking, and Referrals. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 8 operations across 8 paths, organized into 5 resource areas, and defines 13 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.

Requests are made against 3 base URLs: https://sandbox.api.service.nhs.uk/booking-and-referral/FHIR/R4, https://int.api.service.nhs.uk/booking-and-referral/FHIR/R4, https://api.service.nhs.uk/booking-and-referral/FHIR/R4.

8 operations 8 paths 13 schemas 7 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0.0
Base URL
https://api.service.nhs.uk/booking-and-referral/FHIR/R4
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
5

Authentication & Security 1

Booking and Referral Standard (BaRS) - FHIR API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (OAuth_Token). By default, every request must be authenticated.

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 7 GET, 1 POST. They span 5 resource areas: Metadata, Message, Slots, Booking, Referral. Each is listed below with its method, path, parameters, and response codes.

Metadata 2
GET
/metadata
Get capability statement
getMeta 7 params → 2004XX5XX
GET
/MessageDefinition
Get Message Definition
getMessageDefinition 8 params → 2004XX5XX
Message 1
POST
/$process-message
Process a message
processMessage 8 params body → 2004XX5XX
Slots 1
GET
/Slot
Get slots
getSlots 11 params → 2004XX5XX
Booking 2
GET
/Appointment
Get bookings for a patient
getBookingByPatient 8 params → 2004XX5XX
GET
/Appointment/{id}
Get a specific booking
getBooking 8 params → 2004XX5XX
Referral 2
GET
/ServiceRequest
Get referral/s for a patient
getReferralByPatient 9 params → 2004XX5XX
GET
/ServiceRequest/{id}
Get a specific referral
getReferral 8 params → 2004XX5XX

Schemas 13

The contract defines 13 schemas that model the data the API accepts and returns. Each schema is shown below with its type and property counts.

Capability
TargetIdentifier
Appointment
SearchBundleAppt
ServiceRequest
SearchBundleRef
SearchBundleSlot
MessageBundle
MessageDefinition
OperationalOutcome
RequestingOrganisationToken
RequestingPractitionerToken
RequestingSoftwareToken

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

nhs-booking-and-referral-fhir-openapi.yaml Raw ↑

Other APIs NHS England publishes across the network.

Personal Demographics Service (PDS) - FHIR API
GP Connect Access Record - Structured - FHIR API
Electronic Prescription Service (EPS) - FHIR API
e-Referral Service (e-RS) - FHIR API
Immunisation History - FHIR API
Organisation Data Service (ODS) - FHIR API
NHS App API
NHS Notify (Communications Manager) API
Service Search (Directory of Healthcare Services) API