Short answer: Search DocumentReference by NHS number and care plan type. Each result describes one care plan and points to its content as a PDF and as a FHIR R4 Bundle, which you fetch from their Binary URLs. Only the latest version of each care plan is returned.
Finding a patient's care plans
GET <base>/<service>/DocumentReference?patient.identifier=https://fhir.nhs.uk/Id/nhs-number|<NHS number>&type=<care plan code>
Filter by type using our code for the care plan, for example RESPECT_PLUS_COMPOSITION for ReSPECT or HCV_EPACCS. Documents that users upload to a care plan have a different type, so filtering by type returns the care plan itself rather than its attachments. If more than one result comes back, use the most recent by date. Ask us for the codes for the care plans you use.
What a DocumentReference contains
It holds the care plan's details (type, date, author and status) and a content entry for each format:
contentType | What it is |
|---|---|
application/pdf | The care plan as a PDF |
application/fhir+json | The care plan as a structured FHIR R4 Bundle |
Each entry points to a Binary URL. The Binary you get back holds the content base64-encoded in its data element.
Versions and updates
Only the latest version of each care plan is returned. When a care plan is updated, it keeps the same ID and its date changes. A care plan that has been closed is still returned, and a care plan created after it gets a new ID.
PDFs
The PDFs we generate contain real text, so they can be searched and read without OCR. Documents uploaded by users, such as scanned letters, are passed on as they were uploaded.
Patient registrations
We don't register patients or create patient links in other platforms. The only pointers we publish are to the NHS National Record Locator, for some care plan types.
0 Comments