Skip to content

Commit

Permalink
Docs: [AEA-3997] - update api spec with timestamp and ready to deliver (
Browse files Browse the repository at this point in the history
#116)

## Summary

**Remove items from this list if they are not relevant. Remove this line
once this has been done**

- Routine Change


### Details
Updated the PSU API spec with a new option and added more validation and
exmaples to the timestamp for last updated
  • Loading branch information
jonathanwelch1-nhs authored Apr 12, 2024
1 parent aae14cb commit ee55c88
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ paths:
schema:
$ref: "#/components/schemas/UpdatePrescriptionStatusBundle"
examples:
ready-for-delivery:
summary: ready-for-delivery
description: A request message contains tracking status `Ready for delivery`.
value:
$ref: examples/request-ready-for-delivery.json
dispatched:
summary: dispatched
description: A request message contains tracking status `Dispatched``.
Expand Down
54 changes: 54 additions & 0 deletions packages/specification/examples/request-ready-for-delivery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"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": "Ready for delivery"
}
]
},
"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"
}
}
},
"request": {
"method": "POST",
"url": "Task"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ properties:
- Collected
- Dispatched
- Not Dispensed
- Ready for Delivery
intent:
type: string
description: Order is the allowed value to indicate the update informs an actionable task.
Expand Down Expand Up @@ -89,7 +90,7 @@ properties:
example: "9449304130"
lastModified:
type: string
description: Only the latest last modified date will be displayed to users of the NHS App. This mechanism will be implemented to resolve updates received out of sequence.
description: Date and time, specified as UTC value, when the prescription item status was updated. Only the latest last modified date will be displayed to users of the NHS App. This mechanism will be implemented to resolve updates received out of sequence.
format: date-time
example: 2024-01-30T12:01:24Z
owner:
Expand Down

0 comments on commit ee55c88

Please sign in to comment.