Skip to content

Commit

Permalink
AEA-3808 Add Prescription Status message schema to API Specification (#…
Browse files Browse the repository at this point in the history
…11)

## Summary

🎫 [AEA-3808](https://nhsd-jira.digital.nhs.uk/browse/AEA-3808) Add
Prescription Status message schema to API Specification

- Routine Change

### Details
The changes to the Prescription Status Update API specification
  • Loading branch information
kris-szlapa authored Feb 23, 2024
1 parent 7b40495 commit 2cac2c8
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 23 deletions.
31 changes: 18 additions & 13 deletions packages/specification/eps-prescription-status-update-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,33 @@ paths:
schema:
$ref: "#/components/schemas/PostPrescriptionStatusBundle"
examples:
request-ready-to-collect:
summary: request-ready-to-collect
description: A request message contains tracking status ready to collect.
ready-to-collect:
summary: ready-to-collect
description: A request message contains tracking status `Ready to collect`.
value:
$ref: examples/request-ready-to-collect.json
request-ready-to-collect-note:
summary: request-ready-to-collect-note
description: A request message contains tracking status ready to collect with note.
ready-to-deliver:
summary: ready-to-deliver
description: A request message contains tracking status `Ready to deliver`.
value:
$ref: examples/request-ready-to-collect-note.json
$ref: examples/request-ready-to-deliver.json
in-collection-locker:
summary: in-collection-locker
description: A request message contains tracking status `In Collection Locker` and a note that describes the collection process.
value:
$ref: examples/request-in-collection-locker.json
collected:
summary: collected
description: A request message contains tracking status collected.
description: A request message contains tracking status `Collected`.
value:
$ref: examples/request-collected.json
dispatched:
summary: dispatched
description: A request message contains tracking status dispatched.
value:
$ref: examples/request-dispatched.json
multiple-tasks:
summary: multiple-tasks
multiple-items:
summary: multiple-items
description: A request message contains multiple items.
value:
$ref: examples/request-multiple-items.json
Expand All @@ -140,11 +145,11 @@ paths:
schema:
$ref: "#/components/schemas/bundle-response"
examples:
single-task:
single-item:
description: A successful response to a UpdatePrescriptionStatus request, contains a single item.
value:
$ref: "examples/response-single-task.json"
multiple-tasks:
$ref: "examples/response-single-item.json"
multiple-items:
description: A successful response to a UpdatePrescriptionStatus request, contains multiple items.
value:
$ref: "examples/response-multiple-items.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/specification/examples/request-collected.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9004",
"code": "4",
"display": "Collected"
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/specification/examples/request-dispatched.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9005",
"code": "5",
"display": "Dispatched"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9001",
"display": "Ready to Collect"
"code": "3",
"display": "In Collection Locker"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions packages/specification/examples/request-multiple-items.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9001",
"display": "Ready to Collect"
"code": "3",
"display": "In Collection Locker"
}
]
},
Expand Down Expand Up @@ -74,8 +74,8 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9001",
"display": "Ready to Collect"
"code": "3",
"display": "In Collection Locker"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions packages/specification/examples/request-ready-to-collect.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"coding": [
{
"system": "https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt",
"code": "9001",
"display": "Ready to Collect"
"code": "1",
"display": "Ready to collect"
}
]
},
Expand Down
48 changes: 48 additions & 0 deletions packages/specification/examples/request-ready-to-deliver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "http://example.org/fhir/Task/4d70678c-81e4-4ff4-8c67-17596fd0aa46",
"resourceType": "Task",
"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": "2",
"display": "Ready to deliver"
}
]
},
"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"
}
}
}
]
}

0 comments on commit 2cac2c8

Please sign in to comment.