From abb6cfdd769002391b82bc4df9b88dcbe9a920c8 Mon Sep 17 00:00:00 2001 From: AmeyaKrishnamoorthy <53007569+AmeyaKrishnamoorthy@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:48:50 +0000 Subject: [PATCH] AEA-3643 (#1652) Created a holding response for the clinical tracking API so that consumers don't develop against an outdated capability. ## Summary - Routine Change ## Reviews Required - [x] Dev - [ ] Test - [x] Tech Author - [x] Product Owner ## Review Checklist :information_source: This section is to be filled in by the **reviewer**. - [ ] I have reviewed the changes in this PR and they fill all or part of the acceptance criteria of the ticket, and the code is in a mergeable state. - [ ] If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work. - [ ] I have ensured the jira ticket has been updated with the github pull request link --- .../electronic-prescription-service-api.yaml | 104 ++---------------- 1 file changed, 11 insertions(+), 93 deletions(-) diff --git a/packages/specification/electronic-prescription-service-api.yaml b/packages/specification/electronic-prescription-service-api.yaml index 3b6e33dd75..e6cc140419 100644 --- a/packages/specification/electronic-prescription-service-api.yaml +++ b/packages/specification/electronic-prescription-service-api.yaml @@ -217,7 +217,7 @@ servers: tags: - name: prescribing - name: dispensing - - name: tracker + - name: tracking paths: /FHIR/R4/$prepare: post: @@ -861,102 +861,20 @@ paths: /FHIR/R4/Task: get: operationId: get-task - summary: Search for summary details about a prescription + summary: Search for a patient's prescription description: | ## Overview - Use this endpoint to search for summary details about one or more prescriptions. - - At least one of the following query parameters must be provided: - * identifier - * focus:identifier - * patient:identifier - - You can also search on the following parameters: - * business-status - * authored-on + This capability is under active development, and is only for use when the end user is a healthcare worker, not a patient. + + If you're interested in learning more, contact epsonboarding@nhs.net. tags: - - tracker - parameters: - - $ref: "#/components/parameters/RoleId" - - $ref: "#/components/parameters/BearerAuthorization" - - $ref: "#/components/parameters/RequestID" - - $ref: "#/components/parameters/CorrelationID" - - name: identifier - in: query - description: | - The short form identifier of the prescription you are searching for. - required: false - schema: - type: string - example: "D7AC09-A99968-4BA59C" - - name: focus:identifier - in: query - description: | - The short form identifier of the prescription you are searching for. - required: false - schema: - type: string - - name: patient:identifier - in: query - description: | - The NHS number of the patient whose prescriptions you are searching for. - required: false - schema: - type: string - example: "9912003489" - - name: business-status - in: query - description: | - The state that a prescription is in. You can find valid business states [here](https://simplifier.net/packages/uk.nhsdigital.medicines.r4/2.1.14-alpha/files/374928). - required: false - schema: - type: string - example: "0001" - - name: authored-on - in: query - description: Reserved for future use and will currently be ignored. Do not use. - examples: - simple: - value: - - eq2010-10-22 - description: Exact match date - rangege: - value: - - ge2010-10-22 - description: Greater than or equals match, which matches 2010-10-22 or 2010-10-23 - rangele: - value: - - le2010-10-22 - description: Less than or equals match, which matches 2010-10-22 or 2010-10-21 - required: false - schema: - type: string - example: "date=ge2010-01-01&date=le2011-12-31" + - tracking responses: - "200": - description: Successful query. - content: - application/fhir+json: - schema: - type: object - examples: - example: - description: | - A successful response to a prescription summary query. More examples of this message can be found [here](https://simplifier.net/guide/NHSDigital-Medicines/Home/Examples/AllExamples?version=current#Home/Examples/AllExamples/Task). - value: - $ref: "examples/spec/errors/task/success.json" - "4XX": - description: Invalid query. - content: - application/fhir+json: - schema: - $ref: "#/components/schemas/operation-outcome" - examples: - example: - description: | - An error response to a prescription summary query. - value: - $ref: "examples/spec/errors/task/query-error.json" + '200': + description: Successful retrieval. + '400': + description: Invalid request. + components: parameters: BearerAuthorization: