v50

latestOpenAPI 3.0.0MITraw.githubusercontent.com2023-08-021119.0 KB

Get immunisation history

Given an NHS number, get the patient's immunisation history. Also returns the patient's demographic details, as captured at the point of immunisation.

Sandbox testing

You can test the following scenarios in our sandbox environment:

ScenarioRequestResponse
Immunisation history foundpatient.identifier=https://fhir.nhs.uk/Id/nhs-number|9000000009HTTP Status 200 with immunisation data in response body
No immunisations foundpatient.identifier=https://fhir.nhs.uk/Id/nhs-number|9000000033HTTP Status 200 with empty bundle in response body
Bad Requestpatient.identifier= anything elseHTTP Status 400 Bad Request

You can try out the sandbox using the 'Try this API' feature on this page.

Alternatively, you can try out the sandbox using our Postman collection:

Run in Postman

get/Immunization

Query parameters

patient.identifierstring required
Example:https://fhir.nhs.uk/Id/nhs-number|9000000009

The patient's NHS number. Expressed as <type>|<value> where <type> must be https://fhir.nhs.uk/Id/nhs-number and <value> must be a valid NHS number.

procedure-code:belowstring

Parent SNOMED code for all COVID-19 vaccinations.

Parent SNOMED immunisation procedure code. For example, 90640007, which is the parent code for all COVID-19 vaccinations. This parameter has been deprecated and will be replaced by the immunization.target parameter.

immunization.target'COVID19' | 'HPV' | 'FLU'
Example:COVID19

Immunization History is segmented into multiple Data Stores, which may target specific procedures, disorders, diseases, infections or organisms.

date.fromstring date

The earliest date to be included (e.g. 2020-01-01)

date.tostring date

The latest date to be included (e.g. 2020-12-31)

_includestring required
Example:Immunization:patient

Specifies other resources to be included in the response along with the immunisations. Must be Immunization:patient, which will include patient demographic details.

Headers

Authorizationstring ^Bearer\ [[:ascii:]]+$ required
Example:Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM

An OAuth 2.0 bearer token, obtained using our NHS login pattern.

X-Correlation-IDstring
Example:11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA

An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Acceptstring
Example:version=1.0, version=2.0

Optional header to select the version of the api. Version number will follow semver.

Response

The request was valid, and the response contains immunisation history and associated patient details. If there are no immunisations for the given NHS number, the response bundle will be empty.

All 1 operations