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}, settingstatustoarchived. - Status filters are case-sensitive. Use the exact values listed under each parameter.
- The patient's NHS GP is set with a
gp_registrationblock on create or update; there is no separate GP endpoint. See Recording the patient's GP. consultation_contextrecords where an item was captured. It is not a way to rebuild a consultation: useGET /consultations/{id}.
/patientsList patientsread_patientsPOST/patientsCreate a patientwrite_patientsGET/patients/{id}Get a patientread_patientsPATCH/patients/{id}Update a patientwrite_patientsGET/patients/{id}/observationsList patient observationsread_patientsGET/patients/{id}/medicationsList patient medicationsread_patientsGET/patients/{id}/problemsList patient problemsread_patientsGET/patients/{id}/referralsList patient referralsread_patientsGET/patients/{id}/allergiesList patient allergiesread_patientsGET/patients/{id}/immunisationsList patient immunisationsread_patientsGET/patients/{id}/supplementsList patient supplementsread_patients/patientsScoperead_patientsList patients
Returns a paginated list of patients for the authenticated organisation. Supports filtering and text search.
Query
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringpatient_typestringstatus_instringComma-separated list of statuses
created_at_gtedate-timecreated_at_ltedate-timesearchstringCase-insensitive search across first_name, last_name, email, nhs_number
Responses
Paginated list of patients
Missing or invalid API key
Unexpected server error
/patientsScopewrite_patientsCreate 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-KeyuuidOptional 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_namestringrequiredlast_namestringrequireddate_of_birthdaterequiredmiddle_namestringpreferred_namestringtitlestringbiological_sexstringgenderstringethnicitystringnhs_numberstringFormat: 123-123-1234 or 1231231234
emailemailphonestringmobile_phonestringhome_phonestringaddress_line_1stringaddress_line_2stringaddress_line_3stringtown_citystringpostcodestringcountrystringstatusstringpatient_typestringpronounsstringFree-text pronouns, e.g. "she/her".
named_clinician_iduuidThe patient's named clinician. Must reference a clinician in the caller's organisation, otherwise the request is rejected with 422.
patient_idstringHuman-facing patient identifier. Must be unique across all patients; auto-generated if omitted. A collision is rejected with 422.
external_idstringYour own reference for this patient. Must be unique within your organisation; a collision is rejected with 422.
accessibility_needsanyPatient 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_registrationobjectThe 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_contactobjectThe 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
Patient created
Missing or invalid API key
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
Request body failed validation
Unexpected server error
/patients/{id}Scoperead_patientsGet a patient
Returns a single patient by ID. Returns NOT_FOUND for both missing records and records belonging to a different organisation.
Path
iduuidrequiredResponses
Patient found
Missing or invalid API key
Resource not found (or belongs to a different organisation)
Unexpected server error
/patients/{id}Scopewrite_patientsUpdate 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
iduuidrequiredRequest body
first_namestringlast_namestringdate_of_birthdatemiddle_namestringpreferred_namestringtitlestringbiological_sexstringgenderstringethnicitystringnhs_numberstringemailemailphonestringmobile_phonestringhome_phonestringaddress_line_1stringaddress_line_2stringaddress_line_3stringtown_citystringpostcodestringcountrystringpreferred_contact_methodstringstatusstringpatient_typestringis_deceasedbooleandate_of_deathdaterequires_reviewbooleanreview_reasonstringaccessibility_needsanyPatient 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_notesstringoccupationstringpronounsstringFree-text pronouns, e.g. "she/her".
named_clinician_iduuidThe patient's named clinician. Must reference a clinician in the caller's organisation, otherwise the request is rejected with 422.
patient_idstringHuman-facing patient identifier. Must be unique across all patients; a collision is rejected with 422.
external_idstringYour own reference for this patient. Must be unique within your organisation; a collision is rejected with 422.
patient_notesstringconsent_smsbooleanconsent_emailbooleanconsent_marketingbooleanconsent_electronic_communicationbooleangp_registrationobjectThe 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_contactobjectThe 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
Patient updated
Missing or invalid API key
Resource not found (or belongs to a different organisation)
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)
Request body failed validation
Unexpected server error
/patients/{id}/observationsScoperead_patientsList patient observations
Returns a paginated longitudinal list of observations for a patient (not scoped to a single consultation).
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
codestringFilter by SNOMED/observation code
statusstringeffective_datetime_gtedate-timeeffective_datetime_ltedate-timeResponses
Paginated observations
Resource not found (or belongs to a different organisation)
/patients/{id}/medicationsScoperead_patientsList patient medications
Returns a paginated longitudinal list of medications for a patient.
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringstatus_instringComma-separated status values
Responses
Paginated medications
Resource not found (or belongs to a different organisation)
/patients/{id}/problemsScoperead_patientsList patient problems
Returns a paginated longitudinal problem list for a patient.
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringstatus_instringComma-separated status values
significancestringResponses
Paginated problems
Resource not found (or belongs to a different organisation)
/patients/{id}/referralsScoperead_patientsList patient referrals
Returns a paginated longitudinal list of referrals for a patient.
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringprioritystringauthored_on_gtedateauthored_on_ltedateResponses
Paginated referrals
Resource not found (or belongs to a different organisation)
/patients/{id}/allergiesScoperead_patientsList patient allergies
Returns a paginated allergy record for a patient.
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
clinical_statusstringcriticalitystringResponses
Paginated allergies
Resource not found (or belongs to a different organisation)
/patients/{id}/immunisationsScoperead_patientsList 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
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringResponses
Paginated immunisations
Resource not found (or belongs to a different organisation)
/patients/{id}/supplementsScoperead_patientsList 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
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
statusstringsourcestringcategorystringResponses
Paginated supplements
Resource not found (or belongs to a different organisation)
Request body failed validation
