Skip to main content
POST/transactional-api/retrieve-care-record

Retrieve Care Record

Retrieves the patient's structured care record (allergies, medication, consultations, problems, immunisations, investigations, referrals, diary entries and uncategorised data) via GP Connect Access Record: Structured. The patient must have an NHS number. Returns a FHIR STU3 Bundle.

Authorization: Bearer token (JWT). See Authentication.

Request

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/retrieve-care-record' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.

Responses

200 FHIR STU3 Bundle containing the patient's structured care record.
{
"resourceType": "Bundle",
"type": "collection",
"entry": [
{}
]
}
400 Validation error.
4 possible code values
CodeDescriptionWhen
invalid-patient-idThe patientId is not a UUIDpatientId not a UUID
patient-not-foundPatient not found for this patientIdpatientId doesn't exist
no-nhs-numberPatient does not have a NHS number.patient has no NHS number
patient-restrictedAccess to this patient is restricted for this staff member.patient record is marked as restricted in Medicus; only explicitly permitted staff members can access it (not a configuration error, handle gracefully)
{
"errors": [
{
"code": "invalid-patient-id",
"description": "The patientId is not a UUID"
}
]
}