-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary 🎫 [AEA-3816](https://nhsd-jira.digital.nhs.uk/browse/AEA-3816) Create Prescription Status Update API specification - Routine Change - 🤖 Operational or Infrastructure Change ### Details Create Prescription Status Update API specification
- Loading branch information
1 parent
2cac2c8
commit 7b17b79
Showing
18 changed files
with
1,054 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
packages/specification/examples/Bundle/request-multiple-tasks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"type": "transaction", | ||
"entry": [ | ||
{ | ||
"fullUrl": "http://example.org/fhir/Task/4d70678c-81e4-4ff4-8c67-17596fd0aa46", | ||
"resource": { | ||
"resourceType": "Task", | ||
"id": "4d70678c-81e4-4ff4-8c67-17596fd0aa46", | ||
"basedOn": [ | ||
{ | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-number", | ||
"value": "24F5DA-A83008-7EFE6Z" | ||
} | ||
} | ||
], | ||
"status": "in-progress", | ||
"businessStatus": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt", | ||
"code": "9001", | ||
"display": "Ready to Collect" | ||
} | ||
] | ||
}, | ||
"intent": "order", | ||
"focus": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-item-number", | ||
"value": "6989b7bd-8db6-428c-a593-4022e3044c00" | ||
} | ||
}, | ||
"for": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9449304130" | ||
} | ||
}, | ||
"lastModified": "2024-01-30T12:01:24Z", | ||
"owner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C9Z1O" | ||
} | ||
}, | ||
"note": [ | ||
{ | ||
"text": "Locker code: 556701" | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "Task" | ||
} | ||
}, | ||
{ | ||
"fullUrl": "http://example.org/fhir/Task/346d2bfe-7dc0-451b-ad0d-da81833c08da", | ||
"resource": { | ||
"resourceType": "Task", | ||
"id": "346d2bfe-7dc0-451b-ad0d-da81833c08da", | ||
"basedOn": [ | ||
{ | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-number", | ||
"value": "24F5DA-A83008-7EFE6Z" | ||
} | ||
} | ||
], | ||
"status": "in-progress", | ||
"businessStatus": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt", | ||
"code": "9001", | ||
"display": "Ready to Collect" | ||
} | ||
] | ||
}, | ||
"intent": "order", | ||
"focus": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-item-number", | ||
"value": "e3843418-1900-44a1-8f6a-bff8601893b8" | ||
} | ||
}, | ||
"for": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9449304130" | ||
} | ||
}, | ||
"lastModified": "2024-01-30T12:01:24Z", | ||
"owner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C9Z1O" | ||
} | ||
}, | ||
"note": [ | ||
{ | ||
"text": "Locker code: 556701" | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "POST", | ||
"url": "Task" | ||
} | ||
} | ||
] | ||
} |
118 changes: 118 additions & 0 deletions
118
packages/specification/examples/Bundle/request-single-task-based-on.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "155e1102-9e71-4f19-9453-b905c0bbc494", | ||
"meta": { | ||
"lastUpdated": "2024-01-31T13:01:24Z" | ||
}, | ||
"type": "searchset", | ||
"link": [ | ||
{ | ||
"relation": "self", | ||
"url": "/Task?based-on=24F5DA-A83008-7EFE6Z" | ||
} | ||
], | ||
"total": 2, | ||
"entry": [ | ||
{ | ||
"fullUrl": "urn:uuid:4d70678c-81e4-4ff4-8c67-17596fd0aa46", | ||
"search": { | ||
"mode": "match" | ||
}, | ||
"resource": { | ||
"resourceType": "Task", | ||
"id": "4d70678c-81e4-4ff4-8c67-17596fd0aa46", | ||
"basedOn": [ | ||
{ | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-number", | ||
"value": "24F5DA-A83008-7EFE6Z" | ||
} | ||
} | ||
], | ||
"status": "in-progress", | ||
"businessStatus": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt", | ||
"code": "9001", | ||
"display": "Ready to Collect" | ||
} | ||
] | ||
}, | ||
"intent": "order", | ||
"focus": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-item-number", | ||
"value": "6989b7bd-8db6-428c-a593-4022e3044c00" | ||
} | ||
}, | ||
"for": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9449304130" | ||
} | ||
}, | ||
"lastModified": "2024-01-30T12:01:24Z", | ||
"owner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C9Z1O" | ||
} | ||
}, | ||
"note": [ | ||
{ | ||
"text": "Locker code: 556701" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"fullUrl": "urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487", | ||
"search": { | ||
"mode": "match" | ||
}, | ||
"resource": { | ||
"resourceType": "Task", | ||
"id": "cb82cfa-76c8-4fb2-a08e-bf0e326e5487", | ||
"basedOn": [ | ||
{ | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-number", | ||
"value": "24F5DA-A83008-7EFE6Z" | ||
} | ||
} | ||
], | ||
"status": "completed", | ||
"businessStatus": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt", | ||
"code": "9004", | ||
"display": "Collected" | ||
} | ||
] | ||
}, | ||
"intent": "order", | ||
"focus": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/prescription-order-item-number", | ||
"value": "6989b7bd-8db6-428c-a593-4022e3044c00" | ||
} | ||
}, | ||
"for": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/nhs-number", | ||
"value": "9449304130" | ||
} | ||
}, | ||
"lastModified": "2024-01-31T12:01:24Z", | ||
"owner": { | ||
"identifier": { | ||
"system": "https://fhir.nhs.uk/Id/ods-organization-code", | ||
"value": "C9Z1O" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
52 changes: 52 additions & 0 deletions
52
packages/specification/examples/Bundle/response-multiple-tasks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "08438419-7888-4be9-9490-37ffe202ae27", | ||
"meta": { | ||
"lastUpdated": "2024-01-30T12:01:24Z" | ||
}, | ||
"type": "transaction-response", | ||
"entry": [ | ||
{ | ||
"response": { | ||
"status": "201 Created", | ||
"location": "Task/4d70678c-81e4-4ff4-8c67-17596fd0aa46/_history/1", | ||
"etag": "W/\"1\"", | ||
"lastModified": "2024-01-30T12:01:24Z", | ||
"outcome": { | ||
"resourceType": "OperationOutcome", | ||
"meta": { | ||
"lastUpdated": "2024-01-30T12:01:24Z" | ||
}, | ||
"issue": [ | ||
{ | ||
"severity": "information", | ||
"code": "informational", | ||
"diagnostics": "No issues detected during validation" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"response": { | ||
"status": "201 Created", | ||
"location": "Task/346d2bfe-7dc0-451b-ad0d-da81833c08da/_history/1", | ||
"etag": "W/\"1\"", | ||
"lastModified": "2024-01-30T12:01:24Z", | ||
"outcome": { | ||
"resourceType": "OperationOutcome", | ||
"meta": { | ||
"lastUpdated": "2024-01-30T12:01:24Z" | ||
}, | ||
"issue": [ | ||
{ | ||
"severity": "information", | ||
"code": "informational", | ||
"diagnostics": "No issues detected during validation" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"resourceType": "OperationOutcome", | ||
"meta": { | ||
"lastUpdated": "2024-01-30T12:01:24Z" | ||
}, | ||
"issue": [ | ||
{ | ||
"severity": "error", | ||
"code": "processing", | ||
"details": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", | ||
"code": "INVALID_VALUE", | ||
"display": "Invalid value" | ||
} | ||
] | ||
}, | ||
"diagnostics": "Invalid prescription ID" | ||
} | ||
] | ||
} |
Oops, something went wrong.