API Reference

Patients

The people your organisation cares for. Most other resources (appointments, consultations, episodes, questionnaires) belong to a patient.

  • Patients can't be deleted. Archive one with PATCH /patients/{id}, setting status to archived.
  • Status filters are case-sensitive. Use the exact values listed under each parameter.
  • The patient's NHS GP is set with a gp_registration block on create or update; there is no separate GP endpoint. See Recording the patient's GP.
  • consultation_context records where an item was captured. It is not a way to rebuild a consultation: use GET /consultations/{id}.
GET/patientsScoperead_patients

List patients

Returns a paginated list of patients for the authenticated organisation. Supports filtering and text search.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
activeinactivearchivedmerged
patient_typestring
activetemporarydummyarchivedmerged
status_instring

Comma-separated list of statuses

created_at_gtedate-time
No description yet.
created_at_ltedate-time
No description yet.
searchstring

Case-insensitive search across first_name, last_name, email, nhs_number

Responses

200

Paginated list of patients

401

Missing or invalid API key

500

Unexpected server error

POST/patientsScopewrite_patients

Create a patient

Creates a new patient record. The organization_id is set from the API key — it cannot be overridden in the request body.

Headers

Idempotency-Keyuuid

Optional UUID for request deduplication. Same key + same body returns the cached response. Same key + different body returns 409 CONFLICT. Keys are scoped to your organisation and endpoint, and expire after 24 hours.

Request body

first_namestringrequired
No description yet.
last_namestringrequired
No description yet.
date_of_birthdaterequired
No description yet.
middle_namestring
No description yet.
preferred_namestring
No description yet.
titlestring
No description yet.
biological_sexstring
malefemaleunknownindeterminate
genderstring
manwomannon_binaryotherprefer_not_to_say
ethnicitystring
No description yet.
nhs_numberstring

Format: 123-123-1234 or 1231231234

emailemail
No description yet.
phonestring
No description yet.
mobile_phonestring
No description yet.
home_phonestring
No description yet.
address_line_1string
No description yet.
address_line_2string
No description yet.
address_line_3string
No description yet.
town_citystring
No description yet.
postcodestring
No description yet.
countrystring
No description yet.
statusstring
activeinactivearchivedmerged
patient_typestring
activetemporarydummyarchivedmerged
pronounsstring

Free-text pronouns, e.g. "she/her".

named_clinician_iduuid

The patient's named clinician. Must reference a clinician in the caller's organisation, otherwise the request is rejected with 422.

patient_idstring

Human-facing patient identifier. Must be unique across all patients; auto-generated if omitted. A collision is rejected with 422.

external_idstring

Your own reference for this patient. Must be unique within your organisation; a collision is rejected with 422.

accessibility_needsany

Patient accessibility needs. Accepts either the modern object form (recommended — carries interpreter-language and BSL flags) or the legacy array form (a plain list of access-need codes). Stored as JSON.

gp_registrationobject

The patient's GP registration. Stored in a child table, not on the patient row. On create it seeds the current registration; on update it merges into the current (is_current) registration, field by field — only the keys you send are changed. Written atomically with the patient (a partial failure rolls the whole request back). confirmed_source is always stamped api.

emergency_contactobject

The patient's emergency contact. Stored in a child table, not on the patient row. On create it inserts the emergency contact; on update it merges into the existing emergency contact, field by field. Written atomically with the patient. A single emergency contact is supported; next-of-kin / carer contacts are not exposed here yet.

Responses

201

Patient created

401

Missing or invalid API key

409

CONFLICT: the patient_id is already in use, or the nhs_number is already recorded against another patient in your organisation (the field is named in details); or the idempotency key was reused with a different request body

422

Request body failed validation

500

Unexpected server error

GET/patients/{id}Scoperead_patients

Get a patient

Returns a single patient by ID. Returns NOT_FOUND for both missing records and records belonging to a different organisation.

Path

iduuidrequired
No description yet.

Responses

200

Patient found

401

Missing or invalid API key

404

Resource not found (or belongs to a different organisation)

500

Unexpected server error

PATCH/patients/{id}Scopewrite_patients

Update a patient

Partially updates a patient record. Only supplied fields are changed. Fields like organization_id, password_hash, and internal integration IDs are silently ignored.

Path

iduuidrequired
No description yet.

Request body

first_namestring
No description yet.
last_namestring
No description yet.
date_of_birthdate
No description yet.
middle_namestring
No description yet.
preferred_namestring
No description yet.
titlestring
No description yet.
biological_sexstring
malefemaleunknownindeterminate
genderstring
manwomannon_binaryotherprefer_not_to_say
ethnicitystring
No description yet.
nhs_numberstring
No description yet.
emailemail
No description yet.
phonestring
No description yet.
mobile_phonestring
No description yet.
home_phonestring
No description yet.
address_line_1string
No description yet.
address_line_2string
No description yet.
address_line_3string
No description yet.
town_citystring
No description yet.
postcodestring
No description yet.
countrystring
No description yet.
preferred_contact_methodstring
emailmobilehome_phoneletter
statusstring
activeinactivearchivedmerged
patient_typestring
activetemporarydummyarchivedmerged
is_deceasedboolean
No description yet.
date_of_deathdate
No description yet.
requires_reviewboolean
No description yet.
review_reasonstring
No description yet.
accessibility_needsany

Patient accessibility needs. Accepts either the modern object form (recommended — carries interpreter-language and BSL flags) or the legacy array form (a plain list of access-need codes). Stored as JSON.

accessibility_notesstring
No description yet.
occupationstring
No description yet.
pronounsstring

Free-text pronouns, e.g. "she/her".

named_clinician_iduuid

The patient's named clinician. Must reference a clinician in the caller's organisation, otherwise the request is rejected with 422.

patient_idstring

Human-facing patient identifier. Must be unique across all patients; a collision is rejected with 422.

external_idstring

Your own reference for this patient. Must be unique within your organisation; a collision is rejected with 422.

patient_notesstring
No description yet.
consent_smsboolean
No description yet.
consent_emailboolean
No description yet.
consent_marketingboolean
No description yet.
consent_electronic_communicationboolean
No description yet.
gp_registrationobject

The patient's GP registration. Stored in a child table, not on the patient row. On create it seeds the current registration; on update it merges into the current (is_current) registration, field by field — only the keys you send are changed. Written atomically with the patient (a partial failure rolls the whole request back). confirmed_source is always stamped api.

emergency_contactobject

The patient's emergency contact. Stored in a child table, not on the patient row. On create it inserts the emergency contact; on update it merges into the existing emergency contact, field by field. Written atomically with the patient. A single emergency contact is supported; next-of-kin / carer contacts are not exposed here yet.

Responses

200

Patient updated

401

Missing or invalid API key

404

Resource not found (or belongs to a different organisation)

409

CONFLICT: the patient_id is already in use, or the nhs_number is already recorded against another patient in your organisation (the field is named in details)

422

Request body failed validation

500

Unexpected server error

GET/patients/{id}/observationsScoperead_patients

List patient observations

Returns a paginated longitudinal list of observations for a patient (not scoped to a single consultation).

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
codestring

Filter by SNOMED/observation code

statusstring
finalamendedentered-in-error
effective_datetime_gtedate-time
No description yet.
effective_datetime_ltedate-time
No description yet.

Responses

200

Paginated observations

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/medicationsScoperead_patients

List patient medications

Returns a paginated longitudinal list of medications for a patient.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
activestoppedsuspendedcompleted
status_instring

Comma-separated status values

Responses

200

Paginated medications

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/problemsScoperead_patients

List patient problems

Returns a paginated longitudinal problem list for a patient.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
ActiveHealth AdministrationPast Ended
status_instring

Comma-separated status values

significancestring
SignificantMinor

Responses

200

Paginated problems

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/referralsScoperead_patients

List patient referrals

Returns a paginated longitudinal list of referrals for a patient.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
activeclosed
prioritystring
routineurgentasapstat
authored_on_gtedate
No description yet.
authored_on_ltedate
No description yet.

Responses

200

Paginated referrals

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/allergiesScoperead_patients

List patient allergies

Returns a paginated allergy record for a patient.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
clinical_statusstring
activeinactiveresolved
criticalitystring
highlowunable-to-assess

Responses

200

Paginated allergies

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/immunisationsScoperead_patients

List patient immunisations

Returns a paginated immunisation history for a patient. The existing date_administered response field contains the source administration timestamp (administered_at), including timezone; it is not the encounter or record creation time. Older date-only values were migrated to midnight UTC.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
No description yet.

Responses

200

Paginated immunisations

404

Resource not found (or belongs to a different organisation)

GET/patients/{id}/supplementsScoperead_patients

List patient supplements

Returns a paginated list of the dietary supplements, vitamins and herbal remedies on a patient's record, newest first. Supplements are a separate record section from medications: they are never prescriptions and do not appear under /patients/{id}/medications. Purchase links are held on the practice's supplement catalogue, not on the patient's record, and are not returned. A status or source value outside the listed values is a 422, never an empty list.

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
statusstring
activestopped
sourcestring
patient_reportedclinician_entered
categorystring
No description yet.

Responses

200

Paginated supplements

404

Resource not found (or belongs to a different organisation)

422

Request body failed validation

Was this page helpful?