{"openapi":"3.0.0","x-nhs-api-spec-guid":"5ead5713-9d2b-46eb-8626-def5fd2a2350","info":{"title":"Electronic Prescription Service (FHIR) API","version":"{VERSION}","contact":{"name":"Electronic Prescription Service FHIR API Support","url":"https://digital.nhs.uk/developer/help-and-support","email":"api.management@nhs.net"},"description":"\n<div class=\"nhsd-m-emphasis-box nhsd-m-emphasis-box--emphasis nhsd-!t-margin-bottom-6\" aria-label=\"Highlighted Information\">\n <div class=\"nhsd-a-box nhsd-a-box--border-blue\">\n <div class=\"nhsd-m-emphasis-box__image-box\">\n <figure class=\"nhsd-a-image\">\n <picture class=\"nhsd-a-image__picture\">\n <img src=\"http://digital.nhs.uk/binaries/content/gallery/icons/info.svg?colour=231f20\" alt=\"\" style=\"object-fit:fill\">\n </picture>\n </figure>\n </div>\n <div class=\"nhsd-m-emphasis-box__content-box\">\n <div data-uipath=\"website.contentblock.emphasis.content\" class=\"nhsd-t-word-break\">\n <p class=\"nhsd-t-body\">The EPS FHIR API is <a href=\"https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses\">in production, but deprecated.</a> This means that:<ul class=\"nhsd-t-list nhsd-t-list--bullet\"><li class=\"nhsd-t-body\">suppliers cannot onboard to this API</li><li class=\"nhsd-t-body\">no new functionality will be developed by NHS England for this API</li><li class=\"nhsd-t-body\">this API will be retired in the future</li></ul> New functionality will be available on the <a href=\"https://digital.nhs.uk/developer/api-catalogue/eps-fhir-dispensing-api\">EPS FHIR Dispensing API</a> and the <a href=\"https://digital.nhs.uk/developer/api-catalogue/eps-fhir-prescribing-api\">EPS FHIR Prescribing API</a>. Suppliers should onboard to these APIs instead. </p></div></div></div></div>\n\n#### Overview\n<style>.codeinline.example {word-wrap: anywhere;}</style>\nUse this API to access the [Electronic Prescription Service (EPS)](https://digital.nhs.uk/services/electronic-prescription-service). EPS is the national service used to send electronic prescription messages between prescribers and community dispensers.\n\nIf you are using this API in [user-restricted mode](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis) a healthcare worker must be present and authenticated with an [NHS smartcard or a modern alternative](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/nhs-smartcards-for-developers) to use this API.\n\n### Prescribers in primary and secondary care can: \n* create a prescription\n* encode data so the prescription is ready to sign\n* cancel a prescription\n\nCreating and cancelling a prescription are both done by the prescriber. Encoding data so the prescription is ready to sign is done by the prescribing system.\n\n### Dispensers can:\n* download an individual prescription from EPS\n* download a batch of prescriptions from EPS\n* return a prescription to EPS\n* submit a dispense notification to EPS\n* withdraw a dispense notification from EPS\n* submit a dispense claim\n\nYou cannot currently use this API to:\n* view a prescription's detailed dispense history\n\n## Who can use this API\n  This API can only be used where there is a legal basis to do so. Make sure you have a [valid use case](https://digital.nhs.uk/services/electronic-prescription-service/enabling-eps-for-your-service) before you go too far with your development. \n\nYou must get approval before you can go live. For more information, see the 'Onboarding' section.\n\n## Related APIs, services and documentation\n   \n### Services\nThese services must be used alongside EPS to create a functioning prescribing or dispensing system.\n* [Care Identity Service 2 (CIS2)](https://digital.nhs.uk/services/identity-and-access-management/national-care-identity-service) - use this to authenticate prescribers with their smartcard or a modern alternative.\n* [Directory of Services (DOS)](https://digital.nhs.uk/developer/api-catalogue/directory-of-healthcare-services/version-3) - prescribers must use the DOS to find dispensing sites for patients.\n* [Organisation Data Service (ODS)](https://digital.nhs.uk/developer/api-catalogue/organisation-data-service-fhir) - use this to access ODS codes for prescribing organisations.\n* [Personal Demographics Service (PDS)](https://digital.nhs.uk/developer/api-catalogue/personal-demographics-service-fhir) - use PDS to synchronise a patient's demographic details including their name, date of birth and address.\n* [Digital Signature Service](https://digital.nhs.uk/developer/api-catalogue/signing-service) - use the signing service API to create signatures for prescriptions. The signing service is only used for EPS.\n* [Role-Based Access Controls (RBAC)](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/national-rbac-for-developers) - RBAC rules are stored in the National RBAC Database (NRD) and are used to limit what prescribers can and cannot do.\n* [Message Exchange for Social Care and Health (MESH)](https://digital.nhs.uk/developer/api-catalogue/message-exchange-for-social-care-and-health-api) - Use MESH to deliver and receive cancel responses.\n* [Prescription Tracker](https://developer.nhs.uk/apis/eps-tracker) - use this if you want a read-only interface to get information about a patient's prescriptions.\n* [Real-Time Exemption Checking](https://nhsconnect.github.io/prescription-exemptions/) - dispensing systems must use the Real-Time Exemption Checking service to prevent prescriptions fraud and enable effective processing of charge exemptions.\n\n### Documentation\nThis documentation provides important context\n* [Dictionary of Medicines and Devices (dm+d)](https://www.nhsbsa.nhs.uk/pharmacies-gp-practices-and-appliance-contractors/dictionary-medicines-and-devices-dmd) - the dm+d has the names, descriptions and unique identifiers for medicines and devices that can be prescribed.\n* [Requirements and Guidance for Endorsement in the Electronic Prescription Service (EPS)](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) - guidance on handling prescription types, prescription endorsements, and patient charge exemptions within EPS.\n\n### Guidance for developers and product owners\nDocumentation and guidance about EPS for technical and non-technical audiences\n* [Simplifier implementation guide for EPS](https://simplifier.net/guide/nhsengland-eps?version=current) - the implementation guide contains detailed information and example messages, error codes and processes. This is for technical audiences like developers.\n* [Building healthcare software - prescriptions](https://digital.nhs.uk/developer/guides-and-documentation/building-healthcare-software/prescriptions) - this explains how to build software that deals with prescriptions. This is for non-technical audiences like product owners.\n\nThe APIs that are replacing this one are:\n* [EPS FHIR Prescribing API](https://digital.nhs.uk/developer/api-catalogue/eps-fhir-prescribing-api) - use this API to create prescriptions, cancel prescriptions and encode data so prescriptions are ready to sign.\n* [EPS FHIR Dispensing API](https://digital.nhs.uk/developer/api-catalogue/eps-fhir-dispensing-api) - use this API to get dispensing information about prescriptions and return prescriptions to EPS.\n\n## API status and roadmap\nThe immediate priority of EPS development is to support the rollout of the next-gen FHIR APIs for primary care and secondary care prescribing and dispensing.\n\n### Prescribing\nThe API supports prescribers in primary and secondary care settings. This means prescriptions are sent from a GP or NHS hospital to a pharmacy. For these workflows, the API is [in production](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses).\n* it is available in integration and production\n* we might make breaking changes, but only if we cannot avoid it, and we will give advance notice\n\n### Dispensing\nThis API supports a community pharmacy dispensing workflow.\n\nIn a community pharmacy workflow, prescriptions can be released (downloaded) from EPS, updated, dispensed, and then claimed by the pharmacy. For this workflow, the API is [in production](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses).\n- it is available in integration and production\n- we might make breaking changes, but only if we cannot avoid it, and we will give advance notice\n\n### Roadmap\nTo 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/?tag=eps-fhir-api).\n\nIf you have any other queries, please [contact us](https://digital.nhs.uk/developer/help-and-support).\n\n## Service level\nThis API is a platinum service, meaning it is operational and supported 24 hours a day, 365 days a year.\n\nFor more details, see [service levels](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#service-levels).\n\n## Technology\nThis API is [RESTful](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#basic-rest).\n\nIt 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.\n\nIt includes some country-specific FHIR extensions, which are built against [FHIR UK Core](https://simplifier.net/guide/ukcoreversionhistory/home?version=current).\n\nYou do not need to know much about FHIR to use this API - FHIR APIs are just RESTful APIs that follow specific rules. In particular:\n* resource names are capitalised and singular, for example `/Patient` not `/patients`\n* array names are singular, for example `line` not `lines` for address lines\n* data items that are country-specific and thus not included in the FHIR global base resources are usually wrapped in an `extension` object\n\nThere 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.\n\n## Network access\nThis 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).\nTo use this API with [NHS smartcards](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/nhs-smartcards-for-developers), the end user needs an HSCN connection, although internet-facing alternatives to smartcards are available.\n\nFor more details see [Network access for APIs](https://digital.nhs.uk/developer/guides-and-documentation/network-access-for-apis).\n\n## Security and authorisation\nThis API has 1 access mode:\n* user-restricted access\n\n### User-restricted access\nThe EPS APIs are mostly [user-restricted](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis),\nmeaning we authenticate the end user.\n\nEPS only supports [CIS2 separate authentication and authorisation](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation),\ndo not use combined authentication and authorisation.\n\n## Environment and testing\n| Environment      | Base URL                                                            |\n|------------------|---------------------------------------------------------------------|\n| Sandbox          | `https://sandbox.api.service.nhs.uk/electronic-prescriptions`       |\n| Integration test | `https://int.api.service.nhs.uk/electronic-prescriptions`           |\n| Production       | `https://api.service.nhs.uk/electronic-prescriptions`               |\n\n### Sandbox testing\nOur [sandbox environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#sandbox-testing):\n\n* is for early developer testing\n* only covers a limited set of scenarios\n* is stateless, so it does not actually persist any updates\n* is open access, so does not allow you to test authorisation\n\nFor details of sandbox testing, or to try out the sandbox using our \"Try this API\" feature, see the documentation for each endpoint.\n\n### Integration testing\nOur [integration test environment](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing):\n\n* is for formal integration testing\n* is stateful, so persists updates\n* includes authorisation, with [smartcard](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/nhs-smartcards-for-developers) and non-smartcard options\n\nFor more details see [integration testing with our RESTful APIs](https://digital.nhs.uk/developer/guides-and-documentation/testing#integration-testing-with-our-restful-apis).\n\n## Onboarding\nSuppliers cannot onboard to this API because it is deprecated. Suppliers should onboard to the EPS FHIR Dispensing API and the EPS FHIR Prescribing API instead.\n\n## Resources\nUse the [Digital Medicines Implementation Guide](https://simplifier.net/guide/NHSDigital-Medicines) to assist with your integration.\nThis is the FHIR specification for Digital Medicines starting with the assets required for an electronic prescription sent to the EPS.\n\nFor further guidance on prescribing, see [EPS prescribing developer guide](https://digital.nhs.uk/developer/guides-and-documentation/building-healthcare-software/prescriptions/eps-prescriber-developer-guide).\n\n## Errors\n### Verification errors\n| HTTP Status | Error Code    | Example Diagnostic                                                                                                                                                               | Description                                                                                                    | Endpoints                                                             |\n|-------------|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| 400         | value         | Incorrect FHIR resource type. Expected Bundle.                                                                                                                                   | Body's `resourceType` not the expected value.                                                                  | `/$prepare`, `/$process-message`, `/Claim`, `/Task/$release`, `/Task` |\n| 400         | value         | MessageHeader.eventCoding.code must be one of: prescription-order, prescription-order-update, dispense-notification.                                                             | MessageHeader's `eventCoding.code` is not supported.                                                           | `/$prepare`                                                           |\n| 400         | value         | MedicationRequest.intent must be order, original-order or instance-order.                                                                                                        | Bundle contains a plan or reflex. Only order, original-order and instance-order are supported.                 | `/$prepare`, `/$process-message`                                      |\n| 400         | value         | Expected all MedicationRequests to have the same value for dispenseRequest.performer. Received [\"1f8cb914-feb0-4ef8-b676-bf2dfa5ac47d\", \"8b676178-768c-445a-98a9-bea45931fcd8\"]. | A MedicationRequest field that should be consistent has multiple unique values across requests.                | `/$prepare`, `/$process-message`                                      |\n| 400         | value         | Bundle resource Practitioner.identifier expected exactly one professional code from GMC/NMC/GPhC/HCPC/professional-code.                                                         | Practitioner contains a gmp-number identifier, which is invalid.                                               | `/$prepare`                                                           |\n| 400         | value         | Expected all MedicationRequests to have a different value for identifier.                                                                                                        | MedicationRequests contains a duplicate identifier.                                                            | `/$prepare`                                                           |\n| 400         | value         | Task.status must be one of: 'in-progress', 'rejected'                                                                                                                            | Specified field must be one of the listed values.                                                              | `/Task`                                                               |\n| 400         | value         | Task.code is required when Task.status is 'in-progress'.                                                                                                                         | Specified field is missing.                                                                                    | `/Task`                                                               |\n| 400         | value         | Task.reasonCode must have a system of 'https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason' and a value from that system.                                      | Specified field is missing a required system.                                                                  | `/Task`                                                               |\n| 400         | value         | The Bundle must contain exactly one MedicationRequest if MessageHeader.eventCoding.code is 'prescription-order-update'.                                                          | The requested operation can only be performed on a single medication request.                                  | `/$process-message`                                                   |\n| 400         | value         | Expected MedicationRequest to have a value for statusReason.                                                                                                                     | Specified field is missing.                                                                                    | `/$process-message`                                                   |\n| 400         | not-supported | Prescribing functionality is disabled.                                                                                                                                           | Requested operation is not enabled/supported.                                                                  | `/$prepare`, `/Claim`, `/Task/$release`, `/Task`                      |\n| 400         | structure     | MedicationRequest cannot contain both medicationReference and medicationCodeableConcept fields.                                                                                  | MedicationRequest contains both `medicationReference` and `medicationCodeableConcept` fields.                  | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | practitionerRole.practitioner populated incorrectly. Please populate with Reference to resource within Bundle.                                                                   | The specified field should be a reference but is not.                                                          | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | Parameters.parameter(\"agent\").resource.practitioner populated incorrectly. Please populate with Identifier and Display.                                                          | The specified field should not be a reference but is.                                                          | `/Claim`, `/Task/$release`, `/Task`                                   |\n| 400         | invalid       | Unexpected field of practitionerRole.healthcareService.                                                                                                                          | Specified field is provided when it should not have been.                                                      | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | Required field organization.partOf is missing.                                                                                                                                   | Specified field is not provided when it should have been.                                                      | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | Required parameter owner is missing.                                                                                                                                             | Specified parameter is not provided when it should have been.                                                  | `/Task/$release`                                                      |\n| 400         | invalid       | The claim is missing the required endorsement code.                                                                                                                              | The necessary endorsement code is not included in the claim request.                                           | `/Claim`                                                              |\n| 400         | invalid       | The dispense notification is missing the reimbursement authority and it should be provided.                                                                                      | The necessary extension containing the reimbursement authority is missing and it should be provided.           | `/$process-message`, `#dispense-notification`                         |\n| 400         | invalid       | The dispense notification is missing the ODS code for the reimbursement authority and it should be provided.                                                                     | The necessary ODS code is not included in the dispense notification and it should be provided.                 | `/$process-message`, `#dispense-notification`                         |\n| 500         | invalid       | *N/A*                                                                                                                                                                            | An internal error occurred. Details should be specified in attached OperationOutcome.                          | `/$prepare`, `/Claim`, `/Task/$release`, `/Task`                      |\n| 403         | forbidden     | Your app does not have permission to access prescribing functionality.                                                                                                           | App does not have permission to use the requested function.                                                    | `/$prepare`, `/$process-message`, `/Claim`, `/Task/$release`, `/Task` |\n| 403         | forbidden     | Dispensing functionality can only be accessed using the user-restricted access mode.                                                                                             | The requested function requires user-restricted access mode.                                                   | `/$prepare`, `/$process-message`, `/Claim`, `/Task/$release`, `/Task` |\n\n### System Errors\n#### Prescribing Errors\n| Error Code | EPS Issue Code            | Description                                                                 | Endpoints           |\n|------------|---------------------------|-----------------------------------------------------------------------------|---------------------|\n| invalid    | *N/A*                     | A generic error occurred.                                                   | `/$prepare`         |\n| duplicate  | DUPLICATE_PRESCRIPTION_ID | A prescription with the same ID already exists.                             | `/$prepare`         |\n| invalid    | TOO_FEW_VALUES_SUBMITTED  | A mandatory value is missing, or an insufficient number have been provided. | `/$process-message` |\n\n#### Nominated Release Errors\n| Error Code    | EPS Issue Code        | Description                                             | Endpoints        |\n|---------------|-----------------------|---------------------------------------------------------|------------------|\n| invalid       | *N/A*                 | A generic error occurred.                               | `/Task/$release` |\n| informational | NO_MORE_PRESCRIPTIONS | No more prescriptions available for nominated download. | `/Task/$release` |\n\n#### Cancellation Errors\n| Error Code | EPS Issue Code         | Description                                                                                 | Endpoints           |\n|------------|------------------------|---------------------------------------------------------------------------------------------|---------------------|\n| invalid    | *N/A*                  | A generic error occurred.                                                                   | `/$process-message` |\n| not-found  | PRESCRIPTION_NOT_FOUND | The requested prescription could not be found.                                              | `/$process-message` |\n| *N/A*      | R-0002                 | Prescription was with dispenser so not cancelled, but marked for cancellation.              | `/$process-message` |\n| *N/A*      | R-0003                 | Prescription was with dispenser active so not cancelled, but marked for cancellation.       | `/$process-message` |\n| *N/A*      | R-0004                 | Prescription was not cancelled as it has been dispensed.                                    | `/$process-message` |\n| *N/A*      | R-0005                 | Prescription was not cancelled as it has expired.                                           | `/$process-message` |\n| *N/A*      | R-0006                 | Prescription has already been cancelled.                                                    | `/$process-message` |\n| *N/A*      | R-0007                 | Cancellation already requested by another prescriber.                                       | `/$process-message` |\n| not-found  | R-0008                 | Prescription not found.                                                                     | `/$process-message` |\n| *N/A*      | R-0010                 | Prescription was not cancelled as it has been not dispensed.                                | `/$process-message` |\n| processing | R-5000                 | Unable to process message. Possibly due to a mismatch of NHS Numbers or prescription ID's.  | `/$process-message` |\n\n#### Dispensing Errors\n| Error Code    | EPS Issue Code                             | Description                                                                                    | Endpoints                                        |\n|---------------|--------------------------------------------|------------------------------------------------------------------------------------------------|--------------------------------------------------|\n| invalid       | *N/A*                                      | A generic error occurred.                                                                      | `/Claim`, `/Task/$release`, `/Task`              |\n| not-found     | PRESCRIPTION_NOT_FOUND                     | The requested prescription could not be found.                                                 | `/Claim`, `/Task/$release`, `/Task`              |\n| business-rule | PRESCRIPTION_WITH_ANOTHER_DISPENSER        | The requested prescription is with another dispenser.                                          | `/Task`                                          |\n| business-rule | PRESCRIPTION_INVALID_STATE_TRANSITION      | The requested operation is not valid for the current state of the prescription.                | `/Task/$release`, `/Task`                        |\n| business-rule | PRESCRIPTION_INVALID_LINE_STATE_TRANSITION | The requested operation is not valid for the current state of the prescription.                | `/Task/$release`, `/Claim`                       |\n| not-found     | ITEM_NOT_FOUND                             | The requested item could not be found.                                                         | `/Task/$release`, `/Claim`                       |\n| business-rule | MISMATCH_AUTHORISED_REPEAT_COUNTS          | The repeat count in this message does not match the repeat count in the original prescription. | `/Task/$release`, `/Claim`                       |\n| business-rule | DISPENSE_AMEND_IDENTIFIER_MISMATCH         | Replacement target does not match existing claim reference on record.                          | `/Claim`                                         |\n| business-rule | CLAIM_AMEND_PERIOD_ISSUE                   | Claim amendment is not permitted outside of the claim period.                                  | `/Claim`                                         |\n| structure     | INVALID_MESSAGE                            | The message is not valid.                                                                      | `/Claim`                                         |\n| processing    | FAILURE_TO_PROCESS_MESSAGE                 | An unexpected error occurred while processing the message.                                     | `/Task`                                          |\n\n### Platform wide errors\n| HTTP Status   | Error Code            | Description                                                                                                                           |\n| ------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| 401           | ACCESS_DENIED         | User does not have permission for a particular request.                                                                               |\n| 403           | FORBIDDEN             | Insufficient authorization.                                                                                                           |\n| 404           | NOT_FOUND             | Route not found.                                                                                                                      |\n| 500           | INTERNAL SERVER ERROR | The server has encountered a situation it does not know how to handle.                                                                |\n| 504           | GATEWAY_TIMEOUT       | If your request has not been fully processed within 30 seconds, you will get this response. Retry the request with identical payload. |\n\nFor further details on common error codes, see [HTTP status codes](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#http-status-codes)\n"},"x-spec-publication":{"operation-order":[{"operations":[{"method":"POST","path":"/FHIR/R4/$prepare"},{"method":"POST","path":"/FHIR/R4/$process-message#prescription-order"},{"method":"POST","path":"/FHIR/R4/$process-message#prescription-order-update"},{"method":"POST","path":"/FHIR/R4/Task/$release"},{"method":"POST","path":"/FHIR/R4/$process-message#dispense-notification"},{"method":"POST","path":"/FHIR/R4/Claim"},{"method":"POST","path":"/FHIR/R4/Task#return"},{"method":"POST","path":"/FHIR/R4/Task#withdraw"}]}]},"servers":[{"url":"https://sandbox.api.service.nhs.uk/electronic-prescriptions","description":"Sandbox"},{"url":"https://int.api.service.nhs.uk/electronic-prescriptions","description":"Integration test"}],"tags":[{"name":"prescribing"},{"name":"dispensing"}],"paths":{"/FHIR/R4/$prepare":{"post":{"operationId":"prepare-prescription","summary":"Encode prescription data so it's ready to sign - Prescribing","description":"## Overview\nUse this endpoint to convert an unsigned FHIR prescription into the piece of data that needs to be digitally signed.\n\nThis action is done by the prescribing system and API, not the prescriber.\n\nTo generate a Provenance resource, guidance can be found at this link [here](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription).\n","tags":["prescribing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the requester or responsible practitioner of a prescription.\nIf for a responsible practitioner, at least one of the practitionerRole, referenced practitioner,\nor referenced organization must have a telecom field. Note that PractitionerRole level\nNHS BSA spurious code will take priority over supplier practitioner identifier, if present.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"oneOf":[{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},{"type":"object","description":"An identifier if part of an organization-only responsible practitioner.\n","properties":{"identifier":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GMP number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the GMP number.","enum":["https://fhir.hl7.org.uk/Id/gmp-number"]},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}}}]},"organization":{"type":"object","description":"A reference to an Organization resource.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the requester or responsible practitioner of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prepare request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"},"display":"ASDA INSTORE PHARMACY"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A valid acute, primary care prescription order request, with multiple dosage items.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}},{"sequence":2,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A Valid repeat, primary care prepare request","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care prepare request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"},"practitioner":{"identifier":{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"}}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}}},"responses":{"200":{"description":"Successful conversion.","content":{"application/fhir+json":{"schema":{"type":"object","description":"A response from the /$prepare endpoint.","properties":{"resourceType":{"type":"string","enum":["Parameters"]},"parameter":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["digest"]},"valueString":{"type":"string","example":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdv","description":"The Prescription Information that requires signing."}}},{"type":"object","properties":{"name":{"type":"string","enum":["timestamp"]},"valueString":{"type":"string","format":"date-time","example":"2021-05-07T14:47:47+00:00"}}},{"type":"object","properties":{"name":{"type":"string","enum":["algorithm"]},"valueString":{"type":"string","enum":["RS1"]}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5PQzhKTVpyTk5Fb0FlRzZFSml6NzhCUmRhdlFxV3N6dzdqUkFqRk45a3ZnPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A successful response to an acute with multiple dosages, primary care prescription order request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2022-10-21T13:47:00+00:00"},{"name":"algorithm","valueString":"RS1"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT50MXRjWXRQNURydjdwMEhQMEVNTG00WnZUeUdtMkNYcUlSZS9KV2xabkRBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2022-10-21T13:47:00+00:00"},{"name":"algorithm","valueString":"RS1"}]}},"responsible-party-org":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT44aC9RRGRMYUlHY2FsZVN4bkFPVk9yR0dPd3dHcXhrNVRTaDlRejdaZ3UwPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}}}}}},"4XX":{"description":"Invalid request.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"example":{"description":"An error response to a prepare request.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}}}}}}}}},"/FHIR/R4/$process-message#prescription-order":{"post":{"operationId":"send-prescription-order-message","summary":"Create a new prescription - Prescribing","description":"## Overview\nUse this endpoint to create a new prescription in EPS.\n\nThe prescription must include a digital signature, which can be generated using the [Signing Service](https://digital.nhs.uk/developer/api-catalogue/signing-service).\n\nThe `#prescription-order` in the URL has been added to distinguish this from the other operations which\ncan be performed using the [`$process-message` endpoint](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/OperationDefinition/process-message). It is not required in requests to the API.\n\nThe only difference between the prepare requests and create request should be the inclusion of the provenance resource.\n\nTo generate a Provenance resource, guidance can be found at this link [here](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription).\n","tags":["prescribing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The type of payload being carried within the Bundle.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the requester or responsible practitioner of a prescription.\nIf for a responsible practitioner, at least one of the practitionerRole, referenced practitioner,\nor referenced organization must have a telecom field. Note that PractitionerRole level\nNHS BSA spurious code will take priority over supplier practitioner identifier, if present.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"oneOf":[{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},{"type":"object","description":"An identifier if part of an organization-only responsible practitioner.\n","properties":{"identifier":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GMP number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the GMP number.","enum":["https://fhir.hl7.org.uk/Id/gmp-number"]},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}}}]},"organization":{"type":"object","description":"A reference to an Organization resource.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the requester or responsible practitioner of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},{"type":"object","description":"Provenance","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"A resource to contain the digital signature attached to a prescription, see [Generation of the provenance resource](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Provenance"]},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","description":"Reference object to identify the line items in a prescription that are being signed.\nA reference to each MedicationRequest resource in the Bundle must be provided.\n","items":{"type":"object","properties":{"type":{"type":"string","enum":["MedicationRequest"]},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}}},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","description":"A reference to the prescriber who signed the prescription, i.e. the requester of the prescription.\nA PractitionerRole resource within the Bundle must be referenced. \n","items":{"type":"object","properties":{"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}}}}},"signature":{"type":"array","description":"The Advanced Electronic Signature (AES) attached to a prescription.","items":{"type":"object","required":["when"],"properties":{"type":{"type":"array","description":"The type of signature attached to a prescription.","items":{"type":"object","properties":{"system":{"type":"string","description":"FHIR codesystem URN for signatures","enum":["urn:iso-astm:E1762-95:2013"]},"code":{"type":"string","enum":["1.2.840.10065.1.12.1.1"]}}}},"when":{"type":"string","format":"date-time","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","example":"2023-03-13T13:47:00+00:00"},"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle. \nThis will still be a reference to the prescriber who signed the prescription.\n","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"data":{"type":"string","description":"An advanced electronic signature, which may be generated using the Signing Service. See [this link](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","format":"byte","example":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}}}}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"},"display":"ASDA INSTORE PHARMACY"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A valid acute, primary care prescription order request, with multiple dosage items.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a3f5d78a-17aa-4877-a1af-3fa7d42a23b3"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"dd0cdc7b-db3f-4f2f-aa21-cb4d77432264"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}},{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"8a3a3a72-7a3d-41a1-851d-e7232d752089"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"e4e3b6b9-b2b5-4776-a22f-9dba5063f4ba"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"1567a273-834b-410d-b739-b5519d1d4b24"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2021-02-11T16:35:38+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2024-03-05T13:28:16+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+dTN3STVZdjVTY29SckhyRlB0UThzK2Jqb084PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"eRD-primary":{"summary":"eRD","description":"A valid eRD, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"},"practitioner":{"identifier":{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"}}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}}}}},"description":""},"responses":{"200":{"description":"Successfully submitted.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A successful response to an acute with multiple dosages, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"responsible-party-org":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"code":"informational","severity":"information"}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code                 | Description                                                                                                                 |\n|-------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| 400         | DUPLICATE_PRESCRIPTION_ID  | Duplicate prescription ID exists.                                                                                           |\n| 400         | FAILURE_TO_PROCESS_MESSAGE | Unable to process message for example where the prescription ID has an invalid checksum or an invalid NHS number is passed. |\n| 400         | MISSING_DIGITAL_SIGNATURE  | Digital signature not found.                                                                                                |\n| 400         | MISSING_VALUE              | The request contains multiple dosage instruction lines but no corresponding dosage sequence number.                         |\n","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"OperationOutcome":{"description":"An error response.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}}}}}}}}},"/FHIR/R4/$process-message#prescription-order-update":{"post":{"operationId":"send-prescription-order-update-message","summary":"Cancel a prescription - Prescribing","description":"## Overview\nUse this endpoint to cancel a prescription.\n\nThe effect of calling this endpoint depends on the type of the message, which is determined by the `MessageHeader` resource.\nTo cancel a prescription, send a [prescription-order-update message](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/MessageDefinition-duplicate-2/prescription-order-update).\n\nThe `#prescription-order-update` in the URL has been added to distinguish this from the other operations which\ncan be performed using the [`$process-message` endpoint](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/OperationDefinition/process-message). It is not required in requests to the API.\n","tags":["prescribing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-update"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Update"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["statusReason","resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel request is effectively an update to a prescription, expressed through a MedicationRequest resource for each line item that is being cancelled.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MedicationRequest"]},"statusReason":{"type":"object","description":"The reason the line item is being cancelled.\nThe reason must be in line with the cancellation reasons vocabulary <link>.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"codesystem URL for the cancellation reason.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason"]},"code":{"type":"string","description":"cancel reason code.","example":"0004","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009"]},"display":{"type":"string","description":"the display accompanying the cancel reason code.","example":"Clinical grounds","enum":["Prescribing error","Clinical contra-indication","Change to medication treatment regime","Clinical grounds","At the Patient's request","At the Pharmacist's request","Notification of Death","Patient deducted - other reason","Patient deducted- registered with new practice"]}}}}}},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["cancelled"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \nThis must be represented as a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a cancel request. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"The treatment type of the prescription, i.e. whether it is an acute, repeat, or eRD prescription.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital"}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"The start date of a prescription.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"For eRD prescriptions only. The end date of a prescription.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nThe duration of each issue within an eRD prescription. This must be expressed in days.\n","properties":{"value":{"type":"number","description":"The number of days each issue in an eRD prescription is valid for.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2.5},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","default":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated dispenser.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of the medication being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":"428673006"}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"A valid eRD, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}},"description":""},"responses":{"200":{"description":"Successfully submitted.\n\nNote that both successful and unsuccessful cancel responses will be successfully processed.\n\n| HTTP status | Response code          | Description                                                                                                                           |\n| ----------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------|\n| 200         | R-0001                 | Prescription or item was cancelled.                                                                                                   |\n","content":{"application/fhir+json":{"schema":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource.","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"cancel response for a successful or unsuccessful cancel request.","properties":{"url":{"type":"string","description":"codesystem URL for cancel responses.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"]},"extension":{"type":"array","description":"FHIR extension array","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","enum":["status"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for cancel response.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"]},"code":{"type":"string","description":"cancel response code","example":["R-0001"]},"display":{"type":"string","description":"cancel response display","example":["Prescription/item was cancelled"]}}}}},{"type":"object","properties":{"url":{"type":"string","description":"URL to identify the time that the cancel response was received","enum":["statusdate"]},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}}]}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \n\nThese values should be consistent across all MedicationRequests in a Bundle.\n","properties":{"performer":{"type":"object","description":"Where a cancel response is unsuccessful due to the prescription being with a dispenser, details of the dispenser who downloaded the prescription will be provided as part of the cancel response to enable the prescriber to contact the dispenser.\n","properties":{"extension":{"type":"array","description":"Details of the dispenser who downloaded the prescription","items":{"type":"object","properties":{"url":{"type":"string","description":"codesystem URL for the dispenser.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"]},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}}},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-response"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Response"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.\n\nWhere a cancel response contains details of the dispenser, details of the dispenser will also be contained within a Practitioner resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's or dispenser's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","items":{"type":"string","example":"Smith"}},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Clark"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"timestamp":"2022-10-21T13:48:00+00:00","type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code  | Description                                                                            | Response format    |\n|-------------|-------------|----------------------------------------------------------------------------------------|--------------------|\n| 400         | R-0002      | Prescription/item was not cancelled. With dispenser. Marked for cancellation           | Bundle             |\n| 400         | R-0003      | Prescription/item was not cancelled. With dispenser active. Marked for cancellation    | Bundle             |\n| 400         | R-0004      | Prescription/item was not cancelled. Prescription has been dispensed.                  | Bundle             |\n| 400         | R-0005      | Prescription/item has expired                                                          | Bundle             |\n| 400         | R-0006      | Prescription/item had already been cancelled                                           | Bundle             |\n| 400         | R-0007      | Prescription/item cancellation requested by another prescriber                         | Bundle             |\n| 400         | R-0008      | Prescription/item not found                                                            | OperationOutcome   |\n| 400         | R-0009      | Cancellation functionality disabled in SPINE                                           | OperationOutcome   |\n| 400         | R-0010      | Prescription/item was not cancelled. Prescription has been not dispensed.              | Bundle             |\n| 400         | R-5000      | Unable to process message. Information missing or invalid - ...                        | OperationOutcome   |\n| 400         | R-5888      | Invalid Message.                                                                       | OperationOutcome   |\n","content":{"application/fhir+json":{"schema":{"oneOf":[{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource.","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"cancel response for a successful or unsuccessful cancel request.","properties":{"url":{"type":"string","description":"codesystem URL for cancel responses.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"]},"extension":{"type":"array","description":"FHIR extension array","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","enum":["status"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for cancel response.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"]},"code":{"type":"string","description":"cancel response code","example":["R-0001"]},"display":{"type":"string","description":"cancel response display","example":["Prescription/item was cancelled"]}}}}},{"type":"object","properties":{"url":{"type":"string","description":"URL to identify the time that the cancel response was received","enum":["statusdate"]},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}}]}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \n\nThese values should be consistent across all MedicationRequests in a Bundle.\n","properties":{"performer":{"type":"object","description":"Where a cancel response is unsuccessful due to the prescription being with a dispenser, details of the dispenser who downloaded the prescription will be provided as part of the cancel response to enable the prescriber to contact the dispenser.\n","properties":{"extension":{"type":"array","description":"Details of the dispenser who downloaded the prescription","items":{"type":"object","properties":{"url":{"type":"string","description":"codesystem URL for the dispenser.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"]},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}}},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-response"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Response"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.\n\nWhere a cancel response contains details of the dispenser, details of the dispenser will also be contained within a Practitioner resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's or dispenser's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","items":{"type":"string","example":"Smith"}},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Clark"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}}]}}}}]},"examples":{"OperationOutcome":{"summary":"Missing Field","description":"An error response.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}},"R-0002":{"summary":"R-0002","description":"Prescription/item was not cancelled. With dispenser. Marked for cancellation","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0002","display":"Prescription/item was not cancelled. With dispenser. Marked for cancellation"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0003":{"summary":"R-0003","description":"Prescription/item was not cancelled. With dispenser active. Marked for cancellation","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0003","display":"Prescription/item was not cancelled. With dispenser active. Marked for cancellation"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0004":{"summary":"R-0004","description":"Prescription/item was not cancelled. Prescription has been dispensed.","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0004","display":"Prescription/item was not cancelled. Prescription has been dispensed."}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0005":{"summary":"R-0005","description":"Prescription/item has expired","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0005","display":"Prescription/item has expired"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0006":{"summary":"R-0006","description":"Prescription/item had already been cancelled","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0006","display":"Prescription/item had already been cancelled"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0007":{"summary":"R-0007","description":"Prescription/item cancellation requested by another prescriber","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0007","display":"Prescription/item cancellation requested by another prescriber"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0008":{"summary":"R-0008","description":"Prescription/item not found","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0008","display":"Prescription/item not found"}]}}]}},"R-0009":{"summary":"R-0009","description":"Cancellation functionality disabled in SPINE","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-supported","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0009","display":"Cancellation functionality disabled in SPINE"}]}}]}},"R-0010":{"summary":"R-0010","description":"Prescription/item was not cancelled. Prescription has been not dispensed.","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0010","display":"Prescription/item was not cancelled. Prescription has been not dispensed."}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-5000":{"summary":"R-5000","description":"Mismatch between prescription and cancellation NHSNumber","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"processing","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-5000","display":"Unable to process message. Information missing or invalid - Mismatch between prescription and cancellation NHSNumber"}]}}]}},"R-5888":{"summary":"R-5888","description":"Invalid Message.","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-5888","display":"Invalid Message."}]}}]}}}}}}}}},"/FHIR/R4/Task/$release":{"post":{"operationId":"release","summary":"Download prescriptions - Dispensing","description":"## Overview\nUse this endpoint to download prescriptions from EPS that are available for dispensing.\nYou can download a single prescription using the prescription's ID,\nor download up to 25 prescriptions (per request) nominated to a dispenser using the dispenser's ODS code.\n\nSend a [Task-release message](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/OperationDefinition-duplicate-2/release-duplicate-2) to this endpoint to download the prescription.\n","tags":["dispensing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","required":["resourceType","parameter"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Parameters"]},"parameter":{"type":"array","minItems":3,"uniqueItems":true,"items":{"oneOf":[{"type":"object","required":["name","valueCode"],"properties":{"name":{"type":"string","enum":["status"]},"valueCode":{"type":"string","enum":["accepted"]}}},{"type":"object","description":"The professional submitting the release request.","required":["name","resource"],"properties":{"name":{"type":"string","enum":["agent"]},"resource":{"type":"object","required":["resourceType","identifier","practitioner","code","telecom"],"properties":{"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"resourceType":{"type":"string","enum":["PractitionerRole"]},"identifier":{"type":"array","minItems":1,"uniqueItems":true,"items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}]}},"practitioner":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Jackie Clark"}}},"code":{"type":"array","minItems":1,"uniqueItems":true,"items":{"oneOf":[{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}]}},"telecom":{"type":"array","minItems":1,"uniqueItems":true,"items":{"oneOf":[{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}]}}}}}},{"type":"object","description":"The organization (pharmacy) downloading the prescriptions.","required":["name","resource"],"properties":{"name":{"type":"string","enum":["owner"]},"resource":{"type":"object","description":"Details of organization (pharmacy) downloading the prescriptions.","required":["resourceType","identifier","name","address","telecom","type"],"properties":{"id":{"type":"string","example":"4a964042-3c11-4b0f-990f-22d7b41ad604"},"resourceType":{"type":"string","enum":["Organization"]},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation.","minItems":1,"uniqueItems":true,"items":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}]}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","minItems":1,"uniqueItems":true,"items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","minItems":1,"description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","minItems":1,"uniqueItems":true,"items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"type":{"type":"array","items":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"]},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}}}}}},{"type":"object","description":"The short-form-prescription-id (token) of the prescription.","required":["name","valueIdentifier"],"properties":{"name":{"type":"string","enum":["group-identifier"]},"valueIdentifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"CodeSystem URL for the short-form prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form prescription ID.","example":"03F4C2-A99968-7F717P"}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care release request.","value":{"resourceType":"Parameters","id":"854b706a-c6e5-11ec-9d64-0242ac120002","parameter":[{"name":"group-identifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"}},{"name":"owner","resource":{"resourceType":"Organization","id":"4a964042-3c11-4b0f-990f-22d7b41ad603","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","value":"0113 3180277","use":"work"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"city":"West Yorkshire","postalCode":"LS15 8BA"}]}},{"name":"status","valueCode":"accepted"},{"name":"agent","resource":{"resourceType":"PractitionerRole","id":"16708936-6397-4e03-b84f-4aaa790633e0","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"3415870201"},"display":"Jackie Clark"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","value":"02380798431","use":"work"}]}}]}},"repeat-primary":{"summary":"Repeat","description":"A Valid repeat, primary care release request","value":{"resourceType":"Parameters","id":"854b706a-c6e5-11ec-9d64-0242ac120002","parameter":[{"name":"group-identifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"}},{"name":"owner","resource":{"resourceType":"Organization","id":"4a964042-3c11-4b0f-990f-22d7b41ad603","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","value":"0113 3180277","use":"work"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"city":"West Yorkshire","postalCode":"LS15 8BA"}]}},{"name":"status","valueCode":"accepted"},{"name":"agent","resource":{"resourceType":"PractitionerRole","id":"16708936-6397-4e03-b84f-4aaa790633e0","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"3415870201"},"display":"Jackie Clark"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","value":"02380798431","use":"work"}]}}]}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care release request.","value":{"resourceType":"Parameters","id":"528c59b4-1ec4-4434-8812-d08d78e22000","parameter":[{"name":"owner","resource":{"resourceType":"Organization","id":"organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}},{"name":"status","valueCode":"accepted"},{"name":"agent","resource":{"resourceType":"PractitionerRole","telecom":[{"system":"phone","value":"02380798431","use":"work"}],"identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"3415870201"},"display":"Jackie Clark"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}]}},{"name":"group-identifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"060CC0-A83008-5A2E6T"}}]}}}}}},"responses":{"200":{"description":"Successfully downloaded a prescription for dispensing.","content":{"application/fhir+json":{"schema":{"type":"object","description":"The requested prescriptions,\nexpressed as a FHIR bundle of \n[prescription-order FHIR messages](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/MessageDefinition-duplicate-2/prescription-order).\n","properties":{"resourceType":{"type":"string","enum":["Parameters"]},"id":{"type":"string","example":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"},"parameter":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["passedPrescriptions"]},"resource":{"type":"object","required":["identifier"],"properties":{"resourceType":{"type":"string","enum":["Bundle"]},"id":{"type":"string","example":"155e1102-9e71-4f19-9453-b905c0bbc494"},"meta":{"type":"object","required":["lastUpdated"],"properties":{"lastUpdated":{"type":"string","description":"The time that a release response was received.","format":"date-time","example":"2023-03-13T14:00:00+00:00"}}},"identifier":{"type":"object","description":"The unique identifier for a release response.","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"155e1102-9e71-4f19-9453-b905c0bbc494"}}},"type":{"type":"string","enum":["searchset"]},"link":{"type":"array","items":{"type":"object","properties":{"relation":{"type":"string","example":"self"},"url":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}}}},"total":{"type":"integer","description":"For nominated release responses only.\nThe number of prescriptions that are being released within a release response.\n","format":"int32","example":1},"entry":{"type":"array","description":"Container array for the one or many prescriptions that may be released within a release response.","items":{"type":"object","properties":{"fullUrl":{"type":"string","example":"urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"},"search":{"type":"object","properties":{"mode":{"type":"string","example":"match"}}},"resource":{"type":"object","description":"Container object for the released prescription.","properties":{"resourceType":{"type":"string","enum":["Bundle"]},"id":{"type":"string","example":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"},"timestamp":{"type":"string","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"identifier":{"type":"object","description":"Unique identifier for a prescription.","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"46183abc-9fad-4673-85db-ce2cb6614732"}}},"meta":{"type":"object","properties":{"lastUpdated":{"type":"string","description":"The time a prescription is valid from.","format":"date-time","example":"2023-03-13T14:00:00+00:00"}}},"type":{"type":"string","example":"message"},"entry":{"type":"array","items":{"type":"object","properties":{"fullUrl":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"oneOf":[{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}},{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}},{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}},{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}},{"type":"object","description":"A resource to contain the digital signature attached to a prescription, see [Generation of the provenance resource](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Provenance"]},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","description":"Reference object to identify the line items in a prescription that are being signed.\nA reference to each MedicationRequest resource in the Bundle must be provided.\n","items":{"type":"object","properties":{"type":{"type":"string","enum":["MedicationRequest"]},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}}},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","description":"A reference to the prescriber who signed the prescription, i.e. the requester of the prescription.\nA PractitionerRole resource within the Bundle must be referenced. \n","items":{"type":"object","properties":{"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}}}}},"signature":{"type":"array","description":"The Advanced Electronic Signature (AES) attached to a prescription.","items":{"type":"object","required":["when"],"properties":{"type":{"type":"array","description":"The type of signature attached to a prescription.","items":{"type":"object","properties":{"system":{"type":"string","description":"FHIR codesystem URN for signatures","enum":["urn:iso-astm:E1762-95:2013"]},"code":{"type":"string","enum":["1.2.840.10065.1.12.1.1"]}}}},"when":{"type":"string","format":"date-time","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","example":"2023-03-13T13:47:00+00:00"},"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle. \nThis will still be a reference to the prescriber who signed the prescription.\n","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"data":{"type":"string","description":"An advanced electronic signature, which may be generated using the Signing Service. See [this link](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","format":"byte","example":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}}}}}},{"type":"object","description":"Details of the author or responsible party of a release.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.\nThe professional code identifier can be used for the GMC or GPhC number.\n","items":{"anyOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}},{"type":"object","description":"Role-specific details of the author or responsible party of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\nWhere the prescription is a primary care prescription, this will be a reference to the prescribing organisation.\nWhere the prescription is a secondary care prescription, this will be a reference to the managing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}]}}}}}}}}}}}}},{"type":"object","properties":{"name":{"type":"string","enum":["failedPrescriptions"]},"resource":{"type":"object","properties":{"resourceType":{"type":"string","enum":["Bundle"]},"id":{"type":"string","example":"223cab8a-4173-4e86-9d0b-0afe7bd4965b"},"meta":{"type":"object","properties":{"lastUpdated":{"type":"string","description":"The time that a release rejection was received.","format":"date-time","example":"2023-03-09T11:25:25+00:00"}}},"identifier":{"type":"object","description":"The unique identifier for a release rejection.","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"9fa27fc5-052a-4abf-83ca-aee2742a870e"}}},"type":{"type":"string","enum":["searchset"]},"total":{"type":"integer","description":"For nominated release responses only.\nThe number of FHIR resources associated with the failed prescriptions that are being released within a release response.\nThis will be 2n, where n is the number of failed prescriptions.\n","format":"int32","example":1},"entry":{"type":"array","description":"Container array for the one or many release rejections that may be released within a release response.","items":{"oneOf":[{"type":"object","description":"A container resource for a specific release rejection.","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["code","severity"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","notsupported","duplicate","multiplematches","notfound","deleted","toolong","codeinvalid","extension","toocostly","businessrule","conflict","transient","lockerror","nostore","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"A reference to a prescription Bundle,\nwhich will follow the same structure as the prescription Bundle in the Release Response.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-Spine-supportingInfo-prescription"]},"valueReference":{"type":"object","properties":{"identifier":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}}}}}}}},{"type":"object","properties":{"resourceType":{"type":"string","enum":["Bundle"]},"id":{"type":"string","example":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"},"identifier":{"type":"object","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"1012093c-788a-445a-a197-04c02fcaf829"}}},"type":{"type":"string","example":"message"},"entry":{"type":"array","items":{"type":"object","properties":{"fullUrl":{"type":"string","example":"urn:uuid:8fd12878-418b-48dd-a628-4a2c33f71b37"},"resource":{"oneOf":[{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}},{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}},{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}},{"type":"object","description":"Details of the author or responsible party of a release.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.\nThe professional code identifier can be used for the GMC or GPhC number.\n","items":{"anyOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}},{"type":"object","description":"Role-specific details of the author or responsible party of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\nWhere the prescription is a primary care prescription, this will be a reference to the prescribing organisation.\nWhere the prescription is a secondary care prescription, this will be a reference to the managing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}]}}}}}}]}}}}}}]}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care release request.","value":{"resourceType":"Parameters","id":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","parameter":[{"name":"passedPrescriptions","resource":{"resourceType":"Bundle","id":"155e1102-9e71-4f19-9453-b905c0bbc494","meta":{"lastUpdated":"2022-11-21T14:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"155e1102-9e71-4f19-9453-b905c0bbc494"},"type":"searchset","link":[{"relation":"self","url":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}],"total":1,"entry":[{"fullUrl":"urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","search":{"mode":"match"},"resource":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","timestamp":"2022-10-21T13:47:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","id":"17773b27-427e-4940-8c16-64cdac715001","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/fhir-dispensing/$post-message","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},{"reference":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","id":"a54219b8-f741-4c47-b662-e4f8dfa49ab6","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days"}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","id":"6989b7bd-8db6-428c-a593-4022e3044c00","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Codeine phosphate 30 mg and paracetamol 500 mg oral tablet"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days"}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","id":"2868554c-5565-4d31-b92a-c5b8dab8b90a","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60 mg oral tablet"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days"}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","id":"5cb17f5a-11ac-4e18-825f-6470467238b3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days"}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","id":"78d3c2eb-009e-4ec8-a358-b042954aa9b2","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","id":"56166769-c1c4-4d07-afa8-132b5dfca666","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","id":"a8c85454-f8cb-498d-9629-78e2cb5fa47a","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","id":"3b4b03a5-52ba-4ba6-9b82-70350aa109d8","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"name":"HALLGARTH SURGERY","address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"recorded":"2022-10-21T13:47:00+00:00","signature":[{"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4=","type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}]}],"target":[{"type":"MedicationRequest","identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}},{"reference":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001"}]}}]}}]}},{"name":"failedPrescriptions","resource":{"resourceType":"Bundle","id":"914298fd-bc64-4c00-8d8d-bf88709db470","meta":{"lastUpdated":"2023-02-15T15:14:47+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"57674b6e-c6c9-42de-943d-f2ed90f36862"},"type":"searchset","total":2,"entry":[{"fullUrl":"urn:uuid:ebf8917e-d613-4b8e-ae3c-45084d3156ad","resource":{"resourceType":"OperationOutcome","id":"ebf8917e-d613-4b8e-ae3c-45084d3156ad","meta":{"lastUpdated":"2023-02-15T15:14:47+00:00"},"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Spine-supportingInfo-prescription","valueReference":{"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"e8a0fd11-fc4c-43a2-afe9-c2d8f3a19e6d"}}}],"issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode","code":"INVALID_VALUE","display":"Signature is invalid."}]},"expression":["Provenance.signature.data"]}]}},{"fullUrl":"urn:uuid:5727e86f-b9b4-4234-ae90-7170bf76a278","resource":{"resourceType":"Bundle","id":"5727e86f-b9b4-4234-ae90-7170bf76a278","meta":{"lastUpdated":"2022-10-20T00:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"e8a0fd11-fc4c-43a2-afe9-c2d8f3a19e6d"},"type":"message","entry":[{"fullUrl":"urn:uuid:fcffc3d3-ba67-4930-be1d-449c41f62b79","resource":{"resourceType":"MessageHeader","id":"fcffc3d3-ba67-4930-be1d-449c41f62b79","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"e8a0fd11-fc4c-43a2-afe9-c2d8f3a19e6d"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/FCG75","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FCG75"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-dispensing/$process-message"},"response":{"identifier":"264fe32e-7217-43d2-8954-a87f9da514b8","code":"ok"},"focus":[{"reference":"urn:uuid:39a01317-cebb-4ac9-b0b4-f8ffeefa600d"},{"reference":"urn:uuid:5917ea66-a012-43ab-97b6-794b431a610b"}]}},{"fullUrl":"urn:uuid:5917ea66-a012-43ab-97b6-794b431a610b","resource":{"resourceType":"MedicationRequest","id":"5917ea66-a012-43ab-97b6-794b431a610b","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"64f4fceb-ff9c-4b3f-8e9a-95ef781e24a7"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39113611000001102","display":"Salbutamol 100micrograms/dose inhaler CFC free"}]},"subject":{"reference":"urn:uuid:39a01317-cebb-4ac9-b0b4-f8ffeefa600d"},"category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"outpatient","display":"Outpatient"}]}],"requester":{"reference":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"819851-A83008-2EFE34","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"e974ae58-a883-405b-9b91-32acfbe8a8e5"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"5 times a day - Inhalation"}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"numberOfRepeatsAllowed":0,"quantity":{"value":200,"unit":"dose","system":"http://snomed.info/sct","code":"3317411000001100"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FCG75"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:39a01317-cebb-4ac9-b0b4-f8ffeefa600d","resource":{"resourceType":"Patient","id":"39a01317-cebb-4ac9-b0b4-f8ffeefa600d","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:1c6e4150-d18b-4ac9-a103-43f1bef96a59","resource":{"resourceType":"Practitioner","id":"1c6e4150-d18b-4ac9-a103-43f1bef96a59","identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446","resource":{"resourceType":"PractitionerRole","id":"89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:1c6e4150-d18b-4ac9-a103-43f1bef96a59"},"code":[{"coding":[{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"R8000"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:4f2567fb-aac8-4d40-abf4-1ef89be977c9"}}},{"fullUrl":"urn:uuid:4f2567fb-aac8-4d40-abf4-1ef89be977c9","resource":{"resourceType":"Organization","id":"4f2567fb-aac8-4d40-abf4-1ef89be977c9","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"01159737320"}],"address":[{"use":"work","line":["HALLGARTH SURGERY","CHEAPSIDE","SHILDON","COUNTY DURHAM"],"postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:9bed560c-ad94-4a16-925b-5f05e38f2417","resource":{"resourceType":"Provenance","id":"9bed560c-ad94-4a16-925b-5f05e38f2417","agent":[{"who":{"reference":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446"}}],"recorded":"2023-02-15T15:14:44+00:00","signature":[{"who":{"reference":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446"},"when":"2023-02-15T15:14:44+00:00","data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvQ2Fub25pY2FsaXphdGlvbk1ldGhvZD48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIj48L1NpZ25hdHVyZU1ldGhvZD48UmVmZXJlbmNlPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiPjwvVHJhbnNmb3JtPjwvVHJhbnNmb3Jtcz48RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT50K0Vic1V2REREVEpseUVITXlXcXg1bVF3WFU9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPmhsT0JrOXpUaFJ3RjZkd0pYSTVNV1orQklpR1ZqS1FwU2VIMTFrMWgxbTNwQ25GeHg3QU1jVkd4R1NHaHozT0pXeUd1K09hRXFDM3JkT09KTkFSZ1pMMEUrTFlKRW1zWTN4ZUR3cENBMWMzSTVpRWFqTUVENHNLL1ZJK2V6Ty96TDhIdDMwcDExN2VGSmh1QWFIYmVIZ0Y4T25ja2UybUMwV3VqdFRzYzF1bkNLTmg3OWYwWjc2TzREN1NsajE3RU9TVUJ6MVE3WVlGY2FOa2tvb01xSVBzUUZ6OEcyaE90RXlRRmhJUE9OT0NGS25YazZEaXRvVmRYOSt1NlNLbjZSS1U3cTRKWnBadG1SNlZKSjJYU0U3d000NVFEQUxGc0Z4YWwrWmp2blQrYTV2cEg1eGJMTmJVaE8rNHFpYTFOSis3bmdKeW9XeUJBMjhjYXIvTGp3QT09VFZWM1dFUnhTVTB4VjB3NE9EZFJSVFozTzwvU2lnbmF0dXJlVmFsdWU+PEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+TUlJRUFUQ0NBdW1nQXdJQkFnSVVZTEU3S0ZjN0s4RXhQQUIxQnlvYnNwb2IwOTh3RFFZSktvWklodmNOQVFFTEJRQXdnWTh4Q3pBSkJnTlZCQVlUQWtWT01SQXdEZ1lEVlFRSURBZEZibWRzWVc1a01RNHdEQVlEVlFRSERBVk1aV1ZrY3pFVU1CSUdBMVVFQ2d3TGFuVnpkSFJwYlM1dVpYUXhFREFPQmdOVkJBc01CM1JsYzNScGJtY3hFekFSQmdOVkJBTU1DbFJwYlNCRGIyRjBaWE14SVRBZkJna3Foa2lHOXcwQkNRRVdFblJwYlM1amIyRjBaWE5BYm1oekxtNWxkREFlRncweU1qRXdNakF4TWpFNU5USmFGdzB5TXpFd01qQXhNakU1TlRKYU1JR1BNUXN3Q1FZRFZRUUdFd0pGVGpFUU1BNEdBMVVFQ0F3SFJXNW5iR0Z1WkRFT01Bd0dBMVVFQnd3RlRHVmxaSE14RkRBU0JnTlZCQW9NQzJwMWMzUjBhVzB1Ym1WME1SQXdEZ1lEVlFRTERBZDBaWE4wYVc1bk1STXdFUVlEVlFRRERBcFVhVzBnUTI5aGRHVnpNU0V3SHdZSktvWklodmNOQVFrQkZoSjBhVzB1WTI5aGRHVnpRRzVvY3k1dVpYUXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDT2pJMWdBUjkyZGt0dzJGL0hESHlyYWIwL1R4amlXUUtYU2RqYUhWMnFzZmdWdnVieTFHK3llRzBtTCsvTUg3WlVRcFhhU0t0aFc1ZzVWWW82bmt3Ny8vaUNudzNLS0xCT2hDZzJXOWdoUkFqaVBLWitqUSsrUFJaMkNrNGVFeVd3dVRlUHhtc3hVdTJNcktXU1I2QlljeFE0SkJlN2dqMStNVXdYRHFJTTFXTDg4N1FFNnc4ZVFwS0RQenpJM05JY0l5K2ZBcjQ4UjNURmRENThLZExDNFBHN1Y3MmowUTljUXdoTTVpVEJkbmtrdWMxYmRIQk9LOG1VNTREeHZLc3JEN0xwUC8zdHZHYUxYV1hzUWVLK1M0NTA4bUtsZDJwT2RGbGc3U0FkbUQ3TUg3aFFLNE01WG13SnlESzBjN050QUR4a1RlSjQ2UnBPZXRSaE9abTFBZ01CQUFHalV6QlJNQjBHQTFVZERnUVdCQlNVZmFDcit4T3J3S3p0WjZZOTFFRnJpbms4ZVRBZkJnTlZIU01FR0RBV2dCU1VmYUNyK3hPcndLenRaNlk5MUVGcmluazhlVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQTBHQ1NxR1NJYjNEUUVCQ3dVQUE0SUJBUUJTY1pZV3h3cm0reUVxQXJhQldRLzdJY1p5ejhXTnZ2cFg4UzZob3A1Wnc1RU1FRVNjVlcwMHc2VkF6bmU4Nkc5L0lNdE9zSHhLWDRKcFlMbUJheldzRmh4d3c5R0c3cnVlNFVrdi9zdGZDcGhreHcrMW9vUWtzZ043UjBWNU42d1RIbEoxNFJkOEpmZVBtc1NPR3MwMUVxSURFY01NeG9PdGJEb28xOXJaU0EwVnRPam01aG9GWi82VGZ2TlpNZ09admFXbFJzZUpnZ0EzaW41UTZ3ZWhVNWdOY09hQXVtTkp1eXZpQTgwN1dTSGYvVi9iQ3U2ZWhtU2hUY2lPMGNKSnl6V2FrdktCZEZkMC9vUXk4Vk1wQXFUM0U2N1BiN25OWHovb2pYL1NSMzNBMUMya2NvSitHZWhmdzJrUURPL1lkaWY5OTZHejZ3cW9xQkd1TWs5SjwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg==","type":[{"code":"1.2.840.10065.1.12.1.1","system":"urn:iso-astm:E1762-95:2013"}]}],"target":[{"reference":"urn:uuid:fcffc3d3-ba67-4930-be1d-449c41f62b79"},{"reference":"urn:uuid:39a01317-cebb-4ac9-b0b4-f8ffeefa600d"},{"reference":"urn:uuid:89049c4d-f5d7-4e5b-9d52-0d9a9cd4a446"},{"reference":"urn:uuid:1c6e4150-d18b-4ac9-a103-43f1bef96a59"},{"reference":"urn:uuid:4f2567fb-aac8-4d40-abf4-1ef89be977c9"},{"reference":"urn:uuid:5917ea66-a012-43ab-97b6-794b431a610b"}]}}]}}]}}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care release request.","value":{"resourceType":"Parameters","id":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","parameter":[{"name":"passedPrescriptions","resource":{"resourceType":"Bundle","id":"155e1102-9e71-4f19-9453-b905c0bbc494","meta":{"lastUpdated":"2022-11-21T14:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"155e1102-9e71-4f19-9453-b905c0bbc494"},"type":"searchset","link":[{"relation":"self","url":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}],"total":1,"entry":[{"fullUrl":"urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","search":{"mode":"match"},"resource":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","timestamp":"2022-10-21T13:47:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/fhir-dispensing/$post-message","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},{"reference":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"type":"MedicationRequest","identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}}]}},{"name":"failedPrescriptions","resource":{"resourceType":"Bundle","id":"155e1102-9e71-4f19-9453-b905c0bbc495","meta":{"lastUpdated":"2022-11-21T14:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"155e1102-9e71-4f19-9453-b905c0bbc4950"},"type":"searchset","link":[{"relation":"self","url":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}],"total":0}}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare release request.","value":{"resourceType":"Parameters","id":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","parameter":[{"name":"passedPrescriptions","resource":{"resourceType":"Bundle","id":"155e1102-9e71-4f19-9453-b905c0bbc494","meta":{"lastUpdated":"2022-11-21T14:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"155e1102-9e71-4f19-9453-b905c0bbc494"},"type":"searchset","link":[{"relation":"self","url":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}],"total":1,"entry":[{"fullUrl":"urn:uuid:0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","search":{"mode":"match"},"resource":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","timestamp":"2022-10-21T13:47:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/fhir-dispensing/$post-message","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},{"reference":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"type":"MedicationRequest","identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}}]}},{"name":"failedPrescriptions","resource":{"resourceType":"Bundle","id":"155e1102-9e71-4f19-9453-b905c0bbc495","meta":{"lastUpdated":"2022-11-21T14:00:00+00:00"},"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"155e1102-9e71-4f19-9453-b905c0bbc4950"},"type":"searchset","link":[{"relation":"self","url":"https://sandbox.api.service.nhs.uk/fhir-dispensing/Task/$release"}],"total":0}}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code                          | Description                                                                                                                                   |\n| ----------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------|\n| 400         | PRESCRIPTION_WITH_ANOTHER_DISPENSER | Another dispenser has previously released this prescription. Details of the prescription will be in OperationOutcome.contained.Organization . |\n| 400         | RESOURCE_NOT_FOUND                  | The prescription ID specified in the parameters requested (group-identifier) did not exist.                                                   |\n","content":{"application/fhir+json":{"schema":{"type":"object"},"examples":{"not-found":{"description":"An error response due to requested prescription not being found.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"code":"not-found","severity":"error","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode","code":"RESOURCE_NOT_FOUND","display":"Resource not found"}]}}]}},"with-another-dispenser":{"description":"An error response due to the prescription being released by another dispenser.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2025-02-14T11:30:29+00:00"},"issue":[{"code":"business-rule","severity":"error","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-IssueCode","code":"PRESCRIPTION_WITH_ANOTHER_DISPENSER","display":"Prescription is with another dispenser"}]}}],"contained":[{"resourceType":"Organization","id":"15075e01-f3eb-4788-b3ef-b7426fae633e","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Spine-supportingInfo","valueReference":{"reference":"#15075e01-f3eb-4788-b3ef-b7426fae633e"}}]}}}}}}}}},"/FHIR/R4/Task#return":{"post":{"operationId":"return","summary":"Return a downloaded prescription - Dispensing","description":"## Overview\nUse this endpoint to return a downloaded prescription to EPS, so that another dispensing system can download it.\n\nThe effect of calling this endpoint depends on the Task status.\nTo return a downloaded prescription to EPS, send a Task with a status of `rejected`.\nFor more information on how to create these messages, see [NHSDigital-Task](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/Profiles/NHSDigital-Task).\n\nNote that the `#return` in the URL has been added to distinguish this from the other operations which\ncan be performed using the `Task` endpoint. It is not required in requests to the API.\n","tags":["dispensing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","description":"The request to return a downloaded prescription, expressed as a [Task FHIR resource](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/Profiles/NHSDigital-Task).","properties":{"resourceType":{"type":"string","enum":["Task"]},"id":{"type":"string","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"},"extension":{"type":"array","description":"FHIR extension array to hold Repeat Information.\nThis identifies the instance of the eRD prescription that is being returned.\nGiven that all eRD prescriptions have the same prescription ID,\nthe combination of Prescription ID and repeat number identifies the issue to withdraw or return.\n","items":{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The total number of issues a given prescription is authorised for.","properties":{"url":{"type":"string","enum":["numberOfRepeatsAllowed"]},"valueInteger":{"type":"integer","example":6}}},{"type":"object","description":"The current, active issue of the prescription.","properties":{"url":{"type":"string","enum":["numberOfRepeatsIssued"]},"valueInteger":{"type":"integer","example":2}}}]}}}}},"contained":{"type":"array","items":{"oneOf":[{"type":"object","required":["practitioner"],"description":"The dispenser returning the prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the dispenser.","items":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}},"practitioner":{"type":"object","description":"An identifier for a Practitioner resource, for a given dispenser.","properties":{"identifier":{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},"display":{"type":"string","example":"Ms Lottie Maifeld"}}},"organization":{"type":"object","properties":{"reference":{"type":"string","example":"#urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"}}},"code":{"type":"array","description":"The SDS job role code for a given dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}},{"type":"object","required":["name","telecom","address"],"description":"Details of the dispensing organisation returning the prescription.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"b350545d-dc96-61cd-923f-2c71521c64a8"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Organization"]},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","minItems":1,"description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"active":{"type":"boolean"},"type":{"type":"array","items":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"]},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","description":"The telephone number associated with the organisation.\nIf this element is missing the telecom information in the PractitionerRole resource will be used.\n","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}]}},"identifier":{"description":"The unique identifier for the Return Request.","type":"array","items":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}},"status":{"type":"string","enum":["active","cancelled","completed","rejected"]},"statusReason":{"type":"object","description":"The reason the prescription is being returned, which must be coded as per the Return Reason vocabulary.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason"]},"code":{"type":"string","example":"0003"},"display":{"type":"string","example":"Patient requested release"}}}}}},"intent":{"type":"string","description":"The intent of the Medication Requests being returned.\nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"code":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["http://hl7.org/fhir/CodeSystem/task-code"]},"code":{"type":"string","example":"fulfill"},"display":{"type":"string","example":"Fulfill the focal request"}}}}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"focus":{"type":"object","description":"The release response which released the prescription that is currently being returned.","properties":{"identifier":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}}},"for":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}},"authoredOn":{"type":"string","description":"The time the prescription is being returned to Spine.","format":"date-time","example":"2022-11-21T14:30:00+00:00"},"requester":{"type":"object","description":"The dispenser returning the prescription.","properties":{"reference":{"type":"string","example":"#requester"}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care return request.","value":{"resourceType":"Task","id":"ee1b55f8-113c-4725-99a3-25fbad366dd6","contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Ms Lottie Maifeld"},"organization":{"reference":"#organization"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}],"status":"rejected","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason","code":"0003","display":"Patient requested release"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"fulfill","display":"Fulfill the focal request"}]},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"focus":{"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-21T14:30:00+00:00","requester":{"reference":"#requester"},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"33633005","display":"Prescription of drug"}]}}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care return request.","value":{"resourceType":"Task","id":"ee1b55f8-113c-4725-99a3-25fbad366dd6","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":6},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Ms Lottie Maifeld"},"organization":{"reference":"#organization"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}],"status":"rejected","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason","code":"0003","display":"Patient requested release"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"fulfill","display":"Fulfill the focal request"}]},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"focus":{"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-21T14:30:00+00:00","requester":{"reference":"#requester"},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"33633005","display":"Prescription of drug"}]}}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care return request.","value":{"resourceType":"Task","id":"ee1b55f8-113c-4725-99a3-25fbad366dd6","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":6},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Ms Lottie Maifeld"},"organization":{"reference":"#organization"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}],"status":"rejected","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason","code":"0003","display":"Patient requested release"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"fulfill","display":"Fulfill the focal request"}]},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"focus":{"identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-21T14:30:00+00:00","requester":{"reference":"#requester"},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"33633005","display":"Prescription of drug"}]}}}}}}},"responses":{"200":{"description":"Action completed successfully.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care return request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care return request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care return request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code                 | Description                                                                                                                 |\n|-------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| 400         | INVALID_STATE_TRANSITION   | Invalid State Transition for Prescription.                                                                                  |\n| 400         | PRESCRIPTION_NOT_FOUND     | Prescription not found.                                                                                                     |\n| 400         | INVALID_MESSAGE            | Invalid Message.                                                                                                            |\n| 400         | UNABLE_TO_PROCESS_MESSAGE  | Unable to process message. Information missing or invalid.                                                                  |\n| 400         | MAX_REPEAT_MISMATCH        | Mismatch in authorised repeat counts.                                                                                       |\n","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"example":{"description":"An error response to a return request.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"code":"not-found","severity":"error","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode","code":"RESOURCE_NOT_FOUND","display":"Resource not found"}]}}]}}}}}}}}},"/FHIR/R4/$process-message#dispense-notification":{"post":{"operationId":"send-dispense-notification-message","summary":"Mark a prescription as dispensed - Dispensing","description":"## Overview\n### Dispense notification\nUse this endpoint to send a dispense notification to EPS.\n\nThe effect of calling this endpoint depends on the type of the message, which is determined by the `MessageHeader` resource.\nTo mark a prescription as partially or fully dispensed, send a [dispense-notification message](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/MessageDefinition-duplicate-2/dispense-notification).\n\nNote that the `#dispense-notification` in the URL has been added to distinguish this from the other operations which\ncan be performed using the [`$process-message` endpoint](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/OperationDefinition/process-message). It is not required in requests to the API.\n\n### Amend dispense notification\nThe same endpoint can be used to amend a previous dispense notification. The same message structure is used with the addition of a `replacementOf` extension in the MessageHeader,\nreferencing the identifier of the previous dispense notification to be amended. Only the most recent dispense notification can be amended. To amend other dispense notifications please use the Withdraw endpoint, to withdraw all dispense notifications issued after the amend target, and then amend if necessary.\n\nMore information can be found on the fhir [documentation](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/Profiles/NHSDigital-MessageHeader).\n","tags":["dispensing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","description":"The dispense notification, amendment to a previous dispense notification, expressed as a [dispense-notification FHIR message](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/MessageDefinition-duplicate-2/dispense-notification).\nIf amending a previous dispense notification, include the `replacementOf` extension.\n","required":["resourceType","entry","type"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Bundle"]},"id":{"type":"string","description":"ID for the Bundle.","example":"b240434e-cb85-40bb-899c-1c61410c93a7"},"timestamp":{"type":"string","format":"date-time","example":"2022-11-27T11:45:00+00:00"},"identifier":{"type":"object","description":"The unique ID of the dispense notification.","properties":{"system":{"type":"string","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","example":"b240434e-cb85-40bb-899c-1c61410c93a7"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","items":{"type":"object","properties":{"fullUrl":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"oneOf":[{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"extensions":{"type":"array","items":{"type":"object","description":"A reference to the previous dispense notification, where an amended dispense notification is being sent.","properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","example":"50101420-789b-4a3d-a4fb-4d3d0af76a64"}}}}}},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"Code for the message event.","enum":["dispense-notification"]},"display":{"type":"string","description":"Display value accompanying the code for the message event.","enum":["Dispense Notification"]}}},"sender":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}},"reason":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/message-reason-prescription"]},"code":{"type":"string","enum":["notification"]},"display":{"type":"string","enum":["Notification"]}}}}}},"response":{"type":"object","description":"A reference to the release response that released the prescription being dispensed.","properties":{"identifier":{"type":"string","example":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"},"code":{"type":"string","example":"ok"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"type":"object","description":"An entity representing the original prescription in the context of a dispense notification.","required":["medicationCodeableConcept","subject"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MedicationDispense"]},"contained":{"type":"array","items":{"oneOf":[{"type":"object","required":["identifier","practitioner","organization","code","telecom"],"description":"Role-specific details of the dispenser.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"a8c85454-f8cb-498d-9629-78e2cb5fa38b"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"Role-specific identifiers for the dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},"NHS BSA Spurious Code":{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}}}},"code":{"type":"array","description":"The SDS job role code for a given dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"practitioner":{"type":"object","description":"Professional identifiers for the dispenser.","properties":{"identifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Mr Peter Potion"}}},"organization":{"type":"object","description":"A reference to the dispensing organisation.","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}},{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A line item on a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"id":{"type":"string","example":"f6741534-773e-4e26-9eec-c868f61898b3"},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation"]},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","enum":["dispenseStatus"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"]},"code":{"type":"string","format":"date","example":"0008"},"display":{"type":"string","example":"Item with dispenser"}}}}},{"type":"object","description":"Only for eRD prescriptions.\nThe date the prescription was previously released from Spine.\n","properties":{"url":{"type":"string","enum":["dateLastDispensed"]},"valueDate":{"type":"string","format":"date-time","example":"2023-03-15"}}}]}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","format":"dateTime","description":"A date value","example":"2024-11-30"}}},{"type":"object","description":"numberOfPrescriptionsIssued","properties":{"url":{"type":"string","description":"The current issue of the repeat or eRD prescription that is being released.","enum":["numberOfPrescriptionsIssued"]},"valueUnsignedInt":{"type":"integer","example":"1"}}}]}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object.\nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication prescribed to the patient, represented as a VMP or AMP concept from the dm+d.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"The patient the prescription is for.","properties":{"identifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"type":"string","example":"9449304130"}}},"display":{"type":"string","example":"Ms Marisa Stacey Twitchett"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription.","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n","example":5},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of the drug prescribed to the patient.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}},"basedOn":{"type":"array","description":"For eRD and repeat prescriptions only. \nThe current issue and the total number of issues that a prescription is valid for.\n","items":{"type":"object","properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","properties":{"url":{"type":"string","description":"extension URL for `EPS-RepeatInformation`."},"extension":{"type":"array","description":"array containing the current issue and total number of issues that the prescription is valid for.","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The current issue of the prescription. \nThis value will be decremented by 1.\nFor example, if the current issue is the first issue, then the `numberOfRepeatsIssued` value will be 0.\n","enum":["numberOfRepeatsIssued"]},"valueInteger":{"type":"integer","example":0}}},{"type":"object","properties":{"url":{"type":"string","description":"The total number of issues the prescription is valid for. \nThis value will be decremented by 1. \nFor example, if a prescription is valid for 6 issues, then the `numberOfRepeatsAllowed` value will be 5.\n","enum":["numberOfRepeatsAllowed"]},"valueInteger":{"type":"integer","example":5}}}]}}}}}}}}}}]}},"extension":{"type":"array","description":"FHIR extension array.","items":{"anyOf":[{"type":"object","description":"The intended status of the prescription.","properties":{"url":{"type":"string","description":"Codesystem URL for the prescription status extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the prescription status.","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status"]},"code":{"type":"string","description":"The prescription status code.","enum":["0003","0006","0007"]},"display":{"type":"string","description":"A human readable representation of the prescription status code.","enum":["With Dispenser - Active","Dispensed","Not Dispensed"]}}}}},{"type":"object","description":"The reason why a prescription has not been dispensed at the prescription level. This extension is used when the EPS-TaskBusinessStatus is \"0007 - Not Dispensed\".","properties":{"url":{"type":"string","description":"Codesystem URL for the prescription-level non-dispensing reason extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionNonDispensingReason"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the non-dispensing reason.","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason"]},"code":{"type":"string","description":"The prescription-level non-dispensing reason code.","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"]},"display":{"type":"string","description":"A human readable representation of the prescription-level non-dispensing reason code.","enum":["Not required as instructed by the patient","Clinically unsuitable","Owings note issued to patient","Prescription cancellation","Prescription cancellation due to death","Illegal NHS prescription","Prescribed out of scope item","Item or prescription expired","Not allowed on FP10","Patient did not collect medication","Patient purchased medication over the counter"]}}}}}]}},"identifier":{"type":"array","description":"Unique identifier for this record of dispensing against the line item.","items":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the unique identifier.","enum":["https://fhir.nhs.uk/Id/prescription-dispense-item-number"]},"value":{"type":"string","description":"Unique identifier.","example":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}}}},"status":{"type":"string","description":"The status of the individual medication item.\nWe do not use this field but it is required by the FHIR standard and so should be hard coded to 'in-progress'.\n","enum":["in-progress"]},"statusReasonCodeableConcept":{"type":"object","description":"Where a medication item is not dispensed, the reason it was not dispensed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"Status reason codesystem URL.","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason"]},"code":{"type":"string","description":"Status reason code representing why the medication was not dispensed.","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"]},"display":{"type":"string","description":"Human readable representation of the code.","enum":["Not required as instructed by the patient","Clinically unsuitable","Owings note issued to patient","Prescription cancellation","Prescription cancellation due to death","Illegal NHS prescription","Prescribed out of scope item","Item or prescription expired","Not allowed on FP10","Patient did not collect medication","Patient purchased medication over the counter"]}}}}}},"medicationCodeableConcept":{"type":"object","description":"The actual drug dispensed to the patient.\nThis must be represented as a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"39732311000001104"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Amoxicillin 250mg capsules"}}}}}},"subject":{"type":"object","description":"The patient that the medication was dispensed (or not dispensed) to.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Dispense Notification.","example":"urn:uuid:535785a4-6882-41a8-9a18-ab52223339db"},"identifier":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of this identifier.","enum":["official","old","secondary","temp","usual"]},"system":{"type":"string","description":"Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.","example":"https://fhir.nhs.uk/Id/nhs-number"},"value":{"description":"The patient's NHS number.","type":"string","example":"9449304130"}}},"display":{"type":"string","example":"Ms Marisa Stacey Twitchett"}}},"performer":{"type":"array","description":"Array containing a reference to the contained PractitionerRole resource, representing the dispenser who sent the dispense notification.","items":{"type":"object","properties":{"actor":{"type":"object","properties":{"reference":{"type":"string","example":"f6741534-773e-4e26-9eec-c868f61898b3"}}}}}},"authorizingPrescription":{"type":"array","description":"A reference to the contained MedicationRequest resource representing the prescription that the dispense notification is being sent against.","items":{"type":"object","properties":{"reference":{"type":"string","description":"Literal reference, relative, internal or absolute URL.","example":"f6741534-773e-4e26-9eec-c868f61898b3"}}}},"type":{"type":"object","properties":{"coding":{"type":"array","description":"The intended status of the prescription line item as a result of the dispense notification.","items":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"]},"code":{"type":"string","example":"0001"},"display":{"type":"string","example":"Item fully dispensed"}}}}}},"quantity":{"type":"object","description":"The amount of medication that has been dispensed. Includes unit of measure.","properties":{"value":{"type":"number","description":"The value of the measured amount. The value includes an implicit precision in the presentation of the value.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"A human-readable form of the unit.","example":"tablet"},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"A computer processable form of the unit in some unit representation system.","example":"732936001"}}},"whenHandedOver":{"type":"string","format":"date-time","description":"The time at which the medication was dispensed (or not dispensed) to the patient.","example":"2023-04-11T10:11:12+00:00"},"dosageInstruction":{"type":"array","description":"Instructions about how the drug should be administered, provided by the dispenser.\nThese are often supplementary to the dosage instructions on the original prescription.\nFor example, the dispenser may provide crucial information about drug interactions within the supply instructions,\ne.g. \"do not consume alcohol when taking this <AMPP concept> medication.\"\nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}}}},{"type":"object","required":["name","address","telecom"],"description":"Details of the dispensing organisation.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"b350545d-dc96-61cd-923f-2c71521c64a8"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Organization"]},"extension":{"type":"array","description":"a FHIR extension array.","items":{"type":"object","required":["url","extension"],"description":"Extension that contains information regarding ODS Organisation Relationships.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","required":["url","valueIdentifier"],"description":"Used to identify the reimbursement authority that a notification needs to be sent to. \nFor England, this will be NHS Business Services Authority - T1450. For Wales, this will be NHS Wales Shared Services Partnership - RQFZ1.\n","properties":{"url":{"type":"string","enum":["reimbursementAuthority"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","example":"T1450"}}}}}}}}},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","minItems":1,"description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"active":{"type":"boolean"},"type":{"type":"array","items":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"]},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}]}}}}}},"examples":{"acute-primary-01":{"summary":"Acute 01","description":"A valid acute, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"b240434e-cb85-40bb-899c-1c61410c93a7","timestamp":"2022-11-27T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29"},{"reference":"urn:uuid:06167339-9337-d030-0366-514a6a46da17"},{"reference":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39"},{"reference":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}]}},{"fullUrl":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:06167339-9337-d030-0366-514a6a46da17","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"6318367c-c343-4a65-95de-69f712edfc39"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0004","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"completed","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"acute-primary-02":{"summary":"Acute 02","description":"A valid acute, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"37d9a3c5-29f4-49f3-ae74-502295a1cbdc","timestamp":"2022-11-28T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:0b0683df-408e-409b-a3eb-2d8f2d6b0561"},{"reference":"urn:uuid:2a1cc52f-f130-40e0-b6f0-4ccf2d9aed37"},{"reference":"urn:uuid:496f4a02-a845-4f19-934e-ae1a7e12a193"},{"reference":"urn:uuid:213a4581-99c8-4ddf-a43a-3de14f8c4372"}]}},{"fullUrl":"urn:uuid:0b0683df-408e-409b-a3eb-2d8f2d6b0561","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"0b0683df-408e-409b-a3eb-2d8f2d6b0561"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2a1cc52f-f130-40e0-b6f0-4ccf2d9aed37","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"2a1cc52f-f130-40e0-b6f0-4ccf2d9aed37"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:496f4a02-a845-4f19-934e-ae1a7e12a193","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"496f4a02-a845-4f19-934e-ae1a7e12a193"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0003","display":"Item dispensed - partial"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:213a4581-99c8-4ddf-a43a-3de14f8c4372","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"213a4581-99c8-4ddf-a43a-3de14f8c4372"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"acute-primary-03":{"summary":"Acute 03","description":"A valid acute, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"a14d4fc1-82a2-4a82-aae2-50e212e7b907","timestamp":"2022-11-29T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:883f3d6d-af18-4271-97f7-66183d929824"},{"reference":"urn:uuid:bacaf499-3e5e-44d0-8679-47994ac85cc0"},{"reference":"urn:uuid:95c42b8b-a13d-4227-bce6-f31dad456eda"},{"reference":"urn:uuid:52499a57-4f3d-49c7-b46f-9423d545288c"}]}},{"fullUrl":"urn:uuid:883f3d6d-af18-4271-97f7-66183d929824","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"883f3d6d-af18-4271-97f7-66183d929824"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:bacaf499-3e5e-44d0-8679-47994ac85cc0","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"bacaf499-3e5e-44d0-8679-47994ac85cc0"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:95c42b8b-a13d-4227-bce6-f31dad456eda","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"95c42b8b-a13d-4227-bce6-f31dad456eda"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"381511000001101","display":"Sudafed Decongestant 60mg tablets (McNeil Products Ltd)"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:52499a57-4f3d-49c7-b46f-9423d545288c","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"completed","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"213a4581-99c8-4ddf-a43a-3de14f8c4372"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"acute-primary-04":{"summary":"Acute 04","description":"A valid acute, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"a14d4fc1-82a2-4a82-aae2-50e212e7b907","timestamp":"2022-11-29T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a14d4fc1-82a2-4a82-aae2-50e212e7b907"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:883f3d6d-af18-4271-97f7-66183d929824"},{"reference":"urn:uuid:bacaf499-3e5e-44d0-8679-47994ac85cc0"},{"reference":"urn:uuid:95c42b8b-a13d-4227-bce6-f31dad456eda"},{"reference":"urn:uuid:52499a57-4f3d-49c7-b46f-9423d545288c"}]}},{"fullUrl":"urn:uuid:883f3d6d-af18-4271-97f7-66183d929824","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"883f3d6d-af18-4271-97f7-66183d929824"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:bacaf499-3e5e-44d0-8679-47994ac85cc0","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"bacaf499-3e5e-44d0-8679-47994ac85cc0"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:95c42b8b-a13d-4227-bce6-f31dad456eda","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"95c42b8b-a13d-4227-bce6-f31dad456eda"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"5417311000001105","display":"Sudafed Non-Drowsy Decongestant 60mg tablets (Waymade Healthcare Plc)"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:52499a57-4f3d-49c7-b46f-9423d545288c","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0006","display":"Dispensed"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"213a4581-99c8-4ddf-a43a-3de14f8c4372"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item fully dispensed"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"15 tablets. One tablet to be taken three times a day","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"acute-primary-05":{"summary":"Acute 05","description":"A valid acute, primary care dispense notification request not dispensed.","value":{"resourceType":"Bundle","id":"166f1103-3r67-73dw-7364-s395c4itv284","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a22ad970-417c-4b0d-9c18-19a54761b478"},"type":"message","entry":[{"fullUrl":"urn:uuid:be807dac-9dcf-45cf-91d6-70d9d58dcf34","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"},"display":"NHS BUSINESS SERVICES AUTHORITY"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNCEL"},"display":"YORKSHIRE HOMECARE LIMITED"},"source":{"name":"YORKSHIRE HOMECARE LIMITED","endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNCEL"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"999f9999-9999-9999-9ff9-f9fff9999999","code":"ok"},"focus":[{"reference":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29"}]}},{"fullUrl":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"3415870201"},"display":"Jackie Clark"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"groupIdentifier":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"a5b9dc81-ccf4-4dab-b887-3d88e557febb"}}],"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"A0548B-A99968-451485"},"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"13892511000001100","display":"Amlodipine 5mg/5ml oral solution"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"Once daily","timing":{"repeat":{"frequency":5,"period":1,"periodUnit":"d","boundsDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"}}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]},"doseAndRate":[{"doseQuantity":{"value":5,"unit":"milligram","system":"http://unitsofmeasure.org","code":"mg"}}]}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNCEL"}},"quantity":{"value":5,"unit":"ml","system":"http://snomed.info/sct","code":"385024007"}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0007","display":"Not Dispensed"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionNonDispensingReason","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0008","display":"Item or prescription expired"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"13892511000001100","display":"Amlodipine 5mg/5ml oral solution"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304106"},"display":"MR ZACKERY NICODEMUS LEGASSICK"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":5,"unit":"ml","system":"http://snomed.info/sct","code":"385024007"},"whenHandedOver":"2021-05-07T14:47:29+00:00","dosageInstruction":[{"text":"80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral-  daily at 8am"}]}},{"fullUrl":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a28","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"3415870201"},"display":"Jackie Clark"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab7"}],"groupIdentifier":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"a5b9dc81-ccf4-4dab-b887-3d88e557febb"}}],"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"A0548B-A99968-451485"},"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"317972000","display":"Furosemide 40mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral-  daily at 8am","timing":{"repeat":{"frequency":5,"period":1,"periodUnit":"d","boundsDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"}}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNCEL"}},"quantity":{"value":28,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0007","display":"Not Dispensed"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionNonDispensingReason","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0004","display":"Prescription cancellation"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab7"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"317972000","display":"Furosemide 40mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304106"},"display":"MR ZACKERY NICODEMUS LEGASSICK"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":28,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"whenHandedOver":"2021-05-07T14:47:29+00:00","dosageInstruction":[{"text":"80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet - oral-  daily at 8am"}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"b240434e-cb85-40bb-899c-1c61410c93a7","timestamp":"2022-11-27T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29"},{"reference":"urn:uuid:06167339-9337-d030-0366-514a6a46da17"},{"reference":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39"},{"reference":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}]}},{"fullUrl":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:06167339-9337-d030-0366-514a6a46da17","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"6318367c-c343-4a65-95de-69f712edfc39"}],"status":"on-hold","statusReasonCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0003","display":"Owings note issued to patient"}]},"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0004","display":"Item not dispensed owing"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}],"status":"cancelled","statusReasonCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0004","display":"Prescription cancellation"}]},"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care dispense notification request.","value":{"resourceType":"Bundle","id":"b240434e-cb85-40bb-899c-1c61410c93a7","timestamp":"2022-11-27T11:45:00+00:00","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"b240434e-cb85-40bb-899c-1c61410c93a7"},"type":"message","entry":[{"fullUrl":"urn:uuid:e9a71955-53ba-b15a-d4b6-bea99d5017b3","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"dispense-notification","display":"Dispense Notification"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/VNE51"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"notification","display":"Notification"}]},"response":{"identifier":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8","code":"ok"},"focus":[{"reference":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29"},{"reference":"urn:uuid:06167339-9337-d030-0366-514a6a46da17"},{"reference":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39"},{"reference":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}]}},{"fullUrl":"urn:uuid:4509b70d-d8b8-ea03-1105-64557cb54a29","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m1","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"reflex-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m1"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:06167339-9337-d030-0366-514a6a46da17","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m2","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"reflex-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}],"status":"completed","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m2"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0001","display":"Item fully dispensed"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:6318367c-c343-4a65-95de-69f712edfc39","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m3","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0008","display":"Item with dispenser"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"reflex-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"6318367c-c343-4a65-95de-69f712edfc39"}],"status":"on-hold","statusReasonCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0003","display":"Owings note issued to patient"}]},"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m3"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0004","display":"Item not dispensed owing"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:9a0aa5fd-8865-42f5-ad67-6c83d0944ee0","resource":{"resourceType":"MedicationDispense","contained":[{"resourceType":"PractitionerRole","id":"performer","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"741555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"},"telecom":[{"system":"phone","use":"work","value":"0532567890"}]},{"resourceType":"MedicationRequest","id":"m4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation","extension":[{"url":"dispenseStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"reflex-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"requester":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","code":"0003","display":"With Dispenser - Active"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"9a0aa5fd-8865-42f5-ad67-6c83d0944ee0"}],"status":"cancelled","statusReasonCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason","code":"0004","display":"Prescription cancellation"}]},"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"type":"Patient","identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"},"display":"Ms Marisa Stacey Twitchett"},"performer":[{"actor":{"reference":"#performer"}}],"authorizingPrescription":[{"reference":"#m4"}],"type":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}]},"quantity":{"value":0,"unit":"tablet","system":"http://snomed.info/sct","code":"732936001"},"whenHandedOver":"2022-11-27T11:45:00+00:00","dosageInstruction":[{"text":"20 tablets. One tablet to be taken two times a day","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}]}},{"fullUrl":"urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b","resource":{"resourceType":"Organization","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships","extension":[{"url":"reimbursementAuthority","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"}}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}}]}}}}},"description":""},"responses":{"200":{"description":"Successfully submitted.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care dispense notification request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care dispense notification request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care dispense notification request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}}}}}},"4XX":{"description":"Invalid request.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"OperationOutcome":{"description":"An error response.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}}}}}}}}},"/FHIR/R4/Task#withdraw":{"post":{"operationId":"withdraw","summary":"Withdraw a dispense notification - Dispensing","description":"## Overview\nUse this endpoint to withdraw a dispense notification, for example in the case that a prescription was marked as dispensed erroneously.\n\nThe effect of calling this endpoint depends on the Task status.\nTo withdraw a dispense notification from EPS, send a Task with a status of `in-progress`.\nFor more information on how to create these messages, see [NHSDigital-Task](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/Profiles/NHSDigital-Task).\n\nNote that the `#withdraw` in the URL has been added to distinguish this from the other operations which\ncan be performed using the `Task` endpoint. It is not required in requests to the API.\n\nThis interaction is only available in the sandbox environment.\n","tags":["dispensing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","description":"The request to withdraw a dispense notification, expressed as a [Task FHIR resource](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/Profiles/NHSDigital-Task).","properties":{"resourceType":{"type":"string","enum":["Task"]},"id":{"type":"string","example":"6a2624a2-321b-470e-91a6-8ae7a065e2f0"},"contained":{"type":"array","items":{"oneOf":[{"type":"object","required":["practitioner"],"description":"The dispenser returning the prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the dispenser.","items":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}},"practitioner":{"type":"object","description":"An identifier for a Practitioner resource, for a given dispenser.","properties":{"identifier":{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},"display":{"type":"string","example":"Ms Lottie Maifeld"}}},"organization":{"type":"object","properties":{"reference":{"type":"string","example":"#urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"}}},"code":{"type":"array","description":"The SDS job role code for a given dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}},{"type":"object","required":["name","address","telecom"],"description":"Details of the dispensing organisation.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"b350545d-dc96-61cd-923f-2c71521c64a8"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Organization"]},"extension":{"type":"array","description":"a FHIR extension array.","items":{"type":"object","required":["url","extension"],"description":"Extension that contains information regarding ODS Organisation Relationships.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","required":["url","valueIdentifier"],"description":"Used to identify the reimbursement authority that a notification needs to be sent to. \nFor England, this will be NHS Business Services Authority - T1450. For Wales, this will be NHS Wales Shared Services Partnership - RQFZ1.\n","properties":{"url":{"type":"string","enum":["reimbursementAuthority"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","example":"T1450"}}}}}}}}},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","minItems":1,"description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"active":{"type":"boolean"},"type":{"type":"array","items":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"]},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}]}},"extension":{"type":"array","description":"FHIR extension array to hold Repeat Information.\nThis identifies the instance of the eRD prescription that the DN was originally submitted against.\nGiven that all eRD prescriptions have the same prescription ID,\nthe combination of Prescription ID and repeat number identifies the issue that the DN was originally submitted against.\n","items":{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The total number of issues a given prescription is authorised for.","properties":{"url":{"type":"string","enum":["numberOfRepeatsAllowed"]},"valueInteger":{"type":"integer","example":6}}},{"type":"object","description":"The current, active issue of the prescription.","properties":{"url":{"type":"string","enum":["numberOfRepeatsIssued"]},"valueInteger":{"type":"integer","example":2}}}]}}}}},"identifier":{"description":"The unique identifier for the Withdraw Request.","type":"array","items":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}},"status":{"type":"string","enum":["in-progress"]},"statusReason":{"type":"object","description":"The reason the prescription is being withdrawn, which must be coded as per the Withdraw Reason vocabulary.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason"]},"code":{"type":"string","enum":["QU","MU","DA","PA","OC","ONC"]},"display":{"type":"string","enum":["Quantity Update","Medication Updated","Dosage Amendments","Patient Detail Amendments","Other Clinical","Other Non-Clinical"]}}}}}},"intent":{"type":"string","description":"The intent of the Medication Requests being withdrawn.\nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","example":"order"},"code":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["http://hl7.org/fhir/CodeSystem/task-code"]},"code":{"type":"string","enum":["abort"]},"display":{"type":"string","enum":["Mark the focal resource as no longer active"]}}}}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"focus":{"type":"object","description":"The release response which released the DN identifier that is currently being withdrawn.","properties":{"identifier":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}}},"for":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}},"authoredOn":{"type":"string","description":"The time the dispense notification is being withdrawn from Spine","format":"date-time","example":"2020-12-21T17:03:20-00:00"},"owner":{"type":"object","description":"Who is responsible for actioning the Withdraw request.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"requester":{"type":"object","description":"Reference object to identify the author of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"reasonCode":{"type":"object","description":"The reason for the task, should only be included if there is no focus or differs from the reason indicated in the focus.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["http://snomed.info/sct"]},"code":{"type":"string","enum":["373784005","33633005"]},"display":{"type":"string","enum":["Dispensing medication","Prescription of drug"]}}}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care withdraw request.","value":{"resourceType":"Task","id":"6a2624a2-321b-470e-91a6-8ae7a065e2f0","contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mrs Anna Kanfeld"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"}}}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"5AC84C11-DB8B-44DA-8FCF-8980B3D13596"}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"status":"in-progress","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason","code":"MU","display":"Medication Update"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"abort","display":"Mark the focal resource as no longer active"}]},"focus":{"type":"Bundle","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a14d4fc1-82a2-4a82-aae2-50e212e7b907"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-29T11:45:00+00:00","requester":{"reference":"#requester"},"owner":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"373784005","display":"Dispensing medication"}]}}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care withdraw request.","value":{"resourceType":"Task","id":"6a2624a2-321b-470e-91a6-8ae7a065e2f0","contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mrs Anna Kanfeld"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription","extension":[{"url":"courseOfTherapyType","valueCoding":{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Acute"}}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":6},{"url":"numberOfRepeatsIssued","valueUnsignedInt":2}]}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"5AC84C11-DB8B-44DA-8FCF-8980B3D13596"}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"status":"in-progress","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason","code":"MU","display":"Medication Update"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"abort","display":"Mark the focal resource as no longer active"}]},"focus":{"type":"Bundle","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a14d4fc1-82a2-4a82-aae2-50e212e7b907"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-29T11:45:00+00:00","requester":{"reference":"#requester"},"owner":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"373784005","display":"Dispensing medication"}]}}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care withdraw request.","value":{"resourceType":"Task","id":"6a2624a2-321b-470e-91a6-8ae7a065e2f0","contained":[{"resourceType":"PractitionerRole","id":"requester","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"641555508105"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mrs Anna Kanfeld"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription","extension":[{"url":"courseOfTherapyType","valueCoding":{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Acute"}}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":6},{"url":"numberOfRepeatsIssued","valueUnsignedInt":2}]}],"identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"5AC84C11-DB8B-44DA-8FCF-8980B3D13596"}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"},"status":"in-progress","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason","code":"MU","display":"Medication Update"}]},"intent":"order","code":{"coding":[{"system":"http://hl7.org/fhir/CodeSystem/task-code","code":"abort","display":"Mark the focal resource as no longer active"}]},"focus":{"type":"Bundle","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a14d4fc1-82a2-4a82-aae2-50e212e7b907"}},"for":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"authoredOn":"2022-11-29T11:45:00+00:00","requester":{"reference":"#requester"},"owner":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}},"reasonCode":{"coding":[{"system":"http://snomed.info/sct","code":"373784005","display":"Dispensing medication"}]}}}}}}},"responses":{"200":{"description":"Action completed successfully.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an  acute, primary care withdraw request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care withdraw request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care withdraw request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}}}}}},"4XX":{"description":"Invalid request.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"example":{"description":"An error response to a withdraw request.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"code":"not-found","severity":"error","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode","code":"RESOURCE_NOT_FOUND","display":"Resource not found"}]}}]}}}}}}}}},"/FHIR/R4/Claim":{"post":{"operationId":"send-dispense-claim-message","summary":"Claim for a dispensed prescription - Dispensing","description":"## Overview\n### Claim\nUse this endpoint to submit or amend a reimbursement claim for a dispensed prescription.\n","tags":["dispensing"],"parameters":[{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object","description":"The claim to be submitted or amended for reimbursement.\nIf amending a claim, include the `replacementOf` extension.\n","required":["resourceType","contained","created","status","type","use","patient","provider","priority","insurance","payee","prescription","item"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Claim"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"A reference to the previous Claim, where an amended Claim is being sent.","properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","example":"50101420-789b-4a3d-a4fb-4d3d0af76a64"}}}}}]}},"contained":{"type":"array","description":"List of resources that are pertinent to the Claim.","items":{"oneOf":[{"type":"object","required":["identifier","practitioner","organization","code","telecom"],"description":"Role-specific details of the dispenser.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"a8c85454-f8cb-498d-9629-78e2cb5fa38b"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"Role-specific identifiers for the dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},"NHS BSA Spurious Code":{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}}}},"code":{"type":"array","description":"The SDS job role code for a given dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"practitioner":{"type":"object","description":"Professional identifiers for the dispenser.","properties":{"identifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Mr Peter Potion"}}},"organization":{"type":"object","description":"A reference to the dispensing organisation.","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}},{"type":"object","required":["name","address","telecom"],"description":"Details of the dispensing organisation.","properties":{"id":{"type":"string","description":"local identifier for the resource that can be referenced by other resources within the message.","example":"b350545d-dc96-61cd-923f-2c71521c64a8"},"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Organization"]},"extension":{"type":"array","description":"a FHIR extension array.","items":{"type":"object","required":["url","extension"],"description":"Extension that contains information regarding ODS Organisation Relationships.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","required":["url","valueIdentifier"],"description":"Used to identify the reimbursement authority that a notification needs to be sent to. \nFor England, this will be NHS Business Services Authority - T1450. For Wales, this will be NHS Wales Shared Services Partnership - RQFZ1.\n","properties":{"url":{"type":"string","enum":["reimbursementAuthority"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","example":"T1450"}}}}}}}}},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","minItems":1,"description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"active":{"type":"boolean"},"type":{"type":"array","items":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"]},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}]}},"created":{"type":"string","description":"The date and time at which the Claim was submitted.","example":"2022-08-12T10:05:47.235Z"},"identifier":{"type":"array","description":"Unique identifier for the Claim.","items":{"type":"object","description":"An RFC4122 unique identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier.","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}}}},"status":{"type":"string","description":"The status of a Claim.","enum":["active"]},"type":{"type":"object","required":["coding"],"properties":{"coding":{"type":"array","items":{"type":"object","description":"The type of Claim being submitted.","properties":{"system":{"type":"string","description":"FHIR codesystem URL for the Claim type.","enum":["http://terminology.hl7.org/CodeSystem/claim-type"]},"code":{"type":"string","description":"Code for the Claim type.","enum":["pharmacy"]},"display":{"type":"string","description":"display value for the Claim type.","enum":["Pharmacy"]}}}}}},"use":{"type":"string","enum":["claim"]},"patient":{"type":"object","description":"The patient that received the medication being claimed for.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}},"provider":{"type":"object","description":"A reference to the dispenser submitting the Claim.","properties":{"reference":{"type":"string","description":"A reference to the local identifier of the contained PractitionerRole resource identifying the dispenser submitting the Claim.","example":"#b350545d-dc96-61cd-923f-2c71521c64a8"}}},"priority":{"type":"object","description":"The priority of the Claim being submitted. This must default to `normal.`","properties":{"coding":{"type":"array","description":"coding","items":{"type":"object","properties":{"system":{"type":"string","enum":["http://terminology.hl7.org/CodeSystem/processpriority"]},"code":{"type":"string","enum":["normal"]}}}}}},"insurance":{"type":"array","description":"The reimbursement authority that the Claim is being submitted to.","items":{"oneOf":[{"type":"object","required":["sequence","focal","coverage","display"],"properties":{"sequence":{"type":"string","description":"sequence","example":"1"},"focal":{"type":"string","description":"coverage","enum":[true]},"coverage":{"type":"object","description":"coverage","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the reimbursement authority ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code for the reimbursement authority.\n\nFor England, this needs to be the ODS code for the NHS BSA (T1450). \n\nFor Wales, this needs to be the ODS code for the NWSSP (RQFZ1).\n","enum":["T1450","RQFZ1"]}}}}}}}]}},"payee":{"type":"object","description":"A reference to the dispensing organisation submitting the Claim.","properties":{"type":{"type":"object","description":"The type of dispensing organisation being reimbursed as a result of the Claim.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for payee type.","enum":["http://terminology.hl7.org/CodeSystem/payeetype"]},"code":{"type":"string","description":"Code for the payee type.\n\nThis is a fixed value within England and Wales. \n","enum":["provider"]},"display":{"description":"Display value for the payee type code.\n\nThis is a fixed value within England and Wales.\n","type":"string","enum":["Provider"]}}}}}},"party":{"type":"object","properties":{"reference":{"description":"A reference to the local identifier of the contained Organization resource identifying the dispensing organisation submitting the Claim.","type":"string","example":"#b350545d-dc96-61cd-923f-2c71521c64a8"}}}}},"prescription":{"type":"object","properties":{"extension":{"type":"array","description":"The short- and long-form prescription identifiers of the prescription being claimed for.","items":{"type":"object","properties":{"url":{"description":"Codesystem URL for the short- and long-form prescription identifiers.","type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The short-form prescription identifier.","properties":{"url":{"type":"string","enum":["shortForm"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","example":"63DE8C-C81007-00001O"}}}}},{"type":"object","description":"The long-form prescription identifier.","properties":{"url":{"type":"string","enum":["UUID"]},"valueIdentifier":{"type":"object","properties":{"system":{"type":"string","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","example":"f2f0b705-b96a-6d14-e053-0100007fa7c7"}}}}}]}}}}}}},"item":{"type":"array","description":"Information about the prescription that is being claimed for.","items":{"type":"object","properties":{"extension":{"type":"array","description":"The intended status of the prescription as a result of the Claim.","items":{"oneOf":[{"type":"object","description":"The intended status of the prescription.","properties":{"url":{"type":"string","description":"Codesystem URL for the prescription status extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the prescription status.","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status"]},"code":{"type":"string","description":"The prescription status code.","enum":["0004","0005","0006","0007"]},"display":{"type":"string","description":"A human readable representation of the prescription status code.","enum":["Cancelled","Expired","Dispensed","Not Dispensed"]}}}}},{"type":"object","description":"The reason why a prescription or line item has not been dispensed.","properties":{"url":{"type":"string","description":"Codesystem URL for the non-dispensing reason extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatusReason"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the non-dispensing reason.","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status-reason"]},"code":{"type":"string","description":"The prescription status code.","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"]},"display":{"type":"string","description":"A human readable representation of the prescription status code.","enum":["Not required as instructed by the patient","Clinically unsuitable","Owings note issued to patient","Prescription cancellation","Prescription cancellation due to death","Illegal NHS prescription","Prescribed out of scope item","Item or prescription expired","Not allowed on FP10","Patient did not collect medication","Patient purchased medication over the counter"]}}}}}]}},"sequence":{"type":"string","description":"An intenger to identify a specific instance of a resource within an array.\n\nThis is a fixed value as there will always only be 1 `item` within a Claim. \n","enum":[1]},"productOrService":{"type":"object","description":"Mandatory entity identifying that this is a Claim for a prescription.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code.","enum":["16076005"]},"display":{"type":"string","description":"human-readable representation of the SNOMED code.","enum":["Prescription"]}}}}}},"programCode":{"type":"array","description":"Information about whether the patient is exempt from paying for their prescription, and whether evidence has been seen to this end.","items":{"oneOf":[{"type":"object","properties":{"coding":{"type":"array","description":"A charge exemption code denoting whether the patient is exempt from paying for their prescription.\n\nView a valid list of exemption codes [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n\nView exemption codes you might receive from the NHS BSA's [RTEC service](https://nhsconnect.github.io/prescription-exemptions/) [here](https://nhsconnect.github.io/prescription-exemptions/downloads/development/Real%20Time%20Exemption%20Checking%20Service%20-%20Client%20Functional%20Requirements%20v1.4.pdf).\n","items":{"type":"object","properties":{"code":{"type":"string","description":"The charge exemption code.","example":"0001"},"system":{"type":"string","description":"codesystem URL for the charge exemption code.","enum":["https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption"]},"display":{"type":"string","description":"Human-readable representation of the charge exemption code.","example":"Patient has paid appropriate charges"}}}}}},{"type":"object","properties":{"coding":{"type":"array","description":"A code provided to confirm that evidence has been seen to qualify a patient's exemption from paying charges for their prescription. \n\nThis code can be omitted where the patient is not exempt from paying for their prescription. \n","items":{"type":"object","properties":{"code":{"type":"string","description":"Code to denote where evidence was seen.","enum":["evidence-seen"]},"display":{"type":"string","description":"Human-readable representation of the code.","example":"Evidence seen"},"system":{"type":"string","description":"Codesystem URL to denote where evidence was seen.","enum":["https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence"]}}}}}}]}},"detail":{"type":"array","description":"Information about the medication dispensed to a patient.","items":{"type":"object","description":"Information about the medication dispensed to a patient.","properties":{"sequence":{"type":"string","description":"An intenger to identify a specific instance of a resource within an array.  \n\nEach instance of the `detail` array represents a medication item dispensed to the patient.\n\nThe value must start with 1 and be incremented per instance.\n","example":1},"extension":{"type":"array","items":{"oneOf":[{"type":"object","description":"Unique identifier to identify an instance of the `detail` array.","properties":{"url":{"type":"string","description":"Codesystem URL","enum":["https://fhir.nhs.uk/Id/claim-sequence-identifier"]},"value":{"type":"string","description":"Unique identifier","example":"959c35d2-0b21-4d72-97b1-fc158579850b"}}},{"type":"object","description":"A reference to the prescription line item against which medication was dispensed.","properties":{"url":{"type":"string","description":"Codesystem URL","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference"]},"valueReference":{"type":"object","description":"A reference to the unique identifier for the prescription line item against which medication was dispensed.","properties":{"identifier":{"type":"object","description":"The unique identifier for the prescription line item against which medication was dispensed.","properties":{"system":{"type":"string","description":"codesystem URL","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"unique identifier","example":"f2f0b705-b992-6d14-e053-0100007fa7c7"}}}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The total number of issues a given prescription is authorised for.","properties":{"url":{"type":"string","enum":["numberOfRepeatsAllowed"]},"valueInteger":{"type":"integer","example":6}}},{"type":"object","description":"The current, active issue of the prescription.","properties":{"url":{"type":"string","enum":["numberOfRepeatsIssued"]},"valueInteger":{"type":"integer","example":2}}}]}}}},{"type":"object","description":"The reason why a prescription or line item has not been dispensed.","properties":{"url":{"type":"string","description":"Codesystem URL for the non-dispensing reason extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatusReason"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the non-dispensing reason.","enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status-reason"]},"code":{"type":"string","description":"The prescription status code.","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"]},"display":{"type":"string","description":"A human readable representation of the prescription status code.","enum":["Not required as instructed by the patient","Clinically unsuitable","Owings note issued to patient","Prescription cancellation","Prescription cancellation due to death","Illegal NHS prescription","Prescribed out of scope item","Item or prescription expired","Not allowed on FP10","Patient did not collect medication","Patient purchased medication over the counter"]}}}}}]}},"productOrService":{"type":"object","description":"The medication prescribed to the patient on the original prescription.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"39720311000001101"},"display":{"type":"string","description":"A human readable representation of the medication, as defined in the dm+d.","example":"Paracetamol 500mg soluble tablets"}}}}}},"quantity":{"type":"object","description":"The quantity of the drug prescribed to the patient.","properties":{"value":{"type":"number","description":"The numeric value of the quantity prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The unit of the quantity prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}},"modifier":{"type":"array","description":"The intended status of the prescription line item as a result of the Claim.","items":{"type":"object","description":"The intended status of the prescription line item. Only one `coding` value must be provided within the `modifier` array.","properties":{"coding":{"type":"array","description":"Prescription status.","items":{"type":"object","properties":{"system":{"description":"Codesystem URL for line item status.","type":"string","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"]},"code":{"description":"A code representing the intended line item status.","type":"string","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"]},"display":{"description":"Human readable representation of the intended line item status code.","type":"string","enum":["Item fully dispensed","Item not dispensed","Item dispensed - partial","Item not dispensed owing","Item cancelled","Expired","Item to be dispensed","Item with dispenser"]}}}}}}},"programCode":{"type":"array","description":"Information about whether a patient has or has not paid for their prescription, and any endorsements that apply to the medication dispensed.","items":{"oneOf":[{"type":"object","description":"The amount a patient has paid for their medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for the prescription charge.","enum":["https://fhir.nhs.uk/CodeSystem/DM-prescription-charge"]},"code":{"type":"string","description":"Code representing the amount a patient has paid for their prescription.\n\nWhere a patient has not paid because they are exempt, use the `not-paid` code. \n\nWhere a patient has paid once, use the `paid-once` code.\n\nWhere a patient has paid twice or more, use the `paid-twice` code.\n"},"display":{"type":"string","description":"A human-readable display of the amount a patient has paid for their prescription.","enum":["Not Paid","Paid Once","Paid Twice"]}}}}}},{"type":"object","description":"Endorsements that apply to the medication dispensed. \n\nView the latest guidance on claim endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement"]},"code":{"type":"string","description":"Code representing a specific endorsement that applies to the medication dispensed. \n\nWhere no endorsements apply to the medication, the default code `NDEC` must be used.\n","default":"NDEC"},"display":{"type":"string","description":"A human-readable representation of the endorsement code. \nWhere no endorsements apply to the medication, the default display `No Dispenser Endorsement Code` must be used.\n","default":"No Dispenser Endorsement Code"}}}}}}]}},"subDetail":{"type":"array","description":"The specific medication dispensed to the patient.","items":{"type":"object","properties":{"sequence":{"type":"string","description":"An intenger to identify a specific instance of a resource within an array.  \n\nThis is a fixed value as there will always only be 1 `subDetail` within a specific instance of the `detail` array. \n","enum":[1]},"productOrService":{"type":"object","description":"The medication dispensed to the patient, represented as a VMP or AMP concept from the dm+d.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"39720311000001101"},"display":{"type":"string","description":"A human readable representation of the medication, as defined in the dm+d.","example":"Paracetamol 500mg soluble tablets"}}}}}},"quantity":{"type":"object","description":"The quantity of the medication dispensed to the patient.","properties":{"value":{"type":"number","description":"The numeric value of the quantity dispensed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The unit of the quantiy dispensed, represented using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}}}}}}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care claim request.","value":{"resourceType":"Claim","id":"a76599c5-bbdd-4581-bb4d-377b348dd1e4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"}}],"contained":[{"resourceType":"PractitionerRole","id":"provider","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"454567759542"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"created":"2022-11-30T13:30:00.000Z","identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"737dcf8d-fc7a-436d-b692-7d3c4f258083"}],"status":"active","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/claim-type","code":"pharmacy","display":"Pharmacy"}]},"use":"claim","patient":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"provider":{"reference":"#provider"},"priority":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/processpriority","code":"normal"}]},"insurance":[{"sequence":1,"focal":true,"coverage":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"},"display":"NHS BUSINESS SERVICES AUTHORITY"}}],"payee":{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/payeetype","code":"provider","display":"Provider"}]},"party":{"reference":"#organisation"}},"prescription":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier","extension":[{"url":"shortForm","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"}},{"url":"UUID","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]}],"display":"A prescription order"},"item":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"code":"0006","system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","display":"Dispensed"}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"16076005","display":"Prescription"}]},"programCode":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption","display":"Patient has paid appropriate charges"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence","code":"no-evidence-seen","display":"No Evidence Seen"}]}],"detail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"be948cf8-5db1-4c39-8f9b-c7e049d55acb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"b001a051-b597-4c8d-9ea5-7dc2a56861ea"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}}}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"3131f904-5436-4365-a23d-510d079d5efb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}}}],"sequence":3,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"BB","display":"Broken Bulk"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"496f4a02-a845-4f19-934e-ae1a7e12a193"}}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"95c42b8b-a13d-4227-bce6-f31dad456eda"}}}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"381511000001101","display":"Sudafed Decongestant 60mg tablets (McNeil Products Ltd)"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"56d2a705-784c-493b-81b6-25c977383d17"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}}}],"sequence":4,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"modifier":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"not-paid","display":"Not Paid"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care claim request.","value":{"resourceType":"Claim","id":"a76599c5-bbdd-4581-bb4d-377b348dd1e4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"}}],"contained":[{"resourceType":"PractitionerRole","id":"provider","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"454567759542"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"created":"2022-11-30T13:30:00.000Z","identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"737dcf8d-fc7a-436d-b692-7d3c4f258083"}],"status":"active","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/claim-type","code":"pharmacy","display":"Pharmacy"}]},"use":"claim","patient":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"provider":{"reference":"#provider"},"priority":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/processpriority","code":"normal"}]},"insurance":[{"sequence":1,"focal":true,"coverage":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"},"display":"NHS BUSINESS SERVICES AUTHORITY"}}],"payee":{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/payeetype","code":"provider","display":"Provider"}]},"party":{"reference":"#organisation"}},"prescription":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier","extension":[{"url":"shortForm","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"}},{"url":"UUID","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]}],"display":"A prescription order"},"item":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"code":"0006","system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","display":"Dispensed"}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"16076005","display":"Prescription"}]},"programCode":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption","display":"Patient has paid appropriate charges"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence","code":"no-evidence-seen","display":"No Evidence Seen"}]}],"detail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"be948cf8-5db1-4c39-8f9b-c7e049d55acb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"b001a051-b597-4c8d-9ea5-7dc2a56861ea"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"3131f904-5436-4365-a23d-510d079d5efb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":3,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"BB","display":"Broken Bulk"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"496f4a02-a845-4f19-934e-ae1a7e12a193"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"95c42b8b-a13d-4227-bce6-f31dad456eda"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"381511000001101","display":"Sudafed Decongestant 60mg tablets (McNeil Products Ltd)"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"56d2a705-784c-493b-81b6-25c977383d17"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":4,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"modifier":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"not-paid","display":"Not Paid"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]}]}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care claim request.","value":{"resourceType":"Claim","id":"a76599c5-bbdd-4581-bb4d-377b348dd1e4","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"}}],"contained":[{"resourceType":"PractitionerRole","id":"provider","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"454567759542"}],"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S0030:G0100:R0620"}]}],"practitioner":{"identifier":{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"7654321"},"display":"Mr Peter Potion"},"organization":{"reference":"#organisation"},"telecom":[{"system":"phone","use":"work","value":"01234567890"}]},{"resourceType":"Organization","id":"organisation","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}],"address":[{"city":"West Yorkshire","use":"work","line":["17 Austhorpe Road","Crossgates","Leeds"],"postalCode":"LS15 8BA"}],"active":true,"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"0113 3180277"}]}],"created":"2022-11-30T13:30:00.000Z","identifier":[{"system":"https://tools.ietf.org/html/rfc4122","value":"737dcf8d-fc7a-436d-b692-7d3c4f258083"}],"status":"active","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/claim-type","code":"pharmacy","display":"Pharmacy"}]},"use":"claim","patient":{"identifier":{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}},"provider":{"reference":"#provider"},"priority":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/processpriority","code":"normal"}]},"insurance":[{"sequence":1,"focal":true,"coverage":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"T1450"},"display":"NHS BUSINESS SERVICES AUTHORITY"}}],"payee":{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/payeetype","code":"provider","display":"Provider"}]},"party":{"reference":"#organisation"}},"prescription":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier","extension":[{"url":"shortForm","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z"}},{"url":"UUID","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]}],"display":"A prescription order"},"item":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus","valueCoding":{"code":"0006","system":"https://fhir.nhs.uk/CodeSystem/EPS-task-business-status","display":"Dispensed"}}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"16076005","display":"Prescription"}]},"programCode":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption","display":"Patient has paid appropriate charges"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence","code":"no-evidence-seen","display":"No Evidence Seen"}]}],"detail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"be948cf8-5db1-4c39-8f9b-c7e049d55acb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"b001a051-b597-4c8d-9ea5-7dc2a56861ea"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"06167339-9337-d030-0366-514a6a46da17"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"3131f904-5436-4365-a23d-510d079d5efb"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":3,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"modifier":[{"coding":[{"code":"0001","system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","display":"Item fully dispensed"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"paid-once","display":"Paid Once"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"BB","display":"Broken Bulk"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"subDetail":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"496f4a02-a845-4f19-934e-ae1a7e12a193"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":1,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationDispenseReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-dispense-item-number","value":"95c42b8b-a13d-4227-bce6-f31dad456eda"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":2,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"381511000001101","display":"Sudafed Decongestant 60mg tablets (McNeil Products Ltd)"}]},"quantity":{"value":15,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]},{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimSequenceIdentifier","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/claim-sequence-identifier","value":"56d2a705-784c-493b-81b6-25c977383d17"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference","valueReference":{"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5},{"url":"numberOfRepeatsIssued","valueInteger":2}]}],"sequence":4,"productOrService":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"modifier":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-type","code":"0005","display":"Item cancelled"}]}],"programCode":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/DM-prescription-charge","code":"not-paid","display":"Not Paid"}]},{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement","code":"NDEC","display":"No Dispenser Endorsement Code"}]}],"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"}}]}]}}}}},"description":""},"responses":{"200":{"description":"Successfully submitted.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care claim request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care claim request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care claim request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}}}}}},"4XX":{"description":"Invalid request.","content":{"application/fhir+json":{"schema":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"examples":{"OperationOutcome":{"description":"An error response.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}}}}}}}}}},"components":{"parameters":{"BearerAuthorization":{"in":"header","name":"Authorization","description":"An [OAuth 2.0 bearer token](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis).\n\nRequired in all environments except sandbox.\n","required":true,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},"RoleId":{"in":"header","name":"NHSD-Session-URID","description":"The user role ID (URID) for the current session. Also known as a user role profile ID (URPID).\n\nIf you are using User-restricted RESTful APIs - NHS login separate authentication and authorisation, see [determine the user's role](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation#step-9-determine-the-user-s-role) for guidance.\n\nThis field is optional.\n","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","example":"555254240100"}},"RequestID":{"in":"header","name":"X-Request-ID","required":true,"description":"A globally unique identifier (GUID) for the request. This is used to de-duplicate repeated requests and to trace the request if you contact our helpdesk.\n\nEach new HTTP request must use a different X-Request-ID even if they are related to the same prescription.\n\nMust be a universally unique identifier (UUID) (ideally version 4) formatted using numbers and lower case alphabetic characters.\n\nMirrored back in a response header.\n\nIf you re-send a failed request, use the same value in this header.\n\nRequired in all environments except sandbox.\n","schema":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},"CorrelationID":{"in":"header","name":"X-Correlation-ID","required":false,"description":"An optional ID which you can use to track transactions across multiple systems. It can have any value, but we recommend avoiding `.` characters.\n\nMirrored back in a response header.\n","schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}},"schemas":{"operation-outcome":{"type":"object","description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n","properties":{"resourceType":{"type":"string","description":"FHIR Resource Type.","enum":["OperationOutcome"],"example":"OperationOutcome"},"issue":{"type":"array","description":"List of issues that have occurred.","minItems":1,"items":{"type":"object","required":["severity","code"],"properties":{"severity":{"type":"string","enum":["fatal","error","warning","information"],"description":"Severity of the error.","example":"error"},"code":{"type":"string","description":"FHIR error code.","example":"invalid","enum":["invalid","structure","required","value","invariant","security","login","unknown","expired","forbidden","suppressed","processing","not-supported","duplicate","multiple-matches","not-found","deleted","too-long","code-invalid","extension","too-costly","business-rule","conflict","transient","lock-error","no-store","exception","timeout","incomplete","throttled","informational"]},"details":{"type":"object","description":"Internal error code.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"URI of the coding system specification.","enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"]},"code":{"type":"string","description":"Symbol in syntax defined by the system.","example":"INVALID_VALUE"},"display":{"type":"string","description":"Representation defined by the system.","example":"Provided value is invalid"}}}}}},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}}}}},"parameters-response":{"type":"object","description":"A response from the /$prepare endpoint.","properties":{"resourceType":{"type":"string","enum":["Parameters"]},"parameter":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["digest"]},"valueString":{"type":"string","example":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdv","description":"The Prescription Information that requires signing."}}},{"type":"object","properties":{"name":{"type":"string","enum":["timestamp"]},"valueString":{"type":"string","format":"date-time","example":"2021-05-07T14:47:47+00:00"}}},{"type":"object","properties":{"name":{"type":"string","enum":["algorithm"]},"valueString":{"type":"string","enum":["RS1"]}}}]}}}},"Encode-Request-Bundle":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the requester or responsible practitioner of a prescription.\nIf for a responsible practitioner, at least one of the practitionerRole, referenced practitioner,\nor referenced organization must have a telecom field. Note that PractitionerRole level\nNHS BSA spurious code will take priority over supplier practitioner identifier, if present.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"oneOf":[{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},{"type":"object","description":"An identifier if part of an organization-only responsible practitioner.\n","properties":{"identifier":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GMP number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the GMP number.","enum":["https://fhir.hl7.org.uk/Id/gmp-number"]},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}}}]},"organization":{"type":"object","description":"A reference to an Organization resource.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the requester or responsible practitioner of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}}]}}}},"Create-Request-Bundle":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The type of payload being carried within the Bundle.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the requester or responsible practitioner of a prescription.\nIf for a responsible practitioner, at least one of the practitionerRole, referenced practitioner,\nor referenced organization must have a telecom field. Note that PractitionerRole level\nNHS BSA spurious code will take priority over supplier practitioner identifier, if present.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"oneOf":[{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},{"type":"object","description":"An identifier if part of an organization-only responsible practitioner.\n","properties":{"identifier":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GMP number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the GMP number.","enum":["https://fhir.hl7.org.uk/Id/gmp-number"]},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}}}]},"organization":{"type":"object","description":"A reference to an Organization resource.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the requester or responsible practitioner of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},{"type":"object","description":"Provenance","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"A resource to contain the digital signature attached to a prescription, see [Generation of the provenance resource](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Provenance"]},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","description":"Reference object to identify the line items in a prescription that are being signed.\nA reference to each MedicationRequest resource in the Bundle must be provided.\n","items":{"type":"object","properties":{"type":{"type":"string","enum":["MedicationRequest"]},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}}},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","description":"A reference to the prescriber who signed the prescription, i.e. the requester of the prescription.\nA PractitionerRole resource within the Bundle must be referenced. \n","items":{"type":"object","properties":{"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}}}}},"signature":{"type":"array","description":"The Advanced Electronic Signature (AES) attached to a prescription.","items":{"type":"object","required":["when"],"properties":{"type":{"type":"array","description":"The type of signature attached to a prescription.","items":{"type":"object","properties":{"system":{"type":"string","description":"FHIR codesystem URN for signatures","enum":["urn:iso-astm:E1762-95:2013"]},"code":{"type":"string","enum":["1.2.840.10065.1.12.1.1"]}}}},"when":{"type":"string","format":"date-time","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","example":"2023-03-13T13:47:00+00:00"},"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle. \nThis will still be a reference to the prescriber who signed the prescription.\n","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"data":{"type":"string","description":"An advanced electronic signature, which may be generated using the Signing Service. See [this link](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","format":"byte","example":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}}}}}}}}]}}}},"Cancel-Request-Bundle":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-update"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Update"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["statusReason","resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel request is effectively an update to a prescription, expressed through a MedicationRequest resource for each line item that is being cancelled.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MedicationRequest"]},"statusReason":{"type":"object","description":"The reason the line item is being cancelled.\nThe reason must be in line with the cancellation reasons vocabulary <link>.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"codesystem URL for the cancellation reason.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason"]},"code":{"type":"string","description":"cancel reason code.","example":"0004","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009"]},"display":{"type":"string","description":"the display accompanying the cancel reason code.","example":"Clinical grounds","enum":["Prescribing error","Clinical contra-indication","Change to medication treatment regime","Clinical grounds","At the Patient's request","At the Pharmacist's request","Notification of Death","Patient deducted - other reason","Patient deducted- registered with new practice"]}}}}}},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["cancelled"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \nThis must be represented as a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a cancel request. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"The treatment type of the prescription, i.e. whether it is an acute, repeat, or eRD prescription.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital"}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"The start date of a prescription.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"For eRD prescriptions only. The end date of a prescription.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nThe duration of each issue within an eRD prescription. This must be expressed in days.\n","properties":{"value":{"type":"number","description":"The number of days each issue in an eRD prescription is valid for.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2.5},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","default":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated dispenser.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of the medication being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":"428673006"}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}}]}}}},"Cancel-Response-Bundle":{"type":"object","required":["resourceType","identifier","type","entry"],"description":"A FHIR Bundle.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"type":"string","description":"An object ID for the Bundle.","enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"]},"identifier":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for identifiers","enum":["https://tools.ietf.org/html/rfc4122"]},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"type":"string","description":"The reason why a series of resources and objects are grouped together.","enum":["message"]},"entry":{"type":"array","description":"A collection of resources contained within the Bundle.","items":{"oneOf":[{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource.","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"cancel response for a successful or unsuccessful cancel request.","properties":{"url":{"type":"string","description":"codesystem URL for cancel responses.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"]},"extension":{"type":"array","description":"FHIR extension array","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","enum":["status"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for cancel response.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"]},"code":{"type":"string","description":"cancel response code","example":["R-0001"]},"display":{"type":"string","description":"cancel response display","example":["Prescription/item was cancelled"]}}}}},{"type":"object","properties":{"url":{"type":"string","description":"URL to identify the time that the cancel response was received","enum":["statusdate"]},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}}]}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \n\nThese values should be consistent across all MedicationRequests in a Bundle.\n","properties":{"performer":{"type":"object","description":"Where a cancel response is unsuccessful due to the prescription being with a dispenser, details of the dispenser who downloaded the prescription will be provided as part of the cancel response to enable the prescriber to contact the dispenser.\n","properties":{"extension":{"type":"array","description":"Details of the dispenser who downloaded the prescription","items":{"type":"object","properties":{"url":{"type":"string","description":"codesystem URL for the dispenser.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"]},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}}},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}}}}}}}}},{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-response"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Response"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.\n\nWhere a cancel response contains details of the dispenser, details of the dispenser will also be contained within a Practitioner resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's or dispenser's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","items":{"type":"string","example":"Smith"}},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Clark"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}},{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}}]}}}},"Create-MessageHeader-Resource":{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MessageHeader"]},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order"]}}},"destination":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string","example":"https://sandbox.api.service.nhs.uk/fhir-prescribing/$post-message"},"receiver":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"type":"object","required":["display"],"properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URL.","example":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"}}},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}}},"Create-MedicationRequest-Resource":{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"type":"object","required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A MedicationRequest object is required. An EPS prescription must contain at least one and up to four MedicationRequest objects. This is equivalent to an item on a prescription.\nAny fields mentioned in the Simplifer Spec but not in this schema are permitted, but may not be preserved or acted on by the API. \nReason for medication dispense should be appended to dosageInstruction.text, as reasonCode is not made available to dispensers.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type","enum":["MedicationRequest"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}}]}},"identifier":{"type":"array","description":"The unique identifier for this line item on the prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'.\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","enum":["order","original-order","instance-order"]},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\nThis must be consistent across all MedicationRequests in a Bundle.\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"authoredOn":{"type":"string","description":"Reserved for future use and will currently be ignored. Do not use.","format":"date-time","example":"2021-05-07T14:47:29+00:00"},"requester":{"type":"object","description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"Denotes whether a prescription is an acute, a repeat, or an eRD.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital."}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"Start date of an issue; sometimes same as prescription's start date.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"End date of an issue; capped at 12 months and cannot exceed the prescription's end date.\nOverall validity of the drug.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n","properties":{"value":{"type":"integer","description":"The number of days each issue in an eRD prescription is valid for.\n","default":28},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of a medication item being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":20.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},"Create-Patient-Resource":{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},"Create-PractitionerRole-Resource":{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the requester or responsible practitioner of a prescription.\nIf for a responsible practitioner, at least one of the practitionerRole, referenced practitioner,\nor referenced organization must have a telecom field. Note that PractitionerRole level\nNHS BSA spurious code will take priority over supplier practitioner identifier, if present.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["PractitionerRole"]},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}},{"type":"object","description":"The prescriber or dispenser's spurious code.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the spurious code.","enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"]},"value":{"type":"string","description":"Spurious code.","example":"677677"}}}]}},"practitioner":{"oneOf":[{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}}},{"type":"object","description":"An identifier if part of an organization-only responsible practitioner.\n","properties":{"identifier":{"oneOf":[{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GMP number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the GMP number.","enum":["https://fhir.hl7.org.uk/Id/gmp-number"]},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}}}]},"organization":{"type":"object","description":"A reference to an Organization resource.\n","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}},"Create-Practitioner-Resource":{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the requester or responsible practitioner of a prescription.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Practitioner"]},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the DIN Number.","enum":["https://fhir.hl7.org.uk/Id/din-number"]},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","description":"The prescriber's GMC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GMC Number.","enum":["https://fhir.hl7.org.uk/Id/gmc-number"]},"value":{"type":"string","description":"GMC Number","example":"C6095103"}}},{"type":"object","description":"The prescriber's GPhC number.","properties":{"system":{"type":"string","description":"Codesystem URL for the GPhC number.","enum":["https://fhir.hl7.org.uk/Id/gphc-number"]},"value":{"type":"string","description":"GPhC number.","example":"2095103"}}},{"type":"object","description":"The prescriber or dispenser's HCPC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the HCPC number.","enum":["https://fhir.hl7.org.uk/Id/hcpc-number"]},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}}},{"type":"object","description":"The prescriber's NMC number.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the NMC number.","enum":["https://fhir.hl7.org.uk/Id/nmc-number"]},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}}}]}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Mantis"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Dr"}}}}}}}}},"Create-Organization-Resource":{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},"Create-List-Resource":{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},"Create-CommunicationRequest-Resource":{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},"Create-Location-Resource":{"type":"object","description":"Location","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For secondary care prescriptions only.\n\nWhere the prescription is a secondary care prescription, the Location resource will contain the address of the prescribing organisation.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"line":{"type":"array","description":"All lines of the address except the postal code.\n\n  Systems must apply the following formatting convention when adding or replacing addresses lines:\n  *  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n  *  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n  *  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n  *  line 4 - post town, e.g. `Leeds`\n  *  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}}}}}},"Create-Provenance-Resource":{"type":"object","description":"Provenance","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"A resource to contain the digital signature attached to a prescription, see [Generation of the provenance resource](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["Provenance"]},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","description":"Reference object to identify the line items in a prescription that are being signed.\nA reference to each MedicationRequest resource in the Bundle must be provided.\n","items":{"type":"object","properties":{"type":{"type":"string","enum":["MedicationRequest"]},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}}},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","description":"A reference to the prescriber who signed the prescription, i.e. the requester of the prescription.\nA PractitionerRole resource within the Bundle must be referenced. \n","items":{"type":"object","properties":{"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}}}}},"signature":{"type":"array","description":"The Advanced Electronic Signature (AES) attached to a prescription.","items":{"type":"object","required":["when"],"properties":{"type":{"type":"array","description":"The type of signature attached to a prescription.","items":{"type":"object","properties":{"system":{"type":"string","description":"FHIR codesystem URN for signatures","enum":["urn:iso-astm:E1762-95:2013"]},"code":{"type":"string","enum":["1.2.840.10065.1.12.1.1"]}}}},"when":{"type":"string","format":"date-time","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","example":"2023-03-13T13:47:00+00:00"},"who":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle. \nThis will still be a reference to the prescriber who signed the prescription.\n","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"data":{"type":"string","description":"An advanced electronic signature, which may be generated using the Signing Service. See [this link](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription#step-three-create-signature-block) for guidance.","format":"byte","example":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}}}}}}}},"Cancel-Request-MessageHeader-Resource":{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-update"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Update"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},"Cancel-Request-MedicationRequest-Resource":{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["statusReason","resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel request is effectively an update to a prescription, expressed through a MedicationRequest resource for each line item that is being cancelled.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","enum":["MedicationRequest"]},"statusReason":{"type":"object","description":"The reason the line item is being cancelled.\nThe reason must be in line with the cancellation reasons vocabulary <link>.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"codesystem URL for the cancellation reason.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason"]},"code":{"type":"string","description":"cancel reason code.","example":"0004","enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009"]},"display":{"type":"string","description":"the display accompanying the cancel reason code.","example":"Clinical grounds","enum":["Prescribing error","Clinical contra-indication","Change to medication treatment regime","Clinical grounds","At the Patient's request","At the Pharmacist's request","Notification of Death","Patient deducted - other reason","Patient deducted- registered with new practice"]}}}}}},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["cancelled"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original-order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"category":{"type":"array","description":"Identifies the context in which a prescription is created.\nFor example, a prescription created within primary care will be categorised as \"community.\"\nSimilarly, a prescription created within secondary care will be categorised as \"inpatient\" or \"outpatient.\"\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription category.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"]},"code":{"type":"string","description":"Code for the prescription category.","enum":["inpatient","outpatient","community","discharge"]},"display":{"type":"string","description":"Display value for the prescription category.","enum":["Inpatient","Outpatient","Community","Discharge"]}}}}}}},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \nThis must be represented as a VMP or AMP concept from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a cancel request. \nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"courseOfTherapyType":{"type":"object","description":"The treatment type of the prescription, i.e. whether it is an acute, repeat, or eRD prescription.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the prescription treatment type.","enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"]},"code":{"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n","enum":["acute","continuous","continuous-repeat-dispensing"]},"display":{"type":"string","description":"Display value for the prescription treatment type.","enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"]}}}}}},"dosageInstruction":{"type":"array","description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n","items":{"type":"object","properties":{"sequence":{"type":"integer","description":"The order of the dosage instructions.\nIndicates the order in which the dosage instructions should be applied or interpreted.\n","format":"int32","example":1},"text":{"type":"string","description":"The dosage instructions expressed as text.\nMultiple dose text strings will be concatenated into a single string within the final prescription, in the sequence that they were provided.\nInstructions with the same sequence number will be separated by \", and\"\nInstructions with different sequence numbers will be separated by \", then\"\nPlease do not use full stops or commas at the end of any instructions provided.\n","example":"4 times a day - for 4 days - Oral - Dissolved under the tongue"},"additionalInstruction":{"type":"array","description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for additional dosage instructions.","example":"417995008"},"display":{"type":"string","description":"Additional dosage instructions (qualifier value).","example":"Dissolved under the tongue"}}}}}}},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","description":"A structured expression of dose frequency.","properties":{"repeat":{"type":"object","description":"The frequency and period over which the medication should be consumed.","properties":{"boundsDuration":{"type":"object","description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}}},"frequency":{"type":"number","description":"The frequency at which the medication should be consumed within a given period.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\nE.g. \"4\" for 4 times over a given period.\n","example":4.5},"period":{"type":"integer","description":"The period over which the frequency applies.\ne.g. \"1\" for 1 day.\n","format":"int32","example":1},"periodUnit":{"type":"string","description":"The fundamental unit of the period, defined in UCUM.","example":"d"}}}}},"asNeeded":{"type":"object","description":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), \nor it indicates the precondition for taking the Medication (CodeableConcept).\n","properties":{"asNeededBoolean":{"type":"boolean","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe absence of asNeededBoolean is equivalent to where asNeededBoolean has a value of false.\n","enum":[true]},"asNeededCodeableConcept":{"type":"object","description":"The asNeeded structure can be used to define a simple \"as required\" instructions.\nThe asNeededCodeableConcept option is used to bound the dosage instruction to a coded term.\n","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},"site":{"type":"object","description":"Body site to administer to.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","example":"Anterior abdominal wall structure"}}}}}},"route":{"type":"object","description":"A structured expression of how the medication should be consumed.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"version":{"type":"string","description":"Version of the system - if relevant."},"code":{"type":"string","description":"Valid SNOMED code identifying where the medication first enters the body.","example":"59380008"},"display":{"type":"string","description":"Representation defined by the system.","example":"Anterior abdominal wall structure"},"userSelected":{"type":"boolean","description":"Indicates that this coding was chosen by a user directly \n- e.g. off a pick list of available items (codes or displays).\n","enum":[true]}}}}}},"method":{"type":"object","description":"Technique for administering medication.","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"type":"string","description":"SNOMED codesystem URL","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}}},"doseAndRate":{"type":"array","description":"Amount of medication administered.","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","description":"The kind of dose or rate specified, for example, ordered or calculated.","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"Valid SNOMED code identifying how the medication should be consumed.","example":"26643006"},"display":{"type":"string","description":"Human readable name for the method of consumption.","example":"Oral"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}}}}},{"type":"object","properties":{"dose":{"type":"array","description":"Amount of medication per dose.","items":{"type":"object","properties":{"doseRange":{"type":"object","description":"A dose that may be in a given low / high range.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, \nto a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something \nlike a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"http://unitsofmeasure.org"},"system":{"type":"string","example":"mg"},"code":{"type":"string","example":"mg"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.               \n","example":30},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}}}},"doseQuantity":{"type":"object","description":"The amount of medication per dose, as a simple coded quantity.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}}}}}},"rate":{"type":"array","description":"Amount of medication per unit of time.","items":{"type":"object","properties":{"rateRatio":{"type":"object","description":"Where the rate is expressed as coded numerator and denominator values.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliter"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"rateRange":{"type":"object","description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used.","properties":{"low":{"type":"object","description":"The low limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":1},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}},"high":{"type":"object","description":"The high limit. The boundary is inclusive.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}}}}},"rateQuantity":{"type":"object","description":"Where the unit of measure applicable to a rate is defined within UCUM which is mathematically equivalent\nto defining the rate using the more complex rateRatio structure.\n","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":30},"unit":{"type":"string","example":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}}}}}}}}]}},"maxDosePerPeriod":{"type":"object","description":"Upper limit on medication per unit of time.","properties":{"numerator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":7.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"denominator":{"type":"object","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":24.5},"unit":{"type":"string","example":"hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"h"}}}}},"maxDosePerAdministration":{"type":"object","description":"Used to define a maximum dose for a single administration.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}}},"maxDosePerLifetime":{"type":"object","description":"Used to define the maximum cumulative dose over the lifetime of a patient.","properties":{"value":{"type":"number","description":"A rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}}}}}},"note":{"type":"array","description":"Specific additional instructions for a prescription line item, e.g. a change in dosage.","items":{"type":"object","properties":{"text":{"type":"string","description":"Specific additional instructions for a prescription line item.","example":"Dosage has been decreased on advice from the hospital"}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \nThese values should be consistent across all MedicationRequests in a Bundle.\n","required":["extension","quantity"],"properties":{"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"The type of nominated dispensing site a prescription is going to.","properties":{"url":{"type":"string","description":"Extension URL for DM-PerformerSiteType.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"Codesystem URL to hold the nomination.","enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"]},"code":{"type":"string","description":"The nomination applied to a prescription.\nThis could either be a nomination for:\n  * A dispensing contractor (P1)\n  * A dispensing appliance contractor (P2)\n  * A dispensing doctor (P3)\nOr a non-nominated prescription (0004).\n","enum":["P1","P2","P3","0004"],"example":"P1"}}}}}},"numberOfRepeatsAllowed":{"type":"integer","description":"For eRD prescriptions only.\nThe number of repeats a line item is issued for, in addition to the existing issue. E.g. if a prescription is valid for 6 issues in total, the value entered must be 5.\n"},"validityPeriod":{"type":"object","description":"The start and end dates of a prescription.","properties":{"start":{"type":"string","description":"The start date of a prescription.","format":"date","example":"2022-10-21"},"end":{"type":"string","description":"For eRD prescriptions only. The end date of a prescription.\nMust be in date-time format with the time set to 23:59:59 on the last valid day of the prescription, including for single-day prescriptions. \nExample: \"2022-10-21T23:59:59Z\"\n","format":"date-time","example":"2022-10-21T23:59:59Z"}}},"expectedSupplyDuration":{"type":"object","description":"For eRD prescriptions only. \nThe duration of each issue within an eRD prescription. This must be expressed in days.\n","properties":{"value":{"type":"number","description":"The number of days each issue in an eRD prescription is valid for.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":2.5},"unit":{"type":"string","description":"The UCUM unit of measure display for days.","default":"day"},"system":{"type":"string","description":"Codesystem URL for UCUM.","enum":["http://unitsofmeasure.org"]},"code":{"type":"string","description":"The UCUM unit of measure code for days.","default":"d"}}},"performer":{"type":"object","description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated dispenser.\n","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"quantity":{"type":"object","description":"The quantity of the medication being prescribed.","properties":{"value":{"type":"number","description":"The numeric value of the quantity being prescribed.\nA rational number with implicit precision, to a maximum of 2 decimal places with trailing zeroes removed.\nDo not use an IEEE type floating point type, instead use something like a true decimal, with inbuilt precision.\n","example":60.5},"unit":{"type":"string","description":"The units in which the quantity is prescribed, defined using dm+d units of measure.","example":"tablet"},"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":"428673006"}}}}},"substitution":{"type":"object","description":"This is a boolean value that should always default to false because EPS does not support substitutions.","properties":{"allowedBoolean":{"type":"boolean","enum":[false]}}}}}}},"Cancel-Request-Patient-Resource":{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},"Cancel-Request-PractitionerRole-Resource":{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},"Cancel-Request-Practitioner-Resource":{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}}},"name":{"type":"array","description":"The prescriber's name.","items":{"type":"object","required":["family"],"properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}},"Cancel-Request-Organization-Resource":{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},"Cancel-Request-List-Resource":{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},"Cancel-Request-CommunicationRequest-Resource":{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},"Cancel-Request-Location-Resource":{"type":"object","description":"Location","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For secondary care prescriptions only.\n\nWhere the prescription is a secondary care prescription, the Location resource will contain the address of the prescribing organisation.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"line":{"type":"array","description":"All lines of the address except the postal code.\n\n  Systems must apply the following formatting convention when adding or replacing addresses lines:\n  *  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n  *  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n  *  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n  *  line 4 - post town, e.g. `Leeds`\n  *  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}}}}}},"Cancel-Response-MessageHeader-Resource":{"type":"object","description":"MessageHeader","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","eventCoding","source"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","description":"The type of message event being generated.","properties":{"system":{"type":"string","description":"codesystem URL for message events.","enum":["https://fhir.nhs.uk/CodeSystem/message-event"]},"code":{"type":"string","description":"code for the message event.","enum":["prescription-order-response"]},"display":{"type":"string","description":"display value accompanying the code for the message event.","enum":["Prescription Order Response"]}}},"source":{"type":"object","description":"The organisation originating the message.","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}}}}}}},"Cancel-Response-MedicationRequest-Resource":{"type":"object","description":"MedicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource.","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"cancel response for a successful or unsuccessful cancel request.","properties":{"url":{"type":"string","description":"codesystem URL for cancel responses.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"]},"extension":{"type":"array","description":"FHIR extension array","items":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","enum":["status"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem URL for cancel response.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"]},"code":{"type":"string","description":"cancel response code","example":["R-0001"]},"display":{"type":"string","description":"cancel response display","example":["Prescription/item was cancelled"]}}}}},{"type":"object","properties":{"url":{"type":"string","description":"URL to identify the time that the cancel response was received","enum":["statusdate"]},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]}}}},{"type":"object","description":"Extension that contains information pertinent to repeat and eRD prescriptions.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"type":"object","description":"authorisationExpiryDate","properties":{"url":{"type":"string","description":"The review date of the prescription.\nThis is a required field for repeat prescribing prescriptions, and captures the date at which the prescriber must review the repeat medication that a patient is on.\n","enum":["authorisationExpiryDate"]},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}}}}}},{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n\nFor the full list of prescription types, and what they mean, please refer to the following [guidance](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf) from the BSA.\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"]},"valueCoding":{"type":"object","description":"The prescription type, as defined by the BSA, which helps identify the prescribing setting in which a prescription is created to enable reimbursement.\n","properties":{"system":{"type":"string","description":"codesystem URL for the prescription type","enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"]},"code":{"type":"string","description":"The prescription type code","example":"0101"},"display":{"type":"string","description":"The display that accompanies the prescription type code","example":"Primary Care Prescriber - Medical Prescriber"}}}}},{"type":"object","description":"Endorsements that prescribers can add to line items for special products, e.g. products on the Selected List Scheme. \n\nView the latest guidance on endorsements from the BSA [here](https://www.nhsbsa.nhs.uk/sites/default/files/2023-03/NHSBSAGuidanceforEndorsement_v8.0.pdf).\n","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"]},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for endorsements.","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"]},"code":{"type":"string","description":"The endorsement code.","enum":["ACBS","AF","CC","FS","SLS"]}}}}}}}},{"type":"object","description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription.","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"]},"valueReference":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"},"display":{"type":"string","description":"The name of the responsible practitioner.","example":"Dr. James Smith"}}}}},{"type":"object","description":"The quantity of a controlled drug, expressed in words","properties":{"url":{"type":"string","description":"URL of the extension definition.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"]},"extension":{"type":"array","description":"FHIR extension array.","items":{"oneOf":[{"type":"object","description":"object containing the quantity in words","properties":{"url":{"type":"string","description":"URL for the controlled drug quantity","enum":["quantityWords"]},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}}},{"type":"object","description":"object containing the schedule of the controlled drug","properties":{"url":{"type":"string","description":"URL for the controlled drug schedule","enum":["schedule"]},"valueCoding":{"type":"object","properties":{"system":{"type":"string","description":"codesystem to identify the controlled drug schedule","enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"]},"code":{"type":"string","description":"a code to identify the controlled drug schedule","enum":["CD1","CD2","CD3","CD4","CD5"]},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}}}]}}}}]}},"identifier":{"type":"array","description":"The unique ID for each line item on a prescription.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the line item ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"]},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}},"status":{"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n","enum":["active","cancelled","completed"]},"intent":{"type":"string","description":"The intent of a MedicationRequest object. \nFor acute prescriptions, this should be 'order'\nFor repeat and eRD prescriptions, this should be 'original order' for the first prescription issue. For subsequent issues, this should be 'instance-order'.\n","default":"order"},"medicationCodeableConcept":{"type":"object","description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"SNOMED codesystem URL.","enum":["http://snomed.info/sct"]},"code":{"type":"string","description":"SNOMED code for the medication, as defined in the dm+d.","example":"321196004"},"display":{"type":"string","description":"Human readable name for the medication.","example":"Diazepam 2mg tablets"}}}}}},"subject":{"type":"object","description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"requester":{"type":"object","description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}},"groupIdentifier":{"type":"object","required":["system","value"],"description":"An object containing the short-form and long-form Prescription ID.","properties":{"system":{"type":"string","description":"Codesystem URL for the short-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription-order-number"]},"value":{"type":"string","description":"The short-form Prescription ID. \nAn example of how to generate a short-form Prescription ID can be found in [our repo](https://github.com/NHSDigital/electronic-prescription-service-api/blob/master/packages/tool/site/client/src/fhir/generatePrescriptionIds.ts). \nIt is to be formatted as follows:\n  * The first 6 characters are a unique locally generated random number of 6 hexadecimal characters.\n  * The next 6 characters is the unique ODS code for the practice. If shorter than 6 characters then it must be zero-padded up to 6 characters from the start of the ODS code. e.g. 0A12BC  \n  * The next 5 characters are an incremental sequence number starting from 00000 to FFFFF back to zero, of 5 hexadecimal characters. If supporting multiple practices, a sequence number per practice is required.\n  * The final character is calculated on the entire ID using ISO/IEC 7064 2003 MOD 37-2 standard.\n","pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","description":"FHIR extension array containing the long-form Prescription ID.","items":{"type":"object","required":["valueIdentifier","url"],"properties":{"url":{"type":"string","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"]},"valueIdentifier":{"type":"object","description":"The long-form identifier of the prescription.","required":["value","system"],"properties":{"system":{"type":"string","description":"Codesystem URL for the long-form Prescription ID.","enum":["https://fhir.nhs.uk/Id/prescription"]},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}}}}}}}},"dispenseRequest":{"type":"object","description":"A FHIR object containing information relevant to how the prescription should be dispensed. \n\nThese values should be consistent across all MedicationRequests in a Bundle.\n","properties":{"performer":{"type":"object","description":"Where a cancel response is unsuccessful due to the prescription being with a dispenser, details of the dispenser who downloaded the prescription will be provided as part of the cancel response to enable the prescriber to contact the dispenser.\n","properties":{"extension":{"type":"array","description":"Details of the dispenser who downloaded the prescription","items":{"type":"object","properties":{"url":{"type":"string","description":"codesystem URL for the dispenser.","enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"]},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}}},"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}}}}}}}}},"Cancel-Response-Patient-Resource":{"type":"object","description":"Patient","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name","gender","birthDate","address"],"description":"The patient the prescription is for.","additionalProperties":false,"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","description":"The patient's NHS number.","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}},"name":{"type":"array","description":"The patient's name. A prescription must only contain a single name and address for the patient.","items":{"type":"object","required":["family"],"properties":{"use":{"type":"string","description":"How this name should be used.\n* usual - Known as, conventional or the one patient normally uses. A patient always has a usual name.\n","enum":["usual"],"example":"usual"},"family":{"type":"string","maxLength":35,"description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","maxItems":5,"description":"Given names, including any middle names.\n\nEach name(s) should be a separate item in the list. The first given name may include multiple names, separated by a space.\nSubsequent names must be broken down into list items. For example, the input `[Jane Marie Anne, Jo Adele]` returns `[Jane Marie Anne, Jo, Adele]`.\n","example":["Jane Marie Anne","Jo","Adele"],"items":{"type":"string","maxLength":35,"example":"Jane"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","example":["Mrs"],"items":{"type":"string","example":"Mrs"}},"suffix":{"type":"array","description":"Name suffixes and postnominals.","example":["PhD"],"items":{"type":"string","example":"PhD"}}}}},"gender":{"type":"string","description":"This is the gender that is recorded on official documents, for example a birth certificate or passport. For some people, the gender held in EPS and/or PDS might not match the gender they identify with.\n","enum":["male","female","other","unknown"],"example":"female"},"birthDate":{"type":"string","description":"The date on which the patient was born or is officially deemed to have been born.\n\nIt is a date in the format `yyyy-mm-dd`. Due to data quality issues on a small number of patients `yyyy-mm` and `yyyy` format may also be returned.\n","example":"2010-10-22","format":"date"},"address":{"type":"array","description":"The patient's address. A prescription must only contain a single name and address for the patient.","items":{"type":"object","properties":{"use":{"type":"string","description":"Purpose of this address:\n  * `home` - the home address is the patient's normal residence. Home address is also known as usual, main, registered, current or permanent address\n  * `temp` - a temporary address is an address used for a set period of time, but where the patient's home, permanent address remains unchanged\n\n  A patient should have no more than one current `temp` address.\n  However, historically this was constrained only by the integration requirements and was not enforced so theoretically more than one can exist for a patient when retrieving.\n  Where multiple instances already exist for the patient it is not expected that local systems should manage those, but should choose the most appropriate one to maintain (e.g. by examining period dates).\n\n  A `home` address is the patient's main residential address and should normally be used for all clinical and demographic purposes, including clinical and appointment correspondence.\n  However additionally, a `temp` address may be provided by a patient when there is a requirement to record an alternative location for the purposes of unbroken care.\n","enum":["home","temp"],"example":"home"},"line":{"type":"array","description":"All lines of the address except the postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n*  line 4 - post town, e.g. `Leeds`\n*  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","maxItems":5,"items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The patient's telephone number.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"]},"use":{"type":"string","description":"Location associated with communication system.","enum":["home","work","temp","mobile"],"example":"home"},"value":{"description":"The phone number.","type":"string","example":"01632960587"}}}},"generalPractitioner":{"type":"array","description":"General practice (not practitioner) with which the patient is or was registered.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}}}}}}},"Cancel-Response-Practitioner-Resource":{"type":"object","description":"Practitioner","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["resourceType","identifier","name"],"description":"Details of the author or responsible party of a cancel request.\n\nWhere a cancel response contains details of the dispenser, details of the dispenser will also be contained within a Practitioner resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","description":"An array containing the prescriber's professional codes and identifiers.","items":{"oneOf":[{"type":"object","description":"The prescriber or dispenser's SDS User Identifier.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS User Identifier.","enum":["https://fhir.nhs.uk/Id/sds-user-id"]},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}}},{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the Professional Code.","enum":["https://fhir.hl7.org.uk/Id/professional-code"]},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"name":{"type":"array","required":["family"],"description":"The prescriber's or dispenser's name.","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","items":{"type":"string","example":"Smith"}},"given":{"type":"array","description":"Given names, including any middle names.","items":{"type":"string","example":"Clark"}},"prefix":{"type":"array","description":"Name prefixes, titles, and prenominals.","items":{"type":"string","example":"Mrs"}}}}}}}}},"Cancel-Response-PractitionerRole-Resource":{"type":"object","description":"PractitionerRole","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["practitioner","organization"],"description":"Role-specific details of the author or responsible party of a cancel request. \n\nWhere a cancel response contains details of the dispenser, role-specific details of the dispenser will also be contained within a PractitionerRole resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","description":"An array containing role-specific identifiers for the prescriber or dispenser.","items":{"type":"object","properties":{"SDS Role Profile ID":{"type":"object","description":"The prescriber or dispenser's SDS Role Profile ID.","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the SDS role profile ID.","enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"]},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}}}}}},"practitioner":{"type":"object","description":"A reference to a Practitioner resource for a given prescriber or dispenser.","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"organization":{"type":"object","description":"A reference to an Organization resource.\n\nWhere the cancel response contains details of the dispenser, this will contain the details of the dispensing organisation.\n","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}}},"code":{"type":"array","description":"The SDS job role code for a given prescriber or dispenser.","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","required":["system","code"],"properties":{"system":{"type":"string","description":"Codesystem URL for the job role code.","enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"]},"code":{"type":"string","description":"The SDS job role code.","example":"S0030:G0100:R0620"},"display":{"type":"string","description":"Display text for the SDS job role code.","example":"Staff Nurse"}}}}}}},"telecom":{"type":"array","required":["system"],"description":"the telephone number of a given prescriber or dispenser.","items":{"type":"object","properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}}}}}},"Cancel-Response-Organization-Resource":{"type":"object","description":"Organization","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","required":["name","address","telecom","partOf"],"description":"Details of prescribing organisation or the managing organisation for a prescription. Details of the prescribing organisation are planned to be deprecated within cancel responses.\n\nWhere a cancel response contains details of the dispenser, the details of the dispensing organisation will also be contained within an Organisation resource.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","description":"An array containing the ODS code of the organisation","items":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"use":{"type":"string","description":"The purpose of the address.","default":"work","enum":["home","work","billing","temp"]},"type":{"type":"string","description":"The type of address.","default":"both","enum":["postal","physical","both"]},"line":{"type":"array","description":"All lines of the address except the city, district, and postal code.\n\nSystems must apply the following formatting convention when adding or replacing addresses lines:\n*  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n*  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n*  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre"]},"city":{"type":"string","description":"The city of the address.","example":"Leeds"},"district":{"type":"string","description":"The district of the address.","example":"West Yorkshire"},"postalCode":{"type":"string","description":"The postal code of the address.","example":"LS1 6AE"}}}},"telecom":{"type":"array","description":"The telephone number associated with the organisation.","items":{"type":"object","required":["system","use","value"],"properties":{"system":{"description":"Means of communication allowed is Phone only","type":"string","enum":["phone"],"default":"phone"},"use":{"type":"string","description":"Location associated with the contact details provided.","enum":["home","work","temp","mobile"],"default":"work"},"value":{"description":"The phone number.","type":"string","example":"01234567890"}}}},"partOf":{"type":"object","required":["display"],"description":"For a primary care prescription, the managing organisation that the prescribing organisation is a part of. The Managing Organisation is the Integrated Care Board (ICB).","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}}}}}}},"Cancel-Response-List-Resource":{"type":"object","description":"List","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"type":"string","description":"The status of the List object. Must always default to \"current\".","enum":["current"]},"mode":{"type":"string","description":"The type of List being represented. Must always default to \"snapshot\".","enum":["snapshot"]},"code":{"type":"object","description":"A description of what the list represents.","properties":{"text":{"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\"","enum":["Repeat Medications"]}}},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"entry":{"type":"array","description":"list of repeat medication items prescribed to the patient.","items":{"type":"object","description":"FHIR wrapper object to contain the medication item.","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}}}}}}}},"Cancel-Response-CommunicationRequest-Resource":{"type":"object","description":"CommunicationRequest","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"Additional instructions intended for the patient.\nCommunicationRequests should be prefixed with the medication line item ID that the instructions are for.\nFor repeat prescriptions, a reference must also be provided to the list of repeat medications that the patient is on.\n","required":["payload"],"properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\".","enum":["active"]},"subject":{"type":"object","description":"A reference object to identify the patient the prescription is for.","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}}},"payload":{"type":"array","description":"Additional instructions provided as part of this prescription.","items":{"type":"object","properties":{"contentString":{"type":"string","description":"Additional instructions intended for the patient.","example":"Please make an appointment to see your GP."},"contentReference":{"type":"object","description":"A reference to the list of repeat medications that the patient is on.","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}}}}}},"requester":{"type":"object","description":"Details of the prescribing organisation originating the instructions.","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","description":"Codesystem URL for the ODS code.","enum":["https://fhir.nhs.uk/Id/ods-organization-code"]},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"recipient":{"type":"array","description":"Details of the patient receiving the instructions.","items":{"type":"object","properties":{"identifier":{"type":"object","required":["system","value"],"properties":{"system":{"type":"string","format":"url","description":"FHIR codesystem URL for NHS numbers.","enum":["https://fhir.nhs.uk/Id/nhs-number"]},"value":{"description":"The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales.\nAlways 10 digits and must be a [valid NHS number](https://www.datadictionary.nhs.uk/attributes/nhs_number.html).\n","type":"string","pattern":"^\\d{10}$","example":"9000000009"}}}}}}}}}},"Cancel-Response-Location-Resource":{"type":"object","description":"Location","required":["fullUrl"],"properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","description":"For secondary care prescriptions only.\n\nWhere the prescription is a secondary care prescription, the Location resource will contain the address of the prescribing organisation.\n","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","description":"Organisation address.","items":{"type":"object","properties":{"line":{"type":"array","description":"All lines of the address except the postal code.\n\n  Systems must apply the following formatting convention when adding or replacing addresses lines:\n  *  line 1 - premises ID and/or house name, e.g. `Flat 1` or `The Old Schoolhouse`\n  *  line 2 - house number, dependent thoroughfare name and descriptor (if present), thoroughfare name and descriptor, e.g. `23 Mill Lane`\n  *  line 3 - dependent locality/village, locality (if present), e.g. `Boxgrove`\n  *  line 4 - post town, e.g. `Leeds`\n  *  line 5 - county (if present), e.g. `West Yorkshire`\n\nIf any of the lines are blank, they are not returned due to FHIR conformance constraints.\n","items":{"type":"string"},"example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}}}}}}}}}}