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

Retrieve Confidential Care Record

Retrieves the patient's structured care record, including confidential items (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-confidential-care-record' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "4d59c916-9726-11ec-af3f-0a58a9feac02"
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.

Responses​

200 FHIR STU3 Bundle containing the patient's structured care record, including confidential items.

Response fields

FieldTypeDescription
resourceTypestring
typestring
entryarray<object>FHIR resources making up the structured 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)

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "invalid-patient-id",
"description": "The patientId is not a UUID"
}
]
}