Get patients referrals, bookings, documents, questionnaires and waiting lists
Changed onThe Wayfinder Patient Care Aggregator CarePlan response will return a FHIR Bundle resource which will contain one CarePlan resource per Waiting List Entry, one CarePlan resource containing all Referrals, Appointments, Documents and Questionnaires and one optional OperationOutcome resource (based on the UK Core FHIR specification) for use by the NHS App to the following specification.
Request
- Base URLhttps://sandbox.api.service.nhs.uk/patient-care-aggregator-api
- URLhttps://sandbox.api.service.nhs.uk/patient-care-aggregator-api/aggregator/events
- AuthHTTP bearer
Query parameters
The patient's NHS number. Expressed as <type>|<value> where <type> must be https://fhir.nhs.uk/Id/nhs-number and <value> must be a valid NHS number.
Headers
An identifier which is used to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.
Valid NHS login ID Token JWT issues from the corresponding enviroment, see Security and authorisation above.
Response
The request was valid and the API was able to request information from the various upstream applications.
There are two possible outcomes:
| HTTP status | Description |
|---|---|
| 200 | A successful request will return a HTTP status code of 200 OK containing a FHIR Bundle with 0..* CarePlan resources. All upstream systems responded normally. |
| 207 | If an error occurs with an upstream service the aggregator will return a 207 Multi-status containing a FHIR Bundle with 0..* CarePlan resources and one OperationOutcome with each of the errors listed as issues. |
Example response
{
"meta": {
"versionId": "1.0.0"
},
"total": 1,
"entry": [
{
"fullUrl": "https://api.service.nhs.uk/patient-care-aggregator-api/CarePlan/c93e2449-a2ef-4476-ad15-13491036be22",
"resource": {
"meta": {
"lastUpdated": "2023-06-25T00:00:00+00:00"
},
"identifier": [
{
"value": "RTD~ABC220939220X"
}
],
"title": "Ophthalmology",
"subject": {
"identifier": {
"value": "9000000009"
}
},
"period": {
"start": "2022-06-22",
"end": "2023-10-03",
"extension": [
{
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-PlannedWaitTime",
"valueDuration": {
"value": 16,
"unit": "weeks"
}
}
]
},
"author": {
"identifier": {
"value": "R1F"
},
"display": "Isle of Wight NHS Trust"
},
"activity": [
{
"detail": {
"id": "808993698030",
"extension": [
{
"valueUrl": "https://refer.nhs.uk/nhslogin?ubrn=808993698030"
}
],
"description": "Rheumatology - Metabolic Bone (inc Complex and Non-Complex cases) - Freeman - Newcastle FT - RTD",
"scheduledPeriod": {
"start": "2023-05-23T10:02:15.960Z",
"extension": [
{
"valueDate": "2020-11-19"
}
]
},
"performer": [
{
"identifier": {
"value": "RTD"
},
"display": "THE NEWCASTLE UPON TYNE HOSPITALS NHS FOUNDATION TRUST"
}
]
}
}
]
}
}
]
}Changes
- info
removed the
VIRTUALenum value from the//////////////response property for the response status
- info
- warning
added the new
TELEPHONEenum value to the//////////////response property for the response status - warning
added the new
VIDEO_CONSULTATIONenum value to the//////////////response property for the response status
- warning