From f72fec6e406731d6f7764d9a157435c9b9604122 Mon Sep 17 00:00:00 2001 From: Kris Szlapa Date: Thu, 4 Jul 2024 15:09:54 +0000 Subject: [PATCH] Update the status type in the documentation --- .../UpdatePrescriptionStatusTask.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/specification/schemas/resources/UpdatePrescriptionStatusTask.yaml b/packages/specification/schemas/resources/UpdatePrescriptionStatusTask.yaml index d69c1c33a..bc6d8fbc3 100644 --- a/packages/specification/schemas/resources/UpdatePrescriptionStatusTask.yaml +++ b/packages/specification/schemas/resources/UpdatePrescriptionStatusTask.yaml @@ -26,9 +26,9 @@ properties: type: string example: 24F5DA-A83008-7EFE6Z status: - type: string - description: Indicator to identify when the prescription id status is a terminal status, one for which no further patient action is required. If the prescription item status is a terminal status, the Task.status value must be set to 'completed', otherwise the value must be set to 'in-progress'. - enum: [in-progress, completed] + type: boolean + description: Indicator to identify when the prescription id status is a terminal status, one for which no further patient action is required. If the prescription item status is a terminal status, the Task.status value must be set to 'true', otherwise the value must be set to 'false'. + enum: [true, false] businessStatus: type: object description: "The tracking status for the prescription id. Updates should only be provided when the prescription id is 'ready to collect' in which case the status value will be 'ready to collect', or when the patient has received the prescription item and there are no more actions for the patient, in this case the status value could be 'Collected' or 'Dispatched'. The dispensing system may update the prescription item status with any of the following values to correct a status update which has been made in error or where the status has since reverted: 'With Pharmacy', 'Ready to collect', 'Collected' or 'Dispatched'. Note: The 'With Pharmacy' status can be determined using the EPS record status for business as usual processing and is not required from the dispensing system unless the status needs to be rolled back." @@ -45,16 +45,16 @@ properties: enum: [https://fhir.nhs.uk/CodeSystem/task-businessStatus-nppt] code: type: string - enum: - - With Pharmacy - - With Pharmacy - Preparing Remainder - - Ready to Collect - - Ready to Collect - Partial - - Collected - - Dispatched - - Not Dispensed - - Ready to Dispatch - - Ready to Dispatch - Partial + enum: + - With Pharmacy + - With Pharmacy - Preparing Remainder + - Ready to Collect + - Ready to Collect - Partial + - Collected + - Dispatched + - Not Dispensed + - Ready to Dispatch + - Ready to Dispatch - Partial intent: type: string description: Order is the allowed value to indicate the update informs an actionable task. @@ -116,7 +116,7 @@ properties: type: object required: [_type, valueInteger] properties: - _type: + _type: type: object required: [text] properties: @@ -126,4 +126,4 @@ properties: valueInteger: type: integer minimum: 1 - maximum: 6 + maximum: 6