{"openapi":"3.0.3","info":{"title":"FHIR Dispensing Service API","description":"## 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\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\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### 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 2 access modes:\n* user-restricted access for all requests\n* [application-restricted access](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#application-restricted-apis), meaning we authenticate the calling application but not the end user for the Download Prescriptions - Dispensing request only\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### Application-restricted access\nNo end user session, the Download prescriptions - Dispensing request is submitted as part of a back end process to download prescriptions to the pharmacy. Use the following security pattern:\n[Application-restricted RESTful API - signed JWT authentication](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/application-restricted-restful-apis-signed-jwt-authentication)\n\n## Environment and testing\n| Environment      | Base URL                                                   |\n|------------------|------------------------------------------------------------|\n| Sandbox          | `https://sandbox.api.service.nhs.uk/fhir-dispensing`       |\n| Integration test | `https://int.api.service.nhs.uk/fhir-dispensing`           |\n| Production       | `https://api.service.nhs.uk/fhir-dispensing`               |\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\nYour software must be approved by us before you can begin the EPS onboarding process and go live with this FHIR API. EPS 'onboarding' is the term used for the development and assurance required before IT suppliers can offer EPS to NHS organisations.\n\nDetails of the onboarding process can be found on our [EPS onboarding and assurance for IT suppliers](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-suppliers) page.\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.                                                                  | `/$process-message`, `/Claim`, `/Task/$release`, `/Task`                                   |\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.                 | `/$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.                | `/$process-message`                                                   |\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.                                                                  | `/Claim`, `/Task/$release`, `/Task`                                   |\n| 400         | structure     | MedicationRequest cannot contain both medicationReference and medicationCodeableConcept fields.                                                                                  | MedicationRequest contains both `medicationReference` and `medicationCodeableConcept` fields.                  | `/$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.                                                          | `/$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.                                                      | `/$process-message`                                                   |\n| 400         | invalid       | Required field organization.partOf is missing.                                                                                                                                   | Specified field is not provided when it should have been.                                                      | `/$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.                          | `/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.                                                    | `/$process-message`, `/Claim`, `/Task/$release`, `/Task`              |\n| 403         | forbidden     | Dispensing functionality requires user-restricted access unless otherwise stated.                                                                                                | The requested function requires user-restricted access mode unless otherwise stated.                           | `/$process-message`, `/Claim`, `/Task/$release`, `/Task`              |\n\n### System Errors\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#### 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","contact":{"name":"Electronic Prescription Service FHIR API Support","url":"https://digital.nhs.uk/developer/help-and-support","email":"api.management@nhs.net"},"version":"v1.2.0"},"servers":[{"url":"https://sandbox.api.service.nhs.uk/fhir-dispensing"}],"paths":{"/FHIR/R4/Task/$release":{"post":{"tags":["dispensing"],"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","operationId":"release","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"content":{"application/fhir+json":{"schema":{"required":["resourceType","parameter"],"type":"object","properties":{"resourceType":{"enum":["Parameters"],"type":"string","description":"FHIR resource type."},"parameter":{"minItems":3,"uniqueItems":true,"type":"array","items":{"oneOf":[{"required":["name","valueCode"],"type":"object","properties":{"name":{"enum":["status"],"type":"string"},"valueCode":{"enum":["accepted"],"type":"string"}}},{"required":["name","resource"],"type":"object","properties":{"name":{"enum":["agent"],"type":"string"},"resource":{"required":["resourceType","identifier","practitioner","code","telecom"],"type":"object","properties":{"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"resourceType":{"enum":["PractitionerRole"],"type":"string"},"identifier":{"minItems":1,"uniqueItems":true,"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."}]}},"practitioner":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string"},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Jackie Clark"}}},"code":{"minItems":1,"uniqueItems":true,"type":"array","items":{"oneOf":[{"required":["coding"],"type":"object","properties":{"coding":{"minItems":1,"uniqueItems":true,"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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":{"minItems":1,"uniqueItems":true,"type":"array","items":{"oneOf":[{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}]}}}}},"description":"The professional submitting the release request."},{"required":["name","resource"],"type":"object","properties":{"name":{"enum":["owner"],"type":"string"},"resource":{"required":["resourceType","identifier","name","address","telecom","type"],"type":"object","properties":{"id":{"type":"string","example":"4a964042-3c11-4b0f-990f-22d7b41ad604"},"resourceType":{"enum":["Organization"],"type":"string"},"identifier":{"minItems":1,"uniqueItems":true,"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}]},"description":"An array containing the ODS code of the organisation."},"name":{"type":"string","description":"Organisation name."},"address":{"minItems":1,"uniqueItems":true,"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"minItems":1,"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"minItems":1,"uniqueItems":true,"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"type":{"type":"array","items":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"],"type":"string"},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}}},"description":"Details of organization (pharmacy) downloading the prescriptions."}},"description":"The organization (pharmacy) downloading the prescriptions."},{"required":["name","valueIdentifier"],"type":"object","properties":{"name":{"enum":["group-identifier"],"type":"string"},"valueIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"CodeSystem URL for the short-form prescription ID."},"value":{"type":"string","description":"The short-form prescription ID.","example":"03F4C2-A99968-7F717P"}}}},"description":"The short-form-prescription-id (token) of the prescription."}]}}}},"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"}}]}}}}},"required":true},"responses":{"200":{"description":"Successfully downloaded a prescription for dispensing.","content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["Parameters"],"type":"string"},"id":{"type":"string","example":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"},"parameter":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"enum":["passedPrescriptions"],"type":"string"},"resource":{"required":["identifier"],"type":"object","properties":{"resourceType":{"enum":["Bundle"],"type":"string"},"id":{"type":"string","example":"155e1102-9e71-4f19-9453-b905c0bbc494"},"meta":{"required":["lastUpdated"],"type":"object","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","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"155e1102-9e71-4f19-9453-b905c0bbc494"}},"description":"The unique identifier for a release response."},"type":{"enum":["searchset"],"type":"string"},"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","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","properties":{"resourceType":{"enum":["Bundle"],"type":"string"},"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","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"46183abc-9fad-4673-85db-ce2cb6614732"}},"description":"Unique identifier for a prescription."},"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":[{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of a medication item being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"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"},{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"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":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","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"}},"description":"The organisation originating the message."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"},{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."},{"type":"object","properties":{"resourceType":{"enum":["Provenance"],"type":"string","description":"FHIR resource type."},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["MedicationRequest"],"type":"string"},"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}},"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"},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","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"}}}}},"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"},"signature":{"type":"array","items":{"required":["when"],"type":"object","properties":{"type":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["urn:iso-astm:E1762-95:2013"],"type":"string","description":"FHIR codesystem URN for signatures"},"code":{"enum":["1.2.840.10065.1.12.1.1"],"type":"string"}}},"description":"The type of signature attached to a prescription."},"when":{"type":"string","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","format":"date-time","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="}}},"description":"The Advanced Electronic Signature (AES) attached to a prescription."}},"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."},{"type":"object","properties":{"resourceType":{"enum":["Practitioner"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"anyOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."}]},"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"},"name":{"required":["family"],"type":"array","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","items":{"type":"string","example":"Mantis"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Dr"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the author or responsible party of a release."},{"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}]},"description":"An array containing role-specific identifiers for the prescriber"},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"Role-specific details of the author or responsible party of a prescription."}]}}}}},"description":"Container object for the released prescription."}}},"description":"Container array for the one or many prescriptions that may be released within a release response."}}}}},{"type":"object","properties":{"name":{"enum":["failedPrescriptions"],"type":"string"},"resource":{"type":"object","properties":{"resourceType":{"enum":["Bundle"],"type":"string"},"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","properties":{"system":{"type":"string","example":"https://tools.ietf.org/html/rfc4122"},"value":{"type":"string","example":"9fa27fc5-052a-4abf-83ca-aee2742a870e"}},"description":"The unique identifier for a release rejection."},"type":{"enum":["searchset"],"type":"string"},"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","items":{"oneOf":[{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["code","severity"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-Spine-supportingInfo-prescription"],"type":"string","description":"URL of the extension definition."},"valueReference":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."}}}},"description":"A reference to a prescription Bundle,\nwhich will follow the same structure as the prescription Bundle in the Release Response.\n"},"description":"FHIR extension array."}},"description":"A container resource for a specific release rejection."},{"type":"object","properties":{"resourceType":{"enum":["Bundle"],"type":"string"},"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":[{"required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of a medication item being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"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"},{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"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":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","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"}},"description":"The organisation originating the message."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"},{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."},{"type":"object","properties":{"resourceType":{"enum":["Practitioner"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"anyOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."}]},"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"},"name":{"required":["family"],"type":"array","items":{"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","items":{"type":"string","example":"Mantis"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Dr"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the author or responsible party of a release."},{"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}]},"description":"An array containing role-specific identifiers for the prescriber"},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"Role-specific details of the author or responsible party of a prescription."}]}}}}}}]},"description":"Container array for the one or many release rejections that may be released within a release response."}}}}}]}}},"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"},"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"}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]},{"app-level3":[]}]}},"/FHIR/R4/Task":{"post":{"summary":"dummy operation for path","description":"this is a dummy method so things go to the backend correctly\n","operationId":"process-message","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"responses":{"200":{"description":"Dummy response"}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}},"/FHIR/R4/Task#return":{"post":{"tags":["dispensing"],"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","operationId":"return","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["Task"],"type":"string"},"id":{"type":"string","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["numberOfRepeatsAllowed"],"type":"string"},"valueInteger":{"type":"integer","example":6}},"description":"The total number of issues a given prescription is authorised for."},{"type":"object","properties":{"url":{"enum":["numberOfRepeatsIssued"],"type":"string"},"valueInteger":{"type":"integer","example":2}},"description":"The current, active issue of the prescription."}]},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},"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"},"contained":{"type":"array","items":{"oneOf":[{"required":["practitioner"],"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},"description":"An array containing role-specific identifiers for the dispenser."},"practitioner":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},"display":{"type":"string","example":"Ms Lottie Maifeld"}},"description":"An identifier for a Practitioner resource, for a given dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","example":"#urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"}}},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"The dispenser returning the prescription."},{"required":["name","telecom","address"],"type":"object","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":{"enum":["Organization"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"minItems":1,"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"active":{"type":"boolean"},"type":{"type":"array","items":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"],"type":"string"},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation.\nIf this element is missing the telecom information in the PractitionerRole resource will be used.\n"}},"description":"Details of the dispensing organisation returning the prescription."}]}},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."},"description":"The unique identifier for the Return Request."},"status":{"enum":["active","cancelled","completed","rejected"],"type":"string"},"statusReason":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-return-status-reason"],"type":"string"},"code":{"type":"string","example":"0003"},"display":{"type":"string","example":"Patient requested release"}}}}},"description":"The reason the prescription is being returned, which must be coded as per the Return Reason vocabulary."},"intent":{"enum":["order","original-order","instance-order"],"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"},"code":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://hl7.org/fhir/CodeSystem/task-code"],"type":"string"},"code":{"type":"string","example":"fulfill"},"display":{"type":"string","example":"Fulfill the focal request"}}}}}},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"focus":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."}},"description":"The release response which released the prescription that is currently being returned."},"for":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","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","properties":{"reference":{"type":"string","example":"#requester"}},"description":"The dispenser returning the prescription."}},"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)."},"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"}]}}}}}},"required":true},"responses":{"200":{"description":"Action completed successfully.","content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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"}]}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}},"/FHIR/R4/$process-message#dispense-notification":{"post":{"tags":["dispensing"],"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","operationId":"send-dispense-notification-message","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"description":"","content":{"application/fhir+json":{"schema":{"required":["resourceType","entry","type"],"type":"object","properties":{"resourceType":{"enum":["Bundle"],"type":"string","description":"FHIR resource type."},"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","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string"},"value":{"type":"string","example":"b240434e-cb85-40bb-899c-1c61410c93a7"}},"description":"The unique ID of the dispense notification."},"type":{"enum":["message"],"type":"string","description":"The reason why a series of resources and objects are grouped together."},"entry":{"type":"array","items":{"type":"object","properties":{"fullUrl":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"oneOf":[{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"extensions":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string"},"value":{"type":"string","example":"50101420-789b-4a3d-a4fb-4d3d0af76a64"}}}},"description":"A reference to the previous dispense notification, where an amended dispense notification is being sent."}},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["dispense-notification"],"type":"string","description":"Code for the message event."},"display":{"enum":["Dispense Notification"],"type":"string","description":"Display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"sender":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}},"description":"The organisation originating the message."},"reason":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-reason-prescription"],"type":"string"},"code":{"enum":["notification"],"type":"string"},"display":{"enum":["Notification"],"type":"string"}}}}}},"response":{"type":"object","properties":{"identifier":{"type":"string","example":"a5d77265-8ba5-4c74-b8ce-ea0dbaafbdb8"},"code":{"type":"string","example":"ok"}},"description":"A reference to the release response that released the prescription being dispensed."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}},{"required":["medicationCodeableConcept","subject"],"type":"object","properties":{"resourceType":{"enum":["MedicationDispense"],"type":"string","description":"FHIR resource type."},"contained":{"type":"array","items":{"oneOf":[{"required":["identifier","practitioner","organization","code","telecom"],"type":"object","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":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},"NHS BSA Spurious Code":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}}},"description":"Role-specific identifiers for the dispenser."},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given dispenser."},"practitioner":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string"},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Mr Peter Potion"}},"description":"Professional identifiers for the dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to the dispensing organisation."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"Role-specific details of the dispenser."},{"required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"id":{"type":"string","example":"f6741534-773e-4e26-9eec-c868f61898b3"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-DispensingInformation"],"type":"string"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["dispenseStatus"],"type":"string"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"],"type":"string"},"code":{"type":"string","format":"date","example":"0008"},"display":{"type":"string","example":"Item with dispenser"}}}}},{"type":"object","properties":{"url":{"enum":["dateLastDispensed"],"type":"string"},"valueDate":{"type":"string","format":"date-time","example":"2023-03-15"}},"description":"Only for eRD prescriptions.\nThe date the prescription was previously released from Spine.\n"}]}}}},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","format":"dateTime","example":"2024-11-30"}},"description":"authorisationExpiryDate"},{"type":"object","properties":{"url":{"enum":["numberOfPrescriptionsIssued"],"type":"string","description":"The current issue of the repeat or eRD prescription that is being released."},"valueUnsignedInt":{"type":"integer","example":"1"}},"description":"numberOfPrescriptionsIssued"}]},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication prescribed to the patient, represented as a VMP or AMP concept from the dm+d."},"subject":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string"},"value":{"type":"string","example":"9449304130"}}},"display":{"type":"string","example":"Ms Marisa Stacey Twitchett"}},"description":"The patient the prescription is for."},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription."},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of the drug prescribed to the patient."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."},"basedOn":{"type":"array","items":{"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"extension URL for `EPS-RepeatInformation`."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["numberOfRepeatsIssued"],"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"},"valueInteger":{"type":"integer","example":0}}},{"type":"object","properties":{"url":{"enum":["numberOfRepeatsAllowed"],"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"},"valueInteger":{"type":"integer","example":5}}}]},"description":"array containing the current issue and total number of issues that the prescription is valid for."}}},"description":"FHIR extension array."}}},"description":"For eRD and repeat prescriptions only. \nThe current issue and the total number of issues that a prescription is valid for.\n"}},"description":"A line item on a prescription."}]}},"extension":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus"],"type":"string","description":"Codesystem URL for the prescription status extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status"],"type":"string","description":"Codesystem URL for the prescription status."},"code":{"enum":["0003","0006","0007"],"type":"string","description":"The prescription status code."},"display":{"enum":["With Dispenser - Active","Dispensed","Not Dispensed"],"type":"string","description":"A human readable representation of the prescription status code."}}}},"description":"The intended status of the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionNonDispensingReason"],"type":"string","description":"Codesystem URL for the prescription-level non-dispensing reason extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason"],"type":"string","description":"Codesystem URL for the non-dispensing reason."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"],"type":"string","description":"The prescription-level non-dispensing reason code."},"display":{"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"],"type":"string","description":"A human readable representation of the prescription-level non-dispensing reason code."}}}},"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\"."}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-dispense-item-number"],"type":"string","description":"Codesystem URL for the unique identifier."},"value":{"type":"string","description":"Unique identifier.","example":"fd833d33-f128-4fa2-a807-1fc8a7db2658"}}},"description":"Unique identifier for this record of dispensing against the line item."},"status":{"enum":["in-progress"],"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"},"statusReasonCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-status-reason"],"type":"string","description":"Status reason codesystem URL."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"],"type":"string","description":"Status reason code representing why the medication was not dispensed."},"display":{"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"],"type":"string","description":"Human readable representation of the code."}}}}},"description":"Where a medication item is not dispensed, the reason it was not dispensed."},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The actual drug dispensed to the patient.\nThis must be represented as a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","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":{"enum":["official","old","secondary","temp","usual"],"type":"string","description":"The purpose of this identifier."},"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":{"type":"string","description":"The patient's NHS number.","example":"9449304130"}}},"display":{"type":"string","example":"Ms Marisa Stacey Twitchett"}},"description":"The patient that the medication was dispensed (or not dispensed) to."},"performer":{"type":"array","items":{"type":"object","properties":{"actor":{"type":"object","properties":{"reference":{"type":"string","example":"f6741534-773e-4e26-9eec-c868f61898b3"}}}}},"description":"Array containing a reference to the contained PractitionerRole resource, representing the dispenser who sent the dispense notification."},"authorizingPrescription":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","description":"Literal reference, relative, internal or absolute URL.","example":"f6741534-773e-4e26-9eec-c868f61898b3"}}},"description":"A reference to the contained MedicationRequest resource representing the prescription that the dispense notification is being sent against."},"type":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"],"type":"string"},"code":{"type":"string","example":"0001"},"display":{"type":"string","example":"Item fully dispensed"}}},"description":"The intended status of the prescription line item as a result of the dispense notification."}}},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"The identification of the system that provides the coded form of the unit."},"code":{"type":"string","description":"A computer processable form of the unit in some unit representation system.","example":"732936001"}},"description":"The amount of medication that has been dispensed. Includes unit of measure."},"whenHandedOver":{"type":"string","description":"The time at which the medication was dispensed (or not dispensed) to the patient.","format":"date-time","example":"2023-04-11T10:11:12+00:00"},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"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"}},"description":"An entity representing the original prescription in the context of a dispense notification."},{"required":["name","address","telecom"],"type":"object","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":{"enum":["Organization"],"type":"string","description":"FHIR resource type."},"extension":{"type":"array","items":{"required":["url","extension"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"required":["url","valueIdentifier"],"type":"object","properties":{"url":{"enum":["reimbursementAuthority"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string"},"value":{"type":"string","example":"T1450"}}}},"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"},"description":"FHIR extension array."}},"description":"Extension that contains information regarding ODS Organisation Relationships."},"description":"a FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"minItems":1,"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"active":{"type":"boolean"},"type":{"type":"array","items":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"],"type":"string"},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."}},"description":"Details of the dispensing organisation."}]}}}}},"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"},"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"}]}}]}}}}},"required":true},"responses":{"200":{"description":"Successfully submitted.","content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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"}]}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}},"/FHIR/R4/Task#withdraw":{"post":{"tags":["dispensing"],"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","operationId":"withdraw","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["Task"],"type":"string"},"id":{"type":"string","example":"6a2624a2-321b-470e-91a6-8ae7a065e2f0"},"contained":{"type":"array","items":{"oneOf":[{"required":["practitioner"],"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"id":{"type":"string","example":"16708936-6397-4e03-b84f-4aaa790633e0"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},"description":"An array containing role-specific identifiers for the dispenser."},"practitioner":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},"display":{"type":"string","example":"Ms Lottie Maifeld"}},"description":"An identifier for a Practitioner resource, for a given dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","example":"#urn:uuid:2bf9f37c-d88b-4f86-ad5f-373c1416e04b"}}},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"The dispenser returning the prescription."},{"required":["name","address","telecom"],"type":"object","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":{"enum":["Organization"],"type":"string","description":"FHIR resource type."},"extension":{"type":"array","items":{"required":["url","extension"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"required":["url","valueIdentifier"],"type":"object","properties":{"url":{"enum":["reimbursementAuthority"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string"},"value":{"type":"string","example":"T1450"}}}},"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"},"description":"FHIR extension array."}},"description":"Extension that contains information regarding ODS Organisation Relationships."},"description":"a FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"minItems":1,"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"active":{"type":"boolean"},"type":{"type":"array","items":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"],"type":"string"},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."}},"description":"Details of the dispensing organisation."}]}},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["numberOfRepeatsAllowed"],"type":"string"},"valueInteger":{"type":"integer","example":6}},"description":"The total number of issues a given prescription is authorised for."},{"type":"object","properties":{"url":{"enum":["numberOfRepeatsIssued"],"type":"string"},"valueInteger":{"type":"integer","example":2}},"description":"The current, active issue of the prescription."}]},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},"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"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."},"description":"The unique identifier for the Withdraw Request."},"status":{"enum":["in-progress"],"type":"string"},"statusReason":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-dispense-withdraw-reason"],"type":"string"},"code":{"enum":["QU","MU","DA","PA","OC","ONC"],"type":"string"},"display":{"enum":["Quantity Update","Medication Updated","Dosage Amendments","Patient Detail Amendments","Other Clinical","Other Non-Clinical"],"type":"string"}}}}},"description":"The reason the prescription is being withdrawn, which must be coded as per the Withdraw Reason vocabulary."},"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":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://hl7.org/fhir/CodeSystem/task-code"],"type":"string"},"code":{"enum":["abort"],"type":"string"},"display":{"enum":["Mark the focal resource as no longer active"],"type":"string"}}}}}},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"focus":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."}},"description":"The release response which released the DN identifier that is currently being withdrawn."},"for":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","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","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Who is responsible for actioning the Withdraw request."},"requester":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the author of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"reasonCode":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string"},"code":{"enum":["373784005","33633005"],"type":"string"},"display":{"enum":["Dispensing medication","Prescription of drug"],"type":"string"}}}}},"description":"The reason for the task, should only be included if there is no focus or differs from the reason indicated in the focus."}},"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)."},"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"}]}}}}}},"required":true},"responses":{"200":{"description":"Action completed successfully.","content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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"}]}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}},"/FHIR/R4/Claim":{"post":{"tags":["dispensing"],"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","operationId":"send-dispense-claim-message","parameters":[{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}],"requestBody":{"description":"","content":{"application/fhir+json":{"schema":{"required":["resourceType","contained","created","status","type","use","patient","provider","priority","insurance","payee","prescription","item"],"type":"object","properties":{"resourceType":{"enum":["Claim"],"type":"string","description":"FHIR resource type."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-replacementOf"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string"},"value":{"type":"string","example":"50101420-789b-4a3d-a4fb-4d3d0af76a64"}}}},"description":"A reference to the previous Claim, where an amended Claim is being sent."}]},"description":"FHIR extension array."},"contained":{"type":"array","items":{"oneOf":[{"required":["identifier","practitioner","organization","code","telecom"],"type":"object","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":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},"NHS BSA Spurious Code":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}}},"description":"Role-specific identifiers for the dispenser."},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given dispenser."},"practitioner":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string"},"value":{"type":"string","example":"3415870201"}}},"display":{"type":"string","example":"Mr Peter Potion"}},"description":"Professional identifiers for the dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to the dispensing organisation."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"description":"Role-specific details of the dispenser."},{"required":["name","address","telecom"],"type":"object","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":{"enum":["Organization"],"type":"string","description":"FHIR resource type."},"extension":{"type":"array","items":{"required":["url","extension"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ODS-OrganisationRelationships"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"required":["url","valueIdentifier"],"type":"object","properties":{"url":{"enum":["reimbursementAuthority"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string"},"value":{"type":"string","example":"T1450"}}}},"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"},"description":"FHIR extension array."}},"description":"Extension that contains information regarding ODS Organisation Relationships."},"description":"a FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"minItems":1,"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"active":{"type":"boolean"},"type":{"type":"array","items":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/organisation-role"],"type":"string"},"code":{"type":"string","example":"182"},"display":{"type":"string","example":"PHARMACY"}}}}}}},"name":{"type":"string","description":"Organisation name."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."}},"description":"Details of the dispensing organisation."}]},"description":"List of resources that are pertinent to the Claim."},"created":{"type":"string","description":"The date and time at which the Claim was submitted.","example":"2022-08-12T10:05:47.235Z"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"Codesystem URL for the RFC4122 unqiue identifier."},"value":{"type":"string","description":"RFC4122 unique identifier.","example":"ee1b55f8-113c-4725-99a3-25fbad366dd6"}},"description":"An RFC4122 unique identifier."},"description":"Unique identifier for the Claim."},"status":{"enum":["active"],"type":"string","description":"The status of a Claim."},"type":{"required":["coding"],"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/claim-type"],"type":"string","description":"FHIR codesystem URL for the Claim type."},"code":{"enum":["pharmacy"],"type":"string","description":"Code for the Claim type."},"display":{"enum":["Pharmacy"],"type":"string","description":"display value for the Claim type."}},"description":"The type of Claim being submitted."}}}},"use":{"enum":["claim"],"type":"string"},"patient":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}},"description":"The patient that received the medication being claimed for."},"provider":{"type":"object","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"}},"description":"A reference to the dispenser submitting the Claim."},"priority":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/processpriority"],"type":"string"},"code":{"enum":["normal"],"type":"string"}}},"description":"coding"}},"description":"The priority of the Claim being submitted. This must default to `normal.`"},"insurance":{"type":"array","items":{"oneOf":[{"required":["sequence","focal","coverage","display"],"type":"object","properties":{"sequence":{"type":"string","description":"sequence","example":"1"},"focal":{"enum":[true],"type":"string","description":"coverage"},"coverage":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the reimbursement authority ODS code."},"value":{"enum":["T1450","RQFZ1"],"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"}}}},"description":"coverage"}}}]},"description":"The reimbursement authority that the Claim is being submitted to."},"payee":{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/payeetype"],"type":"string","description":"Codesystem URL for payee type."},"code":{"enum":["provider"],"type":"string","description":"Code for the payee type.\n\nThis is a fixed value within England and Wales. \n"},"display":{"enum":["Provider"],"type":"string","description":"Display value for the payee type code.\n\nThis is a fixed value within England and Wales.\n"}}}}},"description":"The type of dispensing organisation being reimbursed as a result of the Claim."},"party":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to the local identifier of the contained Organization resource identifying the dispensing organisation submitting the Claim.","example":"#b350545d-dc96-61cd-923f-2c71521c64a8"}}}},"description":"A reference to the dispensing organisation submitting the Claim."},"prescription":{"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier"],"type":"string","description":"Codesystem URL for the short- and long-form prescription identifiers."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["shortForm"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string"},"value":{"type":"string","example":"63DE8C-C81007-00001O"}}}},"description":"The short-form prescription identifier."},{"type":"object","properties":{"url":{"enum":["UUID"],"type":"string"},"valueIdentifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string"},"value":{"type":"string","example":"f2f0b705-b96a-6d14-e053-0100007fa7c7"}}}},"description":"The long-form prescription identifier."}]},"description":"FHIR extension array."}}},"description":"The short- and long-form prescription identifiers of the prescription being claimed for."}}},"item":{"type":"array","items":{"type":"object","properties":{"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus"],"type":"string","description":"Codesystem URL for the prescription status extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status"],"type":"string","description":"Codesystem URL for the prescription status."},"code":{"enum":["0004","0005","0006","0007"],"type":"string","description":"The prescription status code."},"display":{"enum":["Cancelled","Expired","Dispensed","Not Dispensed"],"type":"string","description":"A human readable representation of the prescription status code."}}}},"description":"The intended status of the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatusReason"],"type":"string","description":"Codesystem URL for the non-dispensing reason extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status-reason"],"type":"string","description":"Codesystem URL for the non-dispensing reason."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"],"type":"string","description":"The prescription status code."},"display":{"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"],"type":"string","description":"A human readable representation of the prescription status code."}}}},"description":"The reason why a prescription or line item has not been dispensed."}]},"description":"The intended status of the prescription as a result of the Claim."},"sequence":{"enum":[1],"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"},"productOrService":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"enum":["16076005"],"type":"string","description":"SNOMED code."},"display":{"enum":["Prescription"],"type":"string","description":"human-readable representation of the SNOMED code."}}}}},"description":"Mandatory entity identifying that this is a Claim for a prescription."},"programCode":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"The charge exemption code.","example":"0001"},"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-charge-exemption"],"type":"string","description":"codesystem URL for the charge exemption code."},"display":{"type":"string","description":"Human-readable representation of the charge exemption code.","example":"Patient has paid appropriate charges"}}},"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"}}},{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"code":{"enum":["evidence-seen"],"type":"string","description":"Code to denote where evidence was seen."},"display":{"type":"string","description":"Human-readable representation of the code.","example":"Evidence seen"},"system":{"enum":["https://fhir.nhs.uk/CodeSystem/DM-exemption-evidence"],"type":"string","description":"Codesystem URL to denote where evidence was seen."}}},"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"}}}]},"description":"Information about whether the patient is exempt from paying for their prescription, and whether evidence has been seen to this end."},"detail":{"type":"array","items":{"type":"object","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","properties":{"url":{"enum":["https://fhir.nhs.uk/Id/claim-sequence-identifier"],"type":"string","description":"Codesystem URL"},"value":{"type":"string","description":"Unique identifier","example":"959c35d2-0b21-4d72-97b1-fc158579850b"}},"description":"Unique identifier to identify an instance of the `detail` array."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-ClaimMedicationRequestReference"],"type":"string","description":"Codesystem URL"},"valueReference":{"type":"object","properties":{"identifier":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"codesystem URL"},"value":{"type":"string","description":"unique identifier","example":"f2f0b705-b992-6d14-e053-0100007fa7c7"}},"description":"The unique identifier for the prescription line item against which medication was dispensed."}},"description":"A reference to the unique identifier for the prescription line item against which medication was dispensed."}},"description":"A reference to the prescription line item against which medication was dispensed."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["numberOfRepeatsAllowed"],"type":"string"},"valueInteger":{"type":"integer","example":6}},"description":"The total number of issues a given prescription is authorised for."},{"type":"object","properties":{"url":{"enum":["numberOfRepeatsIssued"],"type":"string"},"valueInteger":{"type":"integer","example":2}},"description":"The current, active issue of the prescription."}]},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatusReason"],"type":"string","description":"Codesystem URL for the non-dispensing reason extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/EPS-task-business-status-reason"],"type":"string","description":"Codesystem URL for the non-dispensing reason."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"],"type":"string","description":"The prescription status code."},"display":{"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"],"type":"string","description":"A human readable representation of the prescription status code."}}}},"description":"The reason why a prescription or line item has not been dispensed."}]}},"productOrService":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"The medication prescribed to the patient on the original prescription."},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of the drug prescribed to the patient."},"modifier":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-type"],"type":"string","description":"Codesystem URL for line item status."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009","0010","0011"],"type":"string","description":"A code representing the intended line item status."},"display":{"enum":["Item fully dispensed","Item not dispensed","Item dispensed - partial","Item not dispensed owing","Item cancelled","Expired","Item to be dispensed","Item with dispenser"],"type":"string","description":"Human readable representation of the intended line item status code."}}},"description":"Prescription status."}},"description":"The intended status of the prescription line item. Only one `coding` value must be provided within the `modifier` array."},"description":"The intended status of the prescription line item as a result of the Claim."},"programCode":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/DM-prescription-charge"],"type":"string","description":"Codesystem URL for the 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":{"enum":["Not Paid","Paid Once","Paid Twice"],"type":"string","description":"A human-readable display of the amount a patient has paid for their prescription."}}}}},"description":"The amount a patient has paid for their medication."},{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationdispense-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"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"}}}}},"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"}]},"description":"Information about whether a patient has or has not paid for their prescription, and any endorsements that apply to the medication dispensed."},"subDetail":{"type":"array","items":{"type":"object","properties":{"sequence":{"enum":[1],"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"},"productOrService":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"The medication dispensed to the patient, represented as a VMP or AMP concept from the dm+d."},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of the medication dispensed to the patient."}}},"description":"The specific medication dispensed to the patient."}},"description":"Information about the medication dispensed to a patient."},"description":"Information about the medication dispensed to a patient."}}},"description":"Information about the prescription that is being claimed for."}},"description":"The claim to be submitted or amended for reimbursement.\nIf amending a claim, include the `replacementOf` extension.\n"},"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"}}]}]}}}}},"required":true},"responses":{"200":{"description":"Successfully submitted.","content":{"application/fhir+json":{"schema":{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"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"}]}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}}},"components":{"schemas":{"operation-outcome":{"type":"object","properties":{"resourceType":{"enum":["OperationOutcome"],"type":"string","description":"FHIR Resource Type.","example":"OperationOutcome"},"issue":{"minItems":1,"type":"array","items":{"required":["severity","code"],"type":"object","properties":{"severity":{"enum":["fatal","error","warning","information"],"type":"string","description":"Severity of the error.","example":"error"},"code":{"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"],"type":"string","description":"FHIR error code.","example":"invalid"},"details":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode"],"type":"string","description":"URI of the coding system specification."},"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"}}}}},"description":"Internal error code."},"expression":{"type":"string","description":"FHIRPath of element(s) related to the error.","example":"Patient.name.given"}}},"description":"List of issues that have occurred."}},"description":"Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission).\n"},"parameters-response":{"type":"object","properties":{"resourceType":{"enum":["Parameters"],"type":"string"},"parameter":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"name":{"enum":["digest"],"type":"string"},"valueString":{"type":"string","description":"The Prescription Information that requires signing.","example":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdv"}}},{"type":"object","properties":{"name":{"enum":["timestamp"],"type":"string"},"valueString":{"type":"string","format":"date-time","example":"2021-05-07T14:47:47+00:00"}}},{"type":"object","properties":{"name":{"enum":["algorithm"],"type":"string"},"valueString":{"enum":["RS1"],"type":"string"}}}]}}},"description":"A response from the /$prepare endpoint."},"Encode-Request-Bundle":{"required":["resourceType","identifier","type","entry"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"],"type":"string","description":"object ID for the Bundle."},"identifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"codesystem URL for identifiers"},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"enum":["message"],"type":"string","description":"The reason why a series of resources and objects are grouped together."},"entry":{"type":"array","items":{"oneOf":[{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of a medication item being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"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"}},"description":"MedicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}]},"description":"An array containing role-specific identifiers for the prescriber"},"practitioner":{"oneOf":[{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n"},{"type":"object","properties":{"identifier":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmp-number"],"type":"string","description":"Codesystem URL for the GMP number."},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}},"description":"The prescriber's GMP number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"description":"An identifier if part of an organization-only responsible practitioner.\n"}]},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to an Organization resource.\n"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"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"}},"description":"PractitionerRole"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"enum":["Practitioner"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."}]},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","items":{"type":"string","example":"Mantis"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Dr"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the requester or responsible practitioner of a prescription."}},"description":"Practitioner"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"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":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","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"}},"description":"The organisation originating the message."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}},"description":"MessageHeader"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"}]},"description":"A collection of resources contained within the Bundle."}},"description":"A FHIR Bundle."},"Create-Request-Bundle":{"required":["resourceType","identifier","type","entry"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"],"type":"string","description":"An object ID for the Bundle."},"identifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"codesystem URL for identifiers"},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"enum":["message"],"type":"string","description":"The type of payload being carried within the Bundle."},"entry":{"type":"array","items":{"oneOf":[{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of a medication item being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"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"}},"description":"MedicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}]},"description":"An array containing role-specific identifiers for the prescriber"},"practitioner":{"oneOf":[{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n"},{"type":"object","properties":{"identifier":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmp-number"],"type":"string","description":"Codesystem URL for the GMP number."},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}},"description":"The prescriber's GMP number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"description":"An identifier if part of an organization-only responsible practitioner.\n"}]},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to an Organization resource.\n"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"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"}},"description":"PractitionerRole"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"enum":["Practitioner"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."}]},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","items":{"type":"string","example":"Mantis"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Dr"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the requester or responsible practitioner of a prescription."}},"description":"Practitioner"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"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":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","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"}},"description":"The organisation originating the message."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}},"description":"MessageHeader"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"enum":["Provenance"],"type":"string","description":"FHIR resource type."},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["MedicationRequest"],"type":"string"},"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}},"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"},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","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"}}}}},"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"},"signature":{"type":"array","items":{"required":["when"],"type":"object","properties":{"type":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["urn:iso-astm:E1762-95:2013"],"type":"string","description":"FHIR codesystem URN for signatures"},"code":{"enum":["1.2.840.10065.1.12.1.1"],"type":"string"}}},"description":"The type of signature attached to a prescription."},"when":{"type":"string","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","format":"date-time","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="}}},"description":"The Advanced Electronic Signature (AES) attached to a prescription."}},"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."}},"description":"Provenance"}]},"description":"A collection of resources contained within the Bundle."}},"description":"A FHIR Bundle."},"Cancel-Request-Bundle":{"required":["resourceType","identifier","type","entry"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"],"type":"string","description":"An object ID for the Bundle."},"identifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"codesystem URL for identifiers"},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"enum":["message"],"type":"string","description":"The reason why a series of resources and objects are grouped together."},"entry":{"type":"array","items":{"oneOf":[{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order-update"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order Update"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"source":{"type":"object","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}},"description":"The organisation originating the message."}}}},"description":"MessageHeader"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["statusReason","resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type."},"statusReason":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason"],"type":"string","description":"codesystem URL for the cancellation reason."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009"],"type":"string","description":"cancel reason code.","example":"0004"},"display":{"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"],"type":"string","description":"the display accompanying the cancel reason code.","example":"Clinical grounds"}}}}},"description":"The reason the line item is being cancelled.\nThe reason must be in line with the cancellation reasons vocabulary <link>.\n"},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique ID for each line item on a prescription."},"status":{"enum":["cancelled"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being cancelled. \nThis must be represented as a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"requester":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the author of a cancel request. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"The treatment type of the prescription, i.e. whether it is an acute, repeat, or eRD prescription."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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"}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","default":"d"}},"description":"For eRD prescriptions only. \nThe duration of each issue within an eRD prescription. This must be expressed in days.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated dispenser.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":"428673006"}},"description":"The quantity of the medication being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"description":"A cancel request is effectively an update to a prescription, expressed through a MedicationRequest resource for each line item that is being cancelled."}},"description":"MedicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."}}},"description":"An array containing role-specific identifiers for the prescriber or dispenser."},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system"],"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"the telephone number of a given prescriber or dispenser."}},"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"}},"description":"PractitionerRole"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","items":{"type":"string","example":"Jane"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the author or responsible party of a cancel request."}},"description":"Practitioner"}]},"description":"A collection of resources contained within the Bundle."}},"description":"A FHIR Bundle."},"Cancel-Response-Bundle":{"required":["resourceType","identifier","type","entry"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Bundle"},"id":{"enum":["164996aa-29eb-4f14-a5ac-4b556a7baf6e"],"type":"string","description":"An object ID for the Bundle."},"identifier":{"type":"object","properties":{"system":{"enum":["https://tools.ietf.org/html/rfc4122"],"type":"string","description":"codesystem URL for identifiers"},"value":{"type":"string","description":"The X-Request ID for the message.","example":"164996aa-29eb-4f14-a5ac-4b556a7baf6e"}}},"type":{"enum":["message"],"type":"string","description":"The reason why a series of resources and objects are grouped together."},"entry":{"type":"array","items":{"oneOf":[{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"],"type":"string","description":"codesystem URL for cancel responses."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["status"],"type":"string"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"],"type":"string","description":"codesystem URL for cancel response."},"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":{"enum":["statusdate"],"type":"string","description":"URL to identify the time that the cancel response was received"},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]},"description":"FHIR extension array"}},"description":"cancel response for a successful or unsuccessful cancel request."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique ID for each line item on a prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n"},"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","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n"},"requester":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"dispenseRequest":{"type":"object","properties":{"performer":{"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"],"type":"string","description":"codesystem URL for the dispenser."},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}},"description":"Details of the dispenser who downloaded the prescription"},"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}},"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"}},"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"}},"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource."}},"description":"MedicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order-response"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order Response"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"source":{"type":"object","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}},"description":"The organisation originating the message."}}}},"description":"MessageHeader"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."}}},"description":"An array containing role-specific identifiers for the prescriber or dispenser."},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system"],"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"the telephone number of a given prescriber or dispenser."}},"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"}},"description":"PractitionerRole"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"required":["family"],"type":"array","items":{"type":"object","properties":{"family":{"type":"string","items":{"type":"string","example":"Smith"},"description":"Family name (often called Surname)."},"given":{"type":"array","items":{"type":"string","example":"Clark"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's or dispenser's 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"}},"description":"Practitioner"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"}]},"description":"A collection of resources contained within the Bundle."}},"description":"A FHIR Bundle."},"Create-MessageHeader-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"enum":["MessageHeader"],"type":"string","description":"FHIR resource type."},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"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":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"The Simple Pharmacy"}}}}}},"sender":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","example":"HALLGARTH SURGERY"}}},"source":{"type":"object","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"}},"description":"The organisation originating the message."},"focus":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"}}}}}}},"description":"MessageHeader"},"Create-MedicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49bb6"},"resource":{"required":["resourceType","extension","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique identifier for this line item on the prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"intent":{"enum":["order","original-order","instance-order"],"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"},"category":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being prescribed. \nThis must be represented using a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"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","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the requester of a prescription. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"Denotes whether a prescription is an acute, a repeat, or an eRD."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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."}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","example":"d"}},"description":"For eRD prescriptions only. \nDuration of each issue in days; defaults to 28.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated pharmacy that a prescription is going to.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":428673006}},"description":"The quantity of a medication item being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"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"}},"description":"MedicationRequest"},"Create-Patient-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},"Create-PractitionerRole-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"enum":["PractitionerRole"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code"],"type":"string","description":"Codesystem URL for the spurious code."},"value":{"type":"string","description":"Spurious code.","example":"677677"}},"description":"The prescriber or dispenser's spurious code."}]},"description":"An array containing role-specific identifiers for the prescriber"},"practitioner":{"oneOf":[{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser.\n"},{"type":"object","properties":{"identifier":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmp-number"],"type":"string","description":"Codesystem URL for the GMP number."},"value":{"type":"string","description":"The GMP number.","example":"G1234567"}},"description":"The prescriber's GMP number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]}},"description":"An identifier if part of an organization-only responsible practitioner.\n"}]},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object.","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to an Organization resource.\n"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}}},"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"}},"description":"PractitionerRole"},"Create-Practitioner-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"enum":["Practitioner"],"type":"string","description":"FHIR resource type."},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/din-number"],"type":"string","description":"Codesystem URL for the DIN Number."},"value":{"type":"string","description":"The DIN Number.","example":"977677"}}},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gmc-number"],"type":"string","description":"Codesystem URL for the GMC Number."},"value":{"type":"string","description":"GMC Number","example":"C6095103"}},"description":"The prescriber's GMC number."},{"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/gphc-number"],"type":"string","description":"Codesystem URL for the GPhC number."},"value":{"type":"string","description":"GPhC number.","example":"2095103"}},"description":"The prescriber's GPhC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/hcpc-number"],"type":"string","description":"Codesystem URL for the HCPC number."},"value":{"type":"string","description":"The HCPC number.","example":"CH001234"}},"description":"The prescriber or dispenser's HCPC number."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/nmc-number"],"type":"string","description":"Codesystem URL for the NMC number."},"value":{"type":"string","description":"The NMC number.","example":"71A2998E"}},"description":"The prescriber's NMC number."}]},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Toboggan"},"given":{"type":"array","items":{"type":"string","example":"Mantis"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Dr"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the requester or responsible practitioner of a prescription."}},"description":"Practitioner"},"Create-Organization-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},"Create-List-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"},"Create-CommunicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},"Create-Location-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","items":{"type":"object","properties":{"line":{"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"Organisation address."}},"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"}},"description":"Location"},"Create-Provenance-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"enum":["Provenance"],"type":"string","description":"FHIR resource type."},"id":{"type":"string","example":"28828c55-8fa7-42d7-916f-fcf076e0c10e"},"target":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["MedicationRequest"],"type":"string"},"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}}}},"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"},"recorded":{"type":"string","description":"The time the prescription was signed.","format":"date-time","example":"2023-03-13T13:47:00+00:00"},"agent":{"type":"array","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"}}}}},"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"},"signature":{"type":"array","items":{"required":["when"],"type":"object","properties":{"type":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["urn:iso-astm:E1762-95:2013"],"type":"string","description":"FHIR codesystem URN for signatures"},"code":{"enum":["1.2.840.10065.1.12.1.1"],"type":"string"}}},"description":"The type of signature attached to a prescription."},"when":{"type":"string","description":"The time the prescription was signed. This must be the timestamp found in the prepare endpoint response.","format":"date-time","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="}}},"description":"The Advanced Electronic Signature (AES) attached to a prescription."}},"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."}},"description":"Provenance"},"Cancel-Request-MessageHeader-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order-update"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order Update"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"source":{"type":"object","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}},"description":"The organisation originating the message."}}}},"description":"MessageHeader"},"Cancel-Request-MedicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["statusReason","resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"enum":["MedicationRequest"],"type":"string","description":"FHIR resource type."},"statusReason":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason"],"type":"string","description":"codesystem URL for the cancellation reason."},"code":{"enum":["0001","0002","0003","0004","0005","0006","0007","0008","0009"],"type":"string","description":"cancel reason code.","example":"0004"},"display":{"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"],"type":"string","description":"the display accompanying the cancel reason code.","example":"Clinical grounds"}}}}},"description":"The reason the line item is being cancelled.\nThe reason must be in line with the cancellation reasons vocabulary <link>.\n"},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique ID for each line item on a prescription."},"status":{"enum":["cancelled"],"type":"string","description":"The status of a MedicationRequest object. \nThis must be consistent across all MedicationRequests in a Bundle.\n"},"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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-category"],"type":"string","description":"Codesystem URL for the prescription category."},"code":{"enum":["inpatient","outpatient","community","discharge"],"type":"string","description":"Code for the prescription category."},"display":{"enum":["Inpatient","Outpatient","Community","Discharge"],"type":"string","description":"Display value for the prescription category."}}}}}},"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"},"medicationCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being cancelled. \nThis must be represented as a VMP or AMP concept from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \nA Patient resource within the Bundle must be referenced.\n"},"requester":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle.","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the author of a cancel request. \nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"courseOfTherapyType":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy"],"type":"string","description":"Codesystem URL for the prescription treatment type."},"code":{"enum":["acute","continuous","continuous-repeat-dispensing"],"type":"string","description":"Code identifying the prescription treatment type.\n* acute: acute prescriptions\n* continuous: repeat prescriptions\n* continuous-repeat-dispensing: eRD prescriptions\n"},"display":{"enum":["Short course (acute) therapy","Continuous long term therapy","Continuous long term (repeat dispensing)"],"type":"string","description":"Display value for the prescription treatment type."}}}}},"description":"The treatment type of the prescription, i.e. whether it is an acute, repeat, or eRD prescription."},"dosageInstruction":{"type":"array","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","items":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}}},"description":"Supplemental instruction or warnings to the patient.\nE.g. \"with meals\", \"may cause drowsiness\".\n"},"patientInstruction":{"type":"string","description":"Patient or consumer oriented instructions.","example":"Some relevant instructions for the patient."},"timing":{"type":"object","properties":{"repeat":{"type":"object","properties":{"boundsDuration":{"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":4.5},"unit":{"type":"string","example":"day"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"d"}},"description":"The bounds duration at which the medication should be consumed.\nE.g. \"4.5\" for 4 & 1/2 days.\n"},"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"}},"description":"The frequency and period over which the medication should be consumed."}},"description":"A structured expression of dose frequency."},"asNeeded":{"type":"object","properties":{"asNeededBoolean":{"enum":[true],"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"},"asNeededCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}},"text":{"type":"string","description":"Plain text representation of the concept."}},"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"}},"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"},"site":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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"}}}}},"description":"Body site to administer to."},"route":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"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":{"enum":[true],"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"}}}}},"description":"A structured expression of how the medication should be consumed."},"method":{"type":"object","properties":{"coding":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL"},"code":{"type":"string","description":"Valid SNOMED code identifying the technique for administering medication.","example":"129326001"},"display":{"type":"string","example":"Injection"}}}}},"description":"Technique for administering medication."},"doseAndRate":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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."}},"description":"The kind of dose or rate specified, for example, ordered or calculated."}}},{"type":"object","properties":{"dose":{"type":"array","items":{"type":"object","properties":{"doseRange":{"type":"object","properties":{"low":{"type":"object","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"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"The high limit. The boundary is inclusive."}},"description":"A dose that may be in a given low / high range."},"doseQuantity":{"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":"capsule"},"system":{"type":"string","example":"http://snomed.info/sct"},"code":{"type":"string","example":"mg"}},"description":"The amount of medication per dose, as a simple coded quantity."}}},"description":"Amount of medication per dose."},"rate":{"type":"array","items":{"type":"object","properties":{"rateRatio":{"type":"object","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"}}}},"description":"Where the rate is expressed as coded numerator and denominator values."},"rateRange":{"type":"object","properties":{"low":{"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":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The low limit. The boundary is inclusive."},"high":{"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":2},"unit":{"type":"string","example":"liter per minute"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"L/min"}},"description":"The high limit. The boundary is inclusive."}},"description":"Where the unit of measure applicable to a rate range is defined within UCUM the rateRange structure can be used."},"rateQuantity":{"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":"milliliters per hour"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mL/h"}},"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"}}},"description":"Amount of medication per unit of time."}}}]},"description":"Amount of medication administered."},"maxDosePerPeriod":{"type":"object","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"}}}},"description":"Upper limit on medication per unit of time."},"maxDosePerAdministration":{"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":60.5},"unit":{"type":"string","example":"milligram"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg"}},"description":"Used to define a maximum dose for a single administration."},"maxDosePerLifetime":{"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":600.5},"unit":{"type":"string","example":"milligram per square metre"},"system":{"type":"string","example":"http://unitsofmeasure.org"},"code":{"type":"string","example":"mg/m2"}},"description":"Used to define the maximum cumulative dose over the lifetime of a patient."}}},"description":"The dosage instructions for a prescription. \nThese must be expressed as both structured dose and text.\n"},"note":{"type":"array","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"}}},"description":"Specific additional instructions for a prescription line item, e.g. a change in dosage."},"dispenseRequest":{"required":["extension","quantity"],"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType"],"type":"string","description":"Extension URL for DM-PerformerSiteType."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/dispensing-site-preference"],"type":"string","description":"Codesystem URL to hold the nomination."},"code":{"enum":["P1","P2","P3","0004"],"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","example":"P1"}}}},"description":"The type of nominated dispensing site a prescription is going to."},"description":"FHIR extension array."},"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","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"}},"description":"The start and end dates of a prescription."},"expectedSupplyDuration":{"type":"object","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":{"enum":["http://unitsofmeasure.org"],"type":"string","description":"Codesystem URL for UCUM."},"code":{"type":"string","description":"The UCUM unit of measure code for days.","default":"d"}},"description":"For eRD prescriptions only. \nThe duration of each issue within an eRD prescription. This must be expressed in days.\n"},"performer":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"For nominated prescriptions only, including one-off nominations.\nThe ODS code of the nominated dispenser.\n"},"quantity":{"type":"object","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":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"code":{"type":"integer","description":"The dm+d code associated with a given unit of measure.","example":"428673006"}},"description":"The quantity of the medication being prescribed."}},"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"},"substitution":{"type":"object","properties":{"allowedBoolean":{"enum":[false],"type":"boolean"}},"description":"This is a boolean value that should always default to false because EPS does not support substitutions."}},"description":"A cancel request is effectively an update to a prescription, expressed through a MedicationRequest resource for each line item that is being cancelled."}},"description":"MedicationRequest"},"Cancel-Request-Patient-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},"Cancel-Request-PractitionerRole-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."}}},"description":"An array containing role-specific identifiers for the prescriber or dispenser."},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system"],"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"the telephone number of a given prescriber or dispenser."}},"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"}},"description":"PractitionerRole"},"Cancel-Request-Practitioner-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"family":{"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"type":"array","items":{"type":"string","example":"Jane"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's name."}},"description":"Details of the author or responsible party of a cancel request."}},"description":"Practitioner"},"Cancel-Request-Organization-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},"Cancel-Request-List-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"},"Cancel-Request-CommunicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},"Cancel-Request-Location-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","items":{"type":"object","properties":{"line":{"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"Organisation address."}},"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"}},"description":"Location"},"Cancel-Response-MessageHeader-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","eventCoding","source"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"MessageHeader"},"eventCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/message-event"],"type":"string","description":"codesystem URL for message events."},"code":{"enum":["prescription-order-response"],"type":"string","description":"code for the message event."},"display":{"enum":["Prescription Order Response"],"type":"string","description":"display value accompanying the code for the message event."}},"description":"The type of message event being generated."},"source":{"type":"object","properties":{"endpoint":{"type":"string","description":"ODS code of the organisation originating the message, expressed as a URN.","example":"urn:nhs-uk:addressing:ods:A83008"}},"description":"The organisation originating the message."}}}},"description":"MessageHeader"},"Cancel-Response-MedicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","status","intent","category","medicationCodeableConcept","subject","requester","groupIdentifier","courseOfTherapyType","dosageInstruction","dispenseRequest","substitution"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type","default":"MedicationRequest"},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason"],"type":"string","description":"codesystem URL for cancel responses."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["status"],"type":"string"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history"],"type":"string","description":"codesystem URL for cancel response."},"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":{"enum":["statusdate"],"type":"string","description":"URL to identify the time that the cancel response was received"},"valueDateTime":{"type":"string","description":"The time that the cancel response was received","example":"2022-08-23T22:21:07+00:00"}}}]},"description":"FHIR extension array"}},"description":"cancel response for a successful or unsuccessful cancel request."},{"type":"object","properties":{"url":{"enum":["https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["authorisationExpiryDate"],"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"},"valueDateTime":{"type":"string","description":"A date value","example":"2024-11-30"}},"description":"authorisationExpiryDate"},"description":"FHIR extension array."}},"description":"Extension that contains information pertinent to repeat and eRD prescriptions."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType"],"type":"string","description":"URL of the extension definition."},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/prescription-type"],"type":"string","description":"codesystem URL for the 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"}},"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"}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement"],"type":"string","description":"URL of the extension definition."},"valueCodeableConcept":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement"],"type":"string","description":"Codesystem URL for endorsements."},"code":{"enum":["ACBS","AF","CC","FS","SLS"],"type":"string","description":"The endorsement code."}}}}}}},"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"},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner"],"type":"string","description":"URL of the extension definition."},"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"}}}},"description":"A reference to the responsible practitioner of a prescription, where they are distinct to the prescriber who requested the prescription."},{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug"],"type":"string","description":"URL of the extension definition."},"extension":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"url":{"enum":["quantityWords"],"type":"string","description":"URL for the controlled drug quantity"},"valueString":{"type":"string","description":"quantity expressed in words","example":"twenty eight"}},"description":"object containing the quantity in words"},{"type":"object","properties":{"url":{"enum":["schedule"],"type":"string","description":"URL for the controlled drug schedule"},"valueCoding":{"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug"],"type":"string","description":"codesystem to identify the controlled drug schedule"},"code":{"enum":["CD1","CD2","CD3","CD4","CD5"],"type":"string","description":"a code to identify the controlled drug schedule"},"display":{"type":"string","description":"a human readable display to accompany the controlled drug schedule code","example":"Schedule 2"}}}},"description":"object containing the schedule of the controlled drug"}]},"description":"FHIR extension array."}},"description":"The quantity of a controlled drug, expressed in words"}]},"description":"FHIR extension array."},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-item-number"],"type":"string","description":"Codesystem URL for the line item ID."},"value":{"type":"string","description":"The unique ID for a given line item.","example":"dd11b07e-e137-488e-bc28-ab50384208b5"}}},"description":"The unique ID for each line item on a prescription."},"status":{"enum":["active","cancelled","completed"],"type":"string","description":"The status of a MedicationRequest object. \n\nThis must be consistent across all MedicationRequests in a Bundle.\n"},"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","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["http://snomed.info/sct"],"type":"string","description":"SNOMED codesystem URL."},"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"}}}}},"description":"The medication that is being cancelled. \n\nThis must be represented as a VMP or AMP concepts from the dm+d.\n"},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"Reference object to identify the patient a prescription is for. \n\nA Patient resource within the Bundle must be referenced.\n"},"requester":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a PractitionerRole resource within the Bundle","example":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}},"description":"Reference object to identify the author of a prescription. \n\nA PractitionerRole resource within the Bundle must be referenced.\n"},"groupIdentifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription-order-number"],"type":"string","description":"Codesystem URL for the short-form Prescription ID."},"value":{"pattern":"/^[0-9a-fA-F]{6}-[0-9a-fA-F]{6}-[0-9a-fA-F]{5}[0-9a-zA-Z+]{1}","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","example":"04F4C2-A99968-7F717P"},"extension":{"type":"array","items":{"required":["valueIdentifier","url"],"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId"],"type":"string"},"valueIdentifier":{"required":["value","system"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/prescription"],"type":"string","description":"Codesystem URL for the long-form Prescription ID."},"value":{"type":"string","description":"The long-form prescription ID.","example":"613452a2-ca1b-4a76-8191-d92e1f48928c"}},"description":"The long-form identifier of the prescription."}}},"description":"FHIR extension array containing the long-form Prescription ID."}},"description":"An object containing the short-form and long-form Prescription ID."},"dispenseRequest":{"type":"object","properties":{"performer":{"type":"object","properties":{"extension":{"type":"array","items":{"type":"object","properties":{"url":{"enum":["https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer"],"type":"string","description":"codesystem URL for the dispenser."},"valueReference":{"type":"object","description":"A reference to a PractitionerRole resource for the dispenser.","example":"urn:uuid:3c8dbf32-76c1-47e0-b71f-061a3de70b53"}}},"description":"Details of the dispenser who downloaded the prescription"},"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"The name of the dispensing organisation that downloaded the prescription"}},"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"}},"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"}},"description":"A cancel response and any information associated with it will be contained within a MedicationRequest resource."}},"description":"MedicationRequest"},"Cancel-Response-Patient-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name","gender","birthDate","address"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Patient"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}},"description":"The patient's NHS number."},"name":{"type":"array","items":{"required":["family"],"type":"object","properties":{"use":{"enum":["usual"],"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","example":"usual"},"family":{"maxLength":35,"type":"string","description":"Family name (often called Surname).","example":"Smith"},"given":{"maxItems":5,"type":"array","items":{"maxLength":35,"type":"string","example":"Jane"},"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"]},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals.","example":["Mrs"]},"suffix":{"type":"array","items":{"type":"string","example":"PhD"},"description":"Name suffixes and postnominals.","example":["PhD"]}}},"description":"The patient's name. A prescription must only contain a single name and address for the patient."},"gender":{"enum":["male","female","other","unknown"],"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","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","format":"date","example":"2010-10-22"},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","temp"],"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","example":"home"},"line":{"maxItems":5,"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"The patient's address. A prescription must only contain a single name and address for the patient."},"telecom":{"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with communication system.","example":"home"},"value":{"type":"string","description":"The phone number.","example":"01632960587"}}},"description":"The patient's telephone number."},"generalPractitioner":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}}},"description":"General practice (not practitioner) with which the patient is or was registered."}},"additionalProperties":false,"description":"The patient the prescription is for."}},"description":"Patient"},"Cancel-Response-Practitioner-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["resourceType","identifier","name"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Practitioner"},"identifier":{"type":"array","items":{"oneOf":[{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-user-id"],"type":"string","description":"Codesystem URL for the SDS User Identifier."},"value":{"type":"string","description":"SDS User Identifier.","example":"555086689107"}},"description":"The prescriber or dispenser's SDS User Identifier."},{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.hl7.org.uk/Id/professional-code"],"type":"string","description":"Codesystem URL for the Professional Code."},"value":{"type":"string","description":"The Professional Code.","example":"6095103"}}}]},"description":"An array containing the prescriber's professional codes and identifiers."},"name":{"required":["family"],"type":"array","items":{"type":"object","properties":{"family":{"type":"string","items":{"type":"string","example":"Smith"},"description":"Family name (often called Surname)."},"given":{"type":"array","items":{"type":"string","example":"Clark"},"description":"Given names, including any middle names."},"prefix":{"type":"array","items":{"type":"string","example":"Mrs"},"description":"Name prefixes, titles, and prenominals."}}},"description":"The prescriber's or dispenser's 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"}},"description":"Practitioner"},"Cancel-Response-PractitionerRole-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["practitioner","organization"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"PractitionerRole"},"identifier":{"type":"array","items":{"type":"object","properties":{"SDS Role Profile ID":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/sds-role-profile-id"],"type":"string","description":"Codesystem URL for the SDS role profile ID."},"value":{"type":"string","description":"SDS role profile ID.","example":"555086415105"}},"description":"The prescriber or dispenser's SDS Role Profile ID."}}},"description":"An array containing role-specific identifiers for the prescriber or dispenser."},"practitioner":{"type":"object","properties":{"reference":{"type":"string","description":"A FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"description":"A reference to a Practitioner resource for a given prescriber or dispenser."},"organization":{"type":"object","properties":{"reference":{"type":"string","description":"a FHIR reference object","example":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa38b"}},"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"},"code":{"type":"array","items":{"type":"object","properties":{"coding":{"type":"array","items":{"required":["system","code"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode"],"type":"string","description":"Codesystem URL for the job role code."},"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"}}}}}},"description":"The SDS job role code for a given prescriber or dispenser."},"telecom":{"required":["system"],"type":"array","items":{"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"the telephone number of a given prescriber or dispenser."}},"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"}},"description":"PractitionerRole"},"Cancel-Response-Organization-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["name","address","telecom","partOf"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Organization"},"identifier":{"type":"array","items":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"description":"An array containing the ODS code of the organisation"},"name":{"type":"string","description":"Organisation name."},"address":{"type":"array","items":{"type":"object","properties":{"use":{"enum":["home","work","billing","temp"],"type":"string","description":"The purpose of the address.","default":"work"},"type":{"enum":["postal","physical","both"],"type":"string","description":"The type of address.","default":"both"},"line":{"type":"array","items":{"type":"string"},"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","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"}}},"description":"Organisation address."},"telecom":{"type":"array","items":{"required":["system","use","value"],"type":"object","properties":{"system":{"enum":["phone"],"type":"string","description":"Means of communication allowed is Phone only","default":"phone"},"use":{"enum":["home","work","temp","mobile"],"type":"string","description":"Location associated with the contact details provided.","default":"work"},"value":{"type":"string","description":"The phone number.","example":"01234567890"}}},"description":"The telephone number associated with the organisation."},"partOf":{"required":["display"],"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}},"display":{"type":"string","description":"the name of the managing organisation","example":"NHS County Durham CCG"}},"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)."}},"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"}},"description":"Organization"},"Cancel-Response-List-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"List"},"status":{"enum":["current"],"type":"string","description":"The status of the List object. Must always default to \"current\"."},"mode":{"enum":["snapshot"],"type":"string","description":"The type of List being represented. Must always default to \"snapshot\"."},"code":{"type":"object","properties":{"text":{"enum":["Repeat Medications"],"type":"string","description":"A description of what the list represents. Must always default to \"Repeat Medications.\""}},"description":"A description of what the list represents."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"entry":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","description":"A medication item, represented using its dm+d name and description.","example":"Bendroflumethiazide 2.5mg tablets (3/6)"}},"description":"FHIR wrapper object to contain the medication item."},"description":"list of repeat medication items prescribed to the patient."}},"description":"For repeat and eRD prescriptions only. \n\nA structured list of repeat medication items prescribed to the patient.\n"}},"description":"List"},"Cancel-Response-CommunicationRequest-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"required":["payload"],"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"CommunicationRequest"},"status":{"enum":["active"],"type":"string","description":"The status of the CommunicationRequest. Must always default to \"active\"."},"subject":{"type":"object","properties":{"reference":{"type":"string","description":"A reference to a Patient resource within the Bundle.","example":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}},"description":"A reference object to identify the patient the prescription is for."},"payload":{"type":"array","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","properties":{"reference":{"type":"string","description":"A reference to a List resource within the Bundle"}},"description":"A reference to the list of repeat medications that the patient is on."}}},"description":"Additional instructions provided as part of this prescription."},"requester":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/ods-organization-code"],"type":"string","description":"Codesystem URL for the ODS code."},"value":{"type":"string","description":"ODS code.","example":"A83008"}}}},"description":"Details of the prescribing organisation originating the instructions."},"recipient":{"type":"array","items":{"type":"object","properties":{"identifier":{"required":["system","value"],"type":"object","properties":{"system":{"enum":["https://fhir.nhs.uk/Id/nhs-number"],"type":"string","description":"FHIR codesystem URL for NHS numbers.","format":"url"},"value":{"pattern":"^\\d{10}$","type":"string","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","example":"9000000009"}}}}},"description":"Details of the patient receiving the instructions."}},"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"}},"description":"CommunicationRequest"},"Cancel-Response-Location-Resource":{"required":["fullUrl"],"type":"object","properties":{"fullUrl":{"type":"string","description":"object URL for the resource","example":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},"resource":{"type":"object","properties":{"resourceType":{"type":"string","description":"FHIR resource type.","default":"Location"},"address":{"type":"array","items":{"type":"object","properties":{"line":{"type":"array","items":{"type":"string"},"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","example":["1 Trevelyan Square","Boar Lane","City Centre","Leeds","West Yorkshire"]},"postalCode":{"type":"string","description":"Postal code of the address.","example":"LS1 6AE"}}},"description":"Organisation address."}},"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"}},"description":"Location"}},"parameters":{"BearerAuthorization":{"name":"Authorization","in":"header","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,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","format":"^Bearer\\ [[:ascii:]]+$","example":"Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM"}},"RoleId":{"name":"NHSD-Session-URID","in":"header","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 and should only be supplied when using user-restricted access. Do not send it when using application-restricted access.\n","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"pattern":"^[0-9]+$","type":"string","example":"555254240100"}},"RequestID":{"name":"X-Request-ID","in":"header","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","required":true,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"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}$","type":"string","example":"60e0b220-8136-4ca5-ae46-1d97ef59d068"}},"CorrelationID":{"name":"X-Correlation-ID","in":"header","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","required":false,"deprecated":false,"allowEmptyValue":false,"explode":false,"allowReserved":false,"schema":{"type":"string","example":"11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"}}},"securitySchemes":{"nhs-cis2-aal3":{"$ref":"https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/nhs-cis2-aal3"},"app-level0":{"$ref":"https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/app-level0"},"app-level3":{"$ref":"https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/app-level3"}}},"security":[{"nhs-cis2-aal3":[]},{"app-level0":[]},{"app-level3":[]}],"x-nhsd-apim":{"target-attributes":[{"name":"party-key","required":false,"header":"nhsd-party-key"},{"name":"asid","required":false,"header":"nhsd-asid"},{"name":"apiproxy.name","required":true,"header":"apiproxy"},{"name":"id","required":false,"header":"nhsd-application-id"}],"target":{"type":"external","healthcheck":"/_status","url":"https://prescribe-dispense.int.eps.national.nhs.uk","security":{"type":"mtls","secret":"fhir-facade-mtls-1"}},"access":[{"title":"FHIR Dispensing Service API User Restricted","grants":{"nhs-cis2-aal3":[]},"visible":true},{"title":"FHIR Dispensing Service API Application Restricted","grants":{"app-level3":[]},"visible":true}],"ratelimiting":{"proxy":{"timeunit":"minute","limit":20000},"app-default":{"timeunit":"minute","limit":20000}},"monitoring":true,"temporary":false,"target-identity":[{"name":"cis2-uuid","header":"nhsd-identity-uuid"},{"name":"cis2-urid","header":"nhsd-session-urid"}],"depflag":false,"productidcheck":false},"x-spec-publication":{"operation-order":[{"operations":[{"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"}]}]}}