GP Connect Task API

The Task API from GP Connect — 1 operation(s) for task.

Operations 2

POST /Task Request a repeat prescription #
GET /Task Get requested prescription reorders #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gp-connect-task-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gp-connect-task-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GP Connect Prescriptions Management FHIR Task API
  version: Computed and injected at build time by `scripts/set_version.py`
  description: '## Overview


    ![GP Connect Patient Facing Prescriptions Management API Overview](https://raw.githubusercontent.com/NHSDigital/gp-connect-prescriptions-management-fhir/master/specification/images/overview-diagram.svg)


    Use this API to manage a patient''s prescriptions as held by their GP practice.


    You can:


    * request a new instance of a repeat prescription


    * check the status of a current prescription request


    * request a new instance of a repeat prescription to a one off nomination pharmacy


    The end user must be a patient who is:


    *  registered with the GP practice


    *  registered with NHS login to P9 identity verification level


    For example:


    * a patient can check the status of a current prescription request and request a new instance of a repeat prescription


    ## Who can use this API


    This API can be used by developers of clinical systems that support clinicans delivering direct care. It is a patient-facing API.


    This API:


    * is intended only for use by patient-facing applications


    * is intended only for non-clinical use


    * can only be used where there is a legal basis to do so


    Make sure you have a valid use case before you go too far with development. To do this, contact us.


    You must do this before you can go live (see Onboarding below).


    ### Prerequisites


    #### Information governance (IG)


    You must:


    * be compliant with the GP Connect Direct Care API Information Governance Model


    #### Clinical safety


    You must:


    * have a clinical safety officer (CSO) who is responsible for DCB0129 and, if necessary, DCB0160. For more on clinical risk management, visit Clinical risk management standards


    ## Related APIs


    * [Electronic Prescription Service - FHIR API](https://digital.nhs.uk/developer/api-catalogue/electronic-prescription-service-fhir) - use this API to issue requested prescriptions as electronic prescriptions.


    * [Electronic Prescription Service Tracker - REST API](https://digital.nhs.uk/developer/api-catalogue/spine-electronic-prescription-service-tracker-rest) - use this API to track the dispensing status of EPS prescriptions once they leave the GP system.


    * [GP Connect (Patient Facing) User Permissions API](https://digital.nhs.uk/developer/api-catalogue/gp-connect-patient-facing-user-permissions) - use this API to manage a patient''s permissions as held by the GP practice systems.


    * [GP Connect (Patient Facing) Access Record - FHIR API](https://digital.nhs.uk/developer/api-catalogue/gp-connect-patient-facing-access-record-fhir) - use this API to manage a patient''s medical record from the GP practice systems.


    * [GP Connect Access Record: Structured - FHIR API](https://digital.nhs.uk/developer/api-catalogue/gp-connect-access-record-structured-fhir) - use this API for clinical access to the record, including structured medications linked to other elements of the patient record.



    ## API status and roadmap


    This API is in [development](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses)


    To see our roadmap or to suggest, comment or vote on features for this API, see our [interactive product backlog](https://nhs-digital-api-management.featureupvote.com/suggestions/341619/gp-connect-prescriptions-management-fhir).


    If you have any other queries, [contact us](https://digital.nhs.uk/developer/help-and-support)


    ## Service level


    This API is a silver service, meaning it is operational 24 hours a day, 365 days a year but only supported during business hours (8am to 6pm), Monday to Friday excluding bank holidays.


    For more details, see [service levels](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#service-levels).


    ## Technology


    This API is [RESTful](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#basic-rest).


    It conforms to the [FHIR](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#fhir) global standard for health care data exchange, specifically to [FHIR R4 (v4.0.1)](https://hl7.org/fhir/r4/), except that it does not support the [capabilities](http://hl7.org/fhir/R4/http.html#capabilities) interaction.


    It includes some country-specific FHIR extensions, which are built against [FHIR UK Core, specifically [UKcore.stu2 1.1.3](https://simplifier.net/guide/uk-core-implementation-guide-stu2?version=1.1.3).


    You do not need to know much about FHIR to use this API - FHIR APIs are just RESTful APIs that follow specific rules. In particular:


    * resource names are capitalised and singular, for example `/Patient` not `/patients`


    * array names are singular, for example `line` not `lines` for address lines


    * data items that are country-specific and thus not included in the FHIR global base resources are usually wrapped in an `extension` object


    There are [libraries and software development kits available](https://digital.nhs.uk/developer/guides-and-documentation/api-technologies-at-nhs-digital#fhir-libraries-and-sdks) to help with FHIR API integration.


    ### Resources


    Use the [GP Connect Prescriptions Management Implementation Guide](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions?version=0.1.1-private-beta) to assist with your integration.


    This is the FHIR specification for GP Connect Prescriptions.


    ## Network access


    This API is available on the internet and, indirectly, on the [Health and Social Care Network (HSCN)](https://digital.nhs.uk/services/health-and-social-care-network).


    For more details, see [Network access for APIs](https://digital.nhs.uk/developer/guides-and-documentation/network-access-for-apis).


    ## Security and authorisation


    This API is [user-restricted](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis), meaning an end user must be present and authenticated to use it.


    The end user must be:


    * a patient


    * authenticated with NHS login to P9 identity verification level


    The API uses Open ID Connect to authenticate the end user and OAuth 2.0 to authorise the calling system. It supports the following security pattern using NHS login:


    * [User-restricted RESTful APIs - NHS login separate authentication and authorisation](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-login-separate-authentication-and-authorisation)


    ## Environments and testing


    |Environment|Base URL|

    |-----------|--------|

    |Sandbox|`https://sandbox.api.service.nhs.uk/gp-connect/patient-facing/prescriptions-management-fhir/FHIR/R4`|

    |Integration Testing|`Not yet available`|

    |Production|`Not yet available`|


    ### Sandbox testing (Not yet available)


    Our [sandbox environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#sandbox-testing):


    * is for early developer testing


    * only covers a limited set of scenarios


    * is stateless, so it does not store data


    * is open access, so does not allow you to test authorisation


    For more details on sandbox testing, or to try out the sandbox using our "Try this API" feature, see the documentation for each endpoint.


    Alternatively, you can try out the sandbox using our Postman collection:


    [![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/34036044-3c90d3e4-24ec-4a09-867e-26da1516ee61?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D34036044-3c90d3e4-24ec-4a09-867e-26da1516ee61%26entityType%3Dcollection%26workspaceId%3Dbad72f85-20d6-41c3-bd55-f30bf83f8c63)


    ### Integration testing (not yet available)


    Our [integration test environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing):


    * is for formal integration testing


    * is stateful, so it does persist data


    * includes authorisation


    For more details see [integration testing with our RESTful APIs](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing-with-our-restful-apis).


    ## Onboarding


    We are hoping to make the assurance process as lightweight and as self-service as possible.


    ## Errors


    We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:


    - 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action


    - 400 to 499 if it failed because of a client error by your application


    - 500 to 599 if it failed because of an error on our server


    Errors specific to each API are shown in the Endpoints section, under Response. See our [reference guide](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#http-status-codes) for more on errors.


    API Specific errors can be found [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/Design/Errors-and-issues?version=0.1.1-private-beta).

    '
  contact:
    name: gp-connect/patient-facing/prescriptions-management-fhir/FHIR/R4 API Support
    url: https://digital.nhs.uk/developer/help-and-support
    email: api.management@nhs.net
servers:
- url: https://sandbox.api.service.nhs.uk/gp-connect/patient-facing/prescriptions-management-fhir/FHIR/R4
  description: Sandbox environment.
- url: https://int.api.service.nhs.uk/gp-connect/patient-facing/prescriptions-management-fhir/FHIR/R4
  description: Integration test environment.
- url: https://api.service.nhs.uk/gp-connect/patient-facing/prescriptions-management-fhir/FHIR/R4
  description: Production environment.
tags:
- name: Task
paths:
  /Task:
    post:
      operationId: post-task
      summary: Request a repeat prescription
      description: "## Overview\n\nUse this end point to create a request for a repeat prescription.\n\nThe same end point can be used to request a prescription to a one off pharmacy nomination - the ODS code is set in Task.input using code [preferred-performer](https://simplifier.net/guide/nhs-england-implementation-guide-stu1/Home/Terminology/All-CodeSystems/CodeSystem-England-PFSPrescriptionOrderingParameter?version=1.1.0).\n\nFor this, send a Task with a focus of a prior MedicationRequest which has an intent of plan. This can be obtain by using the GET `/MedicationRequest/Patient/` endpoint within this API.\n\n## Use cases\nUse cases covered by this endpoint include:\n\n* request the next issue of a repeat prescription\n\n* request the next issue of a repeat prescription to a one off pharmacy nomination\n\n* request  \n\n## Request workflow\nWhen a request is made it is added to the GP system's workflow and processed at some point in the future.\nAt this point the status of the Task resource will be updated as it passes through the GP system's workflow. \nIf a request is rejected the statusReason element of the Task resource will be populated with the reason to be displayed to the patient.\n"
      parameters:
      - $ref: '#/components/parameters/BearerAuthorization'
      - $ref: '#/components/parameters/CorrelationID'
      - $ref: '#/components/parameters/RequestID'
      requestBody:
        required: true
        description: Successful Request.
        content:
          application/fhir+json:
            schema:
              type: object
              description: 'Information surrounding how the Task resource is populated can be found [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/FHIR-Assets/All-Assets/Profiles/UKCore-Task?version=0.1.1-private-beta).

                '
            example:
              resourceType: Task
              meta:
                profile:
                - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
              identifier:
              - system: https://tools.ietf.org/html/rfc4122
                value: ce3354f5-98c2-43ad-95bd-a6df1c5ed169
              status: requested
              intent: order
              code:
                coding:
                - system: http://snomed.info/sct
                  code: '103742009'
                  display: Renewal of prescription
              focus:
                reference: MedicationRequest/b269d1d7-1acf-47bb-8b3c-e38b583d9a07
              for:
                reference: Patient/9000000009
                identifier:
                  system: https://fhir.nhs.uk/Id/nhs-number
                  value: '9000000009'
                display: Jane Smith
              authoredOn: 2022-10-13 09:20:27+00:00
              lastModified: 2022-10-13 09:20:27+00:00
              requester:
                reference: Patient/9000000009
                identifier:
                  system: https://fhir.nhs.uk/Id/nhs-number
                  value: '9000000009'
                display: Jane Smith
              note:
              - authorString: Patient
                text: ran out of previous prescription
              input:
              - type:
                  coding:
                  - system: https://fhir.nhs.uk/England/CodeSystem/England-PFSPrescriptionOrderingParameter
                    code: preferred-performer
                    display: Preferred performer
                valueIdentifier:
                  system: https://fhir.nhs.uk/Id/ods-organization-code
                  value: FLM49
      responses:
        '201':
          description: A successful response to the POST request will return the created object now populated with an id.
          content:
            application/fhir+json:
              schema:
                type: object
              examples:
                operation-outcome-success:
                  value:
                    resourceType: Task
                    id: 7c747c6e-15c8-4b2f-8aa0-441f2ef703d6
                    meta:
                      profile:
                      - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
                    identifier:
                    - system: https://tools.ietf.org/html/rfc4122
                      value: ce3354f5-98c2-43ad-95bd-a6df1c5ed169
                    status: requested
                    intent: order
                    code:
                      coding:
                      - system: http://snomed.info/sct
                        code: '103742009'
                        display: Renewal of prescription
                    focus:
                      reference: MedicationRequest/b269d1d7-1acf-47bb-8b3c-e38b583d9a07
                    for:
                      reference: Patient/9000000009
                      identifier:
                        system: https://fhir.nhs.uk/Id/nhs-number
                        value: '9000000009'
                      display: Jane Smith
                    authoredOn: 2022-10-13 09:20:27+00:00
                    lastModified: 2022-10-13 09:20:27+00:00
                    requester:
                      reference: Patient/9000000009
                      identifier:
                        system: https://fhir.nhs.uk/Id/nhs-number
                        value: '9000000009'
                      display: Jane Smith
                    note:
                    - authorString: Patient
                      text: ran out of previous prescription
                    input:
                    - type:
                        coding:
                        - system: https://fhir.nhs.uk/England/CodeSystem/England-PFSPrescriptionOrderingParameter
                          code: preferred-performer
                          display: Preferred performer
                      valueIdentifier:
                        system: https://fhir.nhs.uk/Id/ods-organization-code
                        value: FLM49
        4XX:
          description: "An error occured as follows:\n\n\n| HTTP Status | Spine error code      | Description\n|-------------|-----------------------|------------\n| 400         | BAD_REQUEST           | X-Request-ID is not present\n| 403         | ACCESS_DENIED         | Access denied, the patient logged in does not have the correct access level\n| 409         | DUPLICATE_REJECTED\t  | Create would lead to creation of a duplicate resource\n| 422         | INVALID_RESOURCE      | Task resource failed validation (any incorrect values)\n| 422         | INVALID_RESOURCE      | Task missing required focus reference\n| 422         | REFERENCE_NOT_FOUND   | focus reference to MedicationRequest not valid\n| 422         | REFERENCE_NOT_FOUND   | requester reference to Patient not valid\n| 422         | REFERENCE_NOT_FOUND   | for reference to Patient not valid\n"
          content:
            application/fhir+json:
              schema:
                type: object
                description: Link to UKCore-OperationOutcome resource population guidance [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/FHIR-Assets/All-Assets/Profiles/UKCore-OperationOutcome?version=0.1.1-private-beta).
              examples:
                example:
                  value:
                    resourceType: OperationOutcome
                    meta:
                      profile:
                      - https://fhir.hl7.org.uk/StructureDefinition/UKCore-OperationOutcome
                    issue:
                    - severity: error
                      code: business-rule
                      details:
                        coding:
                        - system: https://fhir.nhs.uk/R4/ValueSet/Spine-ErrorOrWarningCode-1
                          code: CONFLICTING_VALUES
                          display: Mismatched prescribed item to quantity
      tags:
      - Task
    get:
      operationId: get-task
      summary: Get requested prescription reorders
      description: "## Overview\n\nUse this end point to check the status of past and current prescription reorder requests.\n\nIf a Patient identifier is provided past and present requests will be returned for the patient inside as multiple Task rescources inside a Bundle resource.\n\nIf just the id of a specific request is passed a singular Task resource will be returned inside a Bundle resource.\n\nIf the prescription request is then sent to EPS to be fulfilled the EPS id of the new MedicationRequest must be included in the output element of the Task resource. \n\nYou must provide at least one of the following parameters:\n\n* id\n\n* patient\n## Use cases\nUse cases covered by this endpoint include:\n\n* present inflight prescription requests to the Patient\n\n* allow the patient to check the status of a specific request\n\n* obtain the EPS id of a prescription reorder request that has been sent to be dispensed\n\n* obtain a list of requests to enable the patient to send a cancellation\n"
      parameters:
      - $ref: '#/components/parameters/BearerAuthorization'
      - $ref: '#/components/parameters/CorrelationID'
      - $ref: '#/components/parameters/RequestID'
      - in: query
        name: patient
        description: 'The NHS number of the patient whose requests you are searching for

          '
        required: true
        schema:
          type: string
          example: '9912003489'
      - in: query
        name: _include
        description: 'Task:focus:MedicationRequest - Include MedicationRequest resources referenced within the returned Task resources, further information around the benefits and using this parameter can be found [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/Build/How-to-determine-the-medication-the-request-belongs-to?version=0.1.1-private-beta).

          '
        required: false
        schema:
          type: array
          items:
            type: string
            enum:
            - Task:focus:MedicationRequest
      - in: query
        name: id
        description: 'The id of the Task itself

          '
        required: false
        schema:
          type: string
          example: dad85fcc-d3a0-4806-886a-a573bd48ad2c
      - in: query
        name: status
        description: 'The type of status to search: you can find valid values [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/FHIR-Assets/All-Assets/Profiles/UKCore-Task?version=0.1.1-private-beta#status).

          '
        required: false
        schema:
          type: string
          example: requested
      - in: query
        name: authored-on
        description: 'Date the prescription was requested, format: <eq|ge|le>YYYY-MM-DD. To use a range use authored-on=geYYYY-MM-DD&authored-on=leYYYY-MM-DD

          '
        required: false
        schema:
          type: string
        examples:
          exact date:
            value: eq2010-10-22
            description: Exact match date
          greater than or equals:
            value: ge2022-01-15
            description: Greater than or equals which matches 2022-01-15 or 2022-01-16
          less than or equals:
            value: le2022-01-15
            description: Less than or equals which matches 2022-01-15 or 2022-01-14
      responses:
        '200':
          description: Successful query
          content:
            application/fhir+json:
              schema:
                type: object
                description: Information surrounding how the Task resource is populated can be found [here](https://simplifier.net/guide/gp-connect--patient-facing-services--prescriptions/Home/FHIR-Assets/All-Assets/Profiles/UKCore-Task?version=0.1.1-private-beta).
              examples:
                bundle:
                  description: Successful request to view requests for prescriptions when a patient identifier is passed.
                  value:
                    resourceType: Bundle
                    id: a96bb563-c86b-4021-903e-5917b927c386
                    identifier:
                      system: https://tools.ietf.org/html/rfc4122
                      value: a3294018-6c63-4556-8797-f782d1c95480
                    type: searchset
                    entry:
                    - fullUrl: 20885a31-acf0-42d5-bd5b-85c23f7a32fd
                      resource:
                        resourceType: Task
                        id: aef77afb-7e3c-427a-8657-2c427f71a271
                        meta:
                          profile:
                          - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
                        identifier:
                        - system: https://tools.ietf.org/html/rfc4122
                          value: 725ca1bd-2860-4476-8802-8d035d802e7f
                        status: requested
                        intent: order
                        code:
                          coding:
                          - system: http://snomed.info/sct
                            code: '103742009'
                            display: Renewal of prescription
                        focus:
                          reference: MedicationRequest/06c7d0e2-1022-4e47-ac55-f6463d701a4f
                          display: Repeat prescription for Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)
                        for:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        authoredOn: 2022-11-23 20:20:27+07:00
                        lastModified: 2022-11-23 20:20:27+07:00
                        requester:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        note:
                        - authorString: Patient
                          text: Ran out of previous prescription
                    - fullUrl: 15c5ee13-73cf-45f8-a1f1-a7de3e10dae6
                      resource:
                        resourceType: Task
                        id: b395d57e-5d6c-4d2c-b590-fe2f2d708458
                        meta:
                          profile:
                          - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
                        identifier:
                        - system: https://tools.ietf.org/html/rfc4122
                          value: 725ca1bd-2860-4476-8802-8d035d802e7f
                        status: rejected
                        statusReason:
                          text: No longer suitable, please contact GP to organise an appointment
                        intent: order
                        code:
                          coding:
                          - system: http://snomed.info/sct
                            code: '103742009'
                            display: Renewal of prescription
                        focus:
                          reference: MedicationRequest/06c7d0e2-1022-4e47-ac55-f6463d701a4f
                          display: Repeat prescription for Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)
                        for:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        authoredOn: 2022-08-14 07:20:23+07:00
                        lastModified: 2022-08-14 11:40:47+07:00
                        requester:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                    - fullUrl: 561d0bfa-a937-4d91-81ab-abe65bca2d95
                      resource:
                        resourceType: Task
                        id: 84722efb-95b0-4769-921a-eda53382b320
                        meta:
                          profile:
                          - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
                        identifier:
                        - system: https://tools.ietf.org/html/rfc4122
                          value: 2270b136-7a4c-491e-8bf1-624b5c4f20b7
                        status: in-progress
                        intent: order
                        code:
                          coding:
                          - system: http://snomed.info/sct
                            code: '103742009'
                            display: Renewal of prescription
                        focus:
                          reference: MedicationRequest/06c7d0e2-1022-4e47-ac55-f6463d701a4f
                          display: Repeat prescription for Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)
                        for:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        authoredOn: 2022-10-13 16:20:27+07:00
                        lastModified: 2022-10-15 11:28:13+07:00
                        requester:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                completed and sent to EPS:
                  description: Completed prescription reorder request when sent to EPS.
                  value:
                    resourceType: Bundle
                    id: a96bb563-c86b-4021-903e-5917b927c386
                    identifier:
                      system: https://tools.ietf.org/html/rfc4122
                      value: a3294018-6c63-4556-8797-f782d1c95480
                    type: searchset
                    entry:
                    - fullUrl: 20885a31-acf0-42d5-bd5b-85c23f7a32fd
                      resource:
                        resourceType: Task
                        meta:
                          profile:
                          - https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task
                        identifier:
                        - system: https://tools.ietf.org/html/rfc4122
                          value: 30d65c8e-98e8-4806-b6a6-fpwjfkhs729
                        status: completed
                        intent: order
                        code:
                          coding:
                          - system: http://snomed.info/sct
                            code: '103742009'
                            display: Renewal of prescription
                        focus:
                          reference: MedicationRequest/b269d1d7-1acf-47bb-8b3c-e38b583d9a07
                          display: Repeat prescription for Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)
                        for:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        authoredOn: '2023-01-10T09:20:27.000Z'
                        lastModified: '2023-01-20T10:20:24.000Z'
                        requester:
                          reference: Patient/9000000009
                          identifier:
                            system: https://fhir.nhs.uk/Id/nhs-number
                            value: '9000000009'
                          display: Jane Smith
                        output:
                        - type:
                            coding:
                            - system: https://fhir.nhs.uk/England/CodeSystem/England-PFSPrescriptionOrderingParameter
                              code: sent-to-eps
                              display: Sent to EPS
                          valueIdentifier:
                            system: https://fhir.nhs.uk/Id/prescription-order-item-number
                            value: 4857b9d3-b714-44b9-9e67-3df67275b785
                include Medication Requests:
                  description: Successful request to view requests for prescriptions when a patient identifier is passed and _include parameters are used to return the referenced medication requests.
                  value:
                    resourceType: Bundle
                    id: a96bb563-c86b-4021-903e-5917b927c386
                    identifier:
                      system: https://tools.ietf.org/html/rfc4122
                      value: a3294018-6c63-4556-8797-f782d1c95480
                    type: searchset
                    entry:
                    - fullUrl: 20885a31-acf0-42d5-bd5b-85c23f7a32fd
                      resource:
                        resourceType: MedicationRequest
                        id: 06c7d0e2-1022-4e47-ac55-f6463d701a4f
                        meta:
                          profile:
                          - https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest
                        extension:
                        - url: https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation
                          extension:
                          - url: numberOfPrescriptionsIssued
                            valueUnsignedInt: 1
                          - url: authorisationExpiryDate
                            valueDateTime: '2023-09-10T19:00:00.000Z'
                        identifier:
                        - system: https://tools.ietf.org/html/rfc4122
                          value: 42b4a841-9d69-4d13-bf91-ee5882e85765
                        status: active
                        intent: plan
                        category:
                        - coding:
                          - system: http://terminology.hl7.or/CodeSystem/medicationrequest-category
                            code: community
                            display: Community
 

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/gp-connect/refs/heads/main/openapi/gp-connect-task-api-openapi.yml