{"openapi":"3.0.3","info":{"title":"FHIR Prescribing 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### Prescribers in primary and secondary care can: \n* create a prescription\n* encode data so the prescription is ready to sign\n* cancel a prescription\n\nCreating and cancelling a prescription are both done by the prescriber. Encoding data so the prescription is ready to sign is done by the prescribing system.\n\n## 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### Prescribing\nThe API supports prescribers in primary and secondary care settings. This means prescriptions are sent from a GP or NHS hospital to a pharmacy. For these workflows, the API is [in production](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#statuses).\n* it is available in integration and production\n* we might make breaking changes, but only if we cannot avoid it, and we will give advance notice\n\n### Roadmap\nTo see our roadmap, or to suggest, comment or vote on features for this API, see our [interactive product backlog](https://nhs-digital-api-management.featureupvote.com/?tag=eps-fhir-api).\n\nIf you have any other queries, please [contact us](https://digital.nhs.uk/developer/help-and-support).\n\n## Service level\nThis API is a platinum service, meaning it is operational and supported 24 hours a day, 365 days a year.\n\nFor more details, see [service levels](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#service-levels).\n\n## Technology\nThis API is [RESTful](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#basic-rest).\n\nIt conforms to the [FHIR](https://digital.nhs.uk/developer/guides-and-documentation/our-api-technologies#fhir) global standard for health care data exchange, specifically to [FHIR R4 (v4.0.1)](https://hl7.org/fhir/r4/), except that it does not support the [capabilities](http://hl7.org/fhir/R4/http.html#capabilities) interaction.\n\nIt includes some country-specific FHIR extensions, which are built against [FHIR UK Core](https://simplifier.net/guide/ukcoreversionhistory/home?version=current).\n\nYou do not need to know much about FHIR to use this API - FHIR APIs are just RESTful APIs that follow specific rules. In particular:\n* resource names are capitalised and singular, for example `/Patient` not `/patients`\n* array names are singular, for example `line` not `lines` for address lines\n* data items that are country-specific and thus not included in the FHIR global base resources are usually wrapped in an `extension` object\n\nThere are [libraries and software development kits available](https://digital.nhs.uk/developer/guides-and-documentation/api-technologies-at-nhs-digital#fhir-libraries-and-sdks) to help with FHIR API integration.\n\n## Network access\nThis API is available on the internet and, indirectly, on the [Health and Social Care Network (HSCN)](https://digital.nhs.uk/services/health-and-social-care-network).\nTo use this API with [NHS smartcards](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/nhs-smartcards-for-developers), the end user needs an HSCN connection, although internet-facing alternatives to smartcards are available.\n\nFor more details see [Network access for APIs](https://digital.nhs.uk/developer/guides-and-documentation/network-access-for-apis).\n\n## Security and authorisation\nThis API has 1 access mode:\n* user-restricted access\n\n### User-restricted access\nThe EPS APIs are mostly [user-restricted](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation#user-restricted-apis),\nmeaning we authenticate the end user.\n\nEPS only supports [CIS2 separate authentication and authorisation](https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-separate-authentication-and-authorisation),\ndo not use combined authentication and authorisation.\n\n## Environment and testing\n| Environment      | Base URL                                                    |\n|------------------|-------------------------------------------------------------|\n| Sandbox          | `https://sandbox.api.service.nhs.uk/fhir-prescribing`       |\n| Integration test | `https://int.api.service.nhs.uk/fhir-prescribing`           |\n| Production       | `https://api.service.nhs.uk/fhir-prescribing`               |\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.                                                                  | `/$prepare`, `/$process-message`                                                          |\n| 400         | value         | MessageHeader.eventCoding.code must be one of: prescription-order, prescription-order-update, dispense-notification.                                                             | MessageHeader's `eventCoding.code` is not supported.                                                           | `/$prepare`                                                           |\n| 400         | value         | MedicationRequest.intent must be order, original-order or instance-order.                                                                                                        | Bundle contains a plan or reflex. Only order, original-order and instance-order are supported.                 | `/$prepare`, `/$process-message`                                      |\n| 400         | value         | Expected all MedicationRequests to have the same value for dispenseRequest.performer. Received [\"1f8cb914-feb0-4ef8-b676-bf2dfa5ac47d\", \"8b676178-768c-445a-98a9-bea45931fcd8\"]. | A MedicationRequest field that should be consistent has multiple unique values across requests.                | `/$prepare`, `/$process-message`                                      |\n| 400         | value         | Bundle resource Practitioner.identifier expected exactly one professional code from GMC/NMC/GPhC/HCPC/professional-code.                                                         | Practitioner contains a gmp-number identifier, which is invalid.                                               | `/$prepare`                                                           |\n| 400         | value         | Expected all MedicationRequests to have a different value for identifier.                                                                                                        | MedicationRequests contains a duplicate identifier.                                                            | `/$prepare`                                                           |\n| 400         | value         | The Bundle must contain exactly one MedicationRequest if MessageHeader.eventCoding.code is 'prescription-order-update'.                                                          | The requested operation can only be performed on a single medication request.                                  | `/$process-message`                                                   |\n| 400         | value         | Expected MedicationRequest to have a value for statusReason.                                                                                                                     | Specified field is missing.                                                                                    | `/$process-message`                                                   |\n| 400         | not-supported | Prescribing functionality is disabled.                                                                                                                                           | Requested operation is not enabled/supported.                                                                  | `/$prepare`                                                           |\n| 400         | structure     | MedicationRequest cannot contain both medicationReference and medicationCodeableConcept fields.                                                                                  | MedicationRequest contains both `medicationReference` and `medicationCodeableConcept` fields.                  | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | practitionerRole.practitioner populated incorrectly. Please populate with Reference to resource within Bundle.                                                                   | The specified field should be a reference but is not.                                                          | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | Unexpected field of practitionerRole.healthcareService.                                                                                                                          | Specified field is provided when it should not have been.                                                      | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | Required field organization.partOf is missing.                                                                                                                                   | Specified field is not provided when it should have been.                                                      | `/$prepare`, `/$process-message`                                      |\n| 400         | invalid       | 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`                                                   |\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`                                                   |\n| 500         | invalid       | *N/A*                                                                                                                                                                            | An internal error occurred. Details should be specified in attached OperationOutcome.                          | `/$prepare`                                                           |\n| 403         | forbidden     | Your app does not have permission to access prescribing functionality.                                                                                                           | App does not have permission to use the requested function.                                                    | `/$prepare`                                                           |\n| 403         | forbidden     | Dispensing functionality can only be accessed using the user-restricted access mode.                                                                                             | The requested function requires user-restricted access mode.                                                   | `/$prepare`                                                           |\n\n### System Errors\n#### Prescribing Errors\n| Error Code | EPS Issue Code            | Description                                                                 | Endpoints           |\n|------------|---------------------------|-----------------------------------------------------------------------------|---------------------|\n| invalid    | *N/A*                     | A generic error occurred.                                                   | `/$prepare`         |\n| duplicate  | DUPLICATE_PRESCRIPTION_ID | A prescription with the same ID already exists.                             | `/$prepare`         |\n| invalid    | TOO_FEW_VALUES_SUBMITTED  | A mandatory value is missing, or an insufficient number have been provided. | `/$process-message` |\n\n#### Cancellation Errors\n| Error Code | EPS Issue Code         | Description                                                                                 | Endpoints           |\n|------------|------------------------|---------------------------------------------------------------------------------------------|---------------------|\n| invalid    | *N/A*                  | A generic error occurred.                                                                   | `/$process-message` |\n| not-found  | PRESCRIPTION_NOT_FOUND | The requested prescription could not be found.                                              | `/$process-message` |\n| *N/A*      | R-0002                 | Prescription was with dispenser so not cancelled, but marked for cancellation.              | `/$process-message` |\n| *N/A*      | R-0003                 | Prescription was with dispenser active so not cancelled, but marked for cancellation.       | `/$process-message` |\n| *N/A*      | R-0004                 | Prescription was not cancelled as it has been dispensed.                                    | `/$process-message` |\n| *N/A*      | R-0005                 | Prescription was not cancelled as it has expired.                                           | `/$process-message` |\n| *N/A*      | R-0006                 | Prescription has already been cancelled.                                                    | `/$process-message` |\n| *N/A*      | R-0007                 | Cancellation already requested by another prescriber.                                       | `/$process-message` |\n| not-found  | R-0008                 | Prescription not found.                                                                     | `/$process-message` |\n| *N/A*      | R-0010                 | Prescription was not cancelled as it has been not dispensed.                                | `/$process-message` |\n| processing | R-5000                 | Unable to process message. Possibly due to a mismatch of NHS Numbers or prescription ID's.  | `/$process-message` |\n\n### 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-prescribing"}],"paths":{"/FHIR/R4/$prepare":{"post":{"tags":["prescribing"],"summary":"Encode prescription data so it's ready to sign - Prescribing","description":"## Overview\nUse this endpoint to convert an unsigned FHIR prescription into the piece of data that needs to be digitally signed.\n\nThis action is done by the prescribing system and API, not the prescriber.\n\nTo generate a Provenance resource, guidance can be found at this link [here](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription).\n","operationId":"prepare-prescription","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.\n","required":true,"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","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."},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prepare request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"},"display":"ASDA INSTORE PHARMACY"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A valid acute, primary care prescription order request, with multiple dosage items.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}},{"sequence":2,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A Valid repeat, primary care prepare request","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"a Valid eRD, primary care prepare request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$prepare","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"},"practitioner":{"identifier":{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"}}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}},"required":true},"responses":{"200":{"description":"Successful conversion.","content":{"application/fhir+json":{"schema":{"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."},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT5PQzhKTVpyTk5Fb0FlRzZFSml6NzhCUmRhdlFxV3N6dzdqUkFqRk45a3ZnPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A successful response to an acute with multiple dosages, primary care prescription order request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2022-10-21T13:47:00+00:00"},{"name":"algorithm","valueString":"RS1"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT50MXRjWXRQNURydjdwMEhQMEVNTG00WnZUeUdtMkNYcUlSZS9KV2xabkRBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+aDBHZnFHSjl4VG4rMTMvbytlbG1iT05JRFY0PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2022-10-21T13:47:00+00:00"},{"name":"algorithm","valueString":"RS1"}]}},"responsible-party-org":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"Parameters","parameter":[{"name":"digest","valueString":"PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMDQveG1sZHNpZy1tb3JlI3JzYS1zaGEyNTYiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyNzaGEyNTYiPjwvRGlnZXN0TWV0aG9kPjxEaWdlc3RWYWx1ZT44aC9RRGRMYUlHY2FsZVN4bkFPVk9yR0dPd3dHcXhrNVRTaDlRejdaZ3UwPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="},{"name":"timestamp","valueString":"2024-12-09T11:50:04+00:00"},{"name":"algorithm","valueString":"RS256"}]}}}}}},"4XX":{"description":"Invalid request.","content":{"application/fhir+json":{"schema":{"type":"object","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 prepare request.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}}}}}}},"deprecated":false,"security":[{"nhs-cis2-aal3":[]}]}},"/FHIR/R4/$process-message#prescription-order":{"post":{"tags":["prescribing"],"summary":"Create a new prescription - Prescribing","description":"## Overview\nUse this endpoint to create a new prescription in EPS.\n\nThe prescription must include a digital signature, which can be generated using the [Signing Service](https://digital.nhs.uk/developer/api-catalogue/signing-service).\n\nThe `#prescription-order` in the URL has been added to distinguish this from the other operations which\ncan be performed using the [`$process-message` endpoint](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/OperationDefinition/process-message). It is not required in requests to the API.\n\nThe only difference between the prepare requests and create request should be the inclusion of the provenance resource.\n\nTo generate a Provenance resource, guidance can be found at this link [here](https://digital.nhs.uk/services/electronic-prescription-service/guidance-for-developers/how-to-embed-a-signature-within-a-prescription).\n","operationId":"send-prescription-order-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.\n","required":true,"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","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."},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"},"display":"ASDA INSTORE PHARMACY"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"FA565"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A valid acute, primary care prescription order request, with multiple dosage items.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"a3f5d78a-17aa-4877-a1af-3fa7d42a23b3"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"dd0cdc7b-db3f-4f2f-aa21-cb4d77432264"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}},{"sequence":1,"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"8a3a3a72-7a3d-41a1-851d-e7232d752089"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"e4e3b6b9-b2b5-4776-a22f-9dba5063f4ba"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"1567a273-834b-410d-b739-b5519d1d4b24"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"62DB25-A83008-5CBA2Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"733524a7-5789-442b-b7ab-6a96cf522871"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2024-03-05","end":"2024-04-05T23:59:59Z"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2021-02-11T16:35:38+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2024-03-05T13:28:16+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+dTN3STVZdjVTY29SckhyRlB0UThzK2Jqb084PTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueInteger":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"eRD-primary":{"summary":"eRD","description":"A valid eRD, primary care prescription order request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21","end":"2022-11-21T23:59:59Z"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order","display":"Prescription Order"},"destination":[{"endpoint":"https://sandbox.api.service.nhs.uk/electronic-prescriptions/FHIR/R4/$process-message#prescription-order","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"},"display":"The Simple Pharmacy"}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"},"practitioner":{"identifier":{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"C6095103"}}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"6989b7bd-8db6-428c-a593-4022e3044c00"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"322341003","display":"Co-codamol 30mg/500mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"2868554c-5565-4d31-b92a-c5b8dab8b90a"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"321080004","display":"Pseudoephedrine hydrochloride 60mg tablets"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"active","intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}},{"fullUrl":"urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e","resource":{"resourceType":"Provenance","id":"28828c55-8fa7-42d7-916f-fcf076e0c10e","target":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:6989b7bd-8db6-428c-a593-4022e3044c00"},{"reference":"urn:uuid:2868554c-5565-4d31-b92a-c5b8dab8b90a"},{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}],"recorded":"2022-10-21T13:47:00+00:00","agent":[{"who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"}}],"signature":[{"type":[{"system":"urn:iso-astm:E1762-95:2013","code":"1.2.840.10065.1.12.1.1"}],"when":"2022-10-21T13:47:00+00:00","who":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"data":"PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+WTg5YWNmSC90VkVtSXI2aVlrRVJrWWMxbG1jPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="}]}}]}}}}},"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 prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"acute-multiple-dosages":{"summary":"Acute Multiple Dosages","description":"A successful response to an acute with multiple dosages, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prescription order request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"information","code":"informational"}]}},"responsible-party-org":{"summary":"eRD","description":"A successful response to a eRD, primary care prepare request.","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"code":"informational","severity":"information"}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code                 | Description                                                                                                                 |\n|-------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| 400         | DUPLICATE_PRESCRIPTION_ID  | Duplicate prescription ID exists.                                                                                           |\n| 400         | FAILURE_TO_PROCESS_MESSAGE | Unable to process message for example where the prescription ID has an invalid checksum or an invalid NHS number is passed. |\n| 400         | MISSING_DIGITAL_SIGNATURE  | Digital signature not found.                                                                                                |\n| 400         | MISSING_VALUE              | The request contains multiple dosage instruction lines but no corresponding dosage sequence number.                         |\n","content":{"application/fhir+json":{"schema":{"type":"object","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/$process-message#prescription-order-update":{"post":{"tags":["prescribing"],"summary":"Cancel a prescription - Prescribing","description":"## Overview\nUse this endpoint to cancel a prescription.\n\nThe effect of calling this endpoint depends on the type of the message, which is determined by the `MessageHeader` resource.\nTo cancel a prescription, send a [prescription-order-update message](https://simplifier.net/guide/NHSDigital-Medicines/Home/FHIRAssets/AllAssets/MessageDefinition-duplicate-2/prescription-order-update).\n\nThe `#prescription-order-update` in the URL has been added to distinguish this from the other operations which\ncan be performed using the [`$process-message` endpoint](https://simplifier.net/guide/NHSDigital/Home/FHIRAssets/AllAssets/OperationDefinition/process-message). It is not required in requests to the API.\n","operationId":"send-prescription-order-update-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.\n","required":true,"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","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."},"examples":{"acute-primary":{"summary":"Acute","description":"A valid acute, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A valid repeat, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"A valid eRD, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"responsible-party-org":{"summary":"Responsible practitioner org","description":"A valid example with an organisation as the responsible practitioner.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-update","display":"Prescription Order Update"},"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"},"display":"HALLGARTH SURGERY"},"source":{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008"},"reason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/message-reason-prescription","code":"cancel","display":"Cancel"}]},"focus":[{"reference":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"},{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"}]}},{"fullUrl":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","resource":{"resourceType":"PractitionerRole","organization":{"reference":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f"}}},{"fullUrl":"urn:uuid:28b10eb9-94fe-4779-8517-b476abd6b08f","resource":{"resourceType":"Organization","id":"28b10eb9-94fe-4779-8517-b476abd6b08f","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RBA"}],"name":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST","address":[{"line":["MUSGROVE PARK HOSPITAL","PARKFIELD DRIVE","TAUNTON"],"postalCode":"TA1 5DA"}],"telecom":[{"system":"phone","value":"01823333444","use":"work"}]}},{"fullUrl":"urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466","display":"TAUNTON AND SOMERSET NHS FOUNDATION TRUST"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"a54219b8-f741-4c47-b662-e4f8dfa49ab6"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"39732311000001104","display":"Amoxicillin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"2 times a day for 10 days","timing":{"repeat":{"frequency":2,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":20,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}},"required":true},"responses":{"200":{"description":"Successfully submitted.\n\nNote that both successful and unsuccessful cancel responses will be successfully processed.\n\n| HTTP status | Response code          | Description                                                                                                                           |\n| ----------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------|\n| 200         | R-0001                 | Prescription or item was cancelled.                                                                                                   |\n","content":{"application/fhir+json":{"schema":{"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."},"examples":{"acute-primary":{"summary":"Acute","description":"A successful response to an acute, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"timestamp":"2022-10-21T13:48:00+00:00","type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"acute","display":"Short course (acute) therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"repeat-primary":{"summary":"Repeat","description":"A successful response to a repeat, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"numberOfPrescriptionsIssued","valueUnsignedInt":2},{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"instance-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"basedOn":[{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation","extension":[{"url":"numberOfRepeatsAllowed","valueUnsignedInt":5}]}],"identifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"299c610b-f4f1-4eac-a7d7-4fb6b0556e11"}}],"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy","code":"continuous","display":"Continuous long term therapy"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":0,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}},"eRD-primary":{"summary":"eRD","description":"A successful response to a eRD, primary care prescription order update request.","value":{"resourceType":"Bundle","id":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"46183abc-9fad-4673-85db-ce2cb6614732"},"type":"message","entry":[{"fullUrl":"urn:uuid:17773b27-427e-4940-8c16-64cdac715001","resource":{"resourceType":"MessageHeader","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"0cb82cfa-76c8-4fb2-a08e-bf0e326e5487"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"https://directory.spineservices.nhs.uk/STU3/Organization/A83008","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"https://internal-dev.api.service.nhs.uk/fhir-prescribing/$process-message"},"response":{"identifier":"d03e713b-e62c-4a2f-964d-d83b68d825a9","code":"ok"},"focus":[{"reference":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3"}]}},{"fullUrl":"urn:uuid:5cb17f5a-11ac-4e18-825f-6470467238b3","resource":{"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/prescription-type","code":"0101","display":"Primary Care Prescriber - Medical Prescriber"}},{"url":"https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation","extension":[{"url":"authorisationExpiryDate","valueDateTime":"2023-04-07"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0001","display":"Prescription/item was cancelled"}},{"url":"statusDate","valueDateTime":"2022-10-21T13:48:00+00:00"}]}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"5cb17f5a-11ac-4e18-825f-6470467238b3"}],"status":"cancelled","statusReason":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-reason","code":"0002","display":"Clinical contra-indication"}]},"intent":"original-order","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/medicationrequest-category","code":"community","display":"Community"}]}],"medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"324252006","display":"Azithromycin 250mg capsules"}]},"subject":{"reference":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"},"requester":{"reference":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"24F5DA-A83008-7EFE6Z","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId","valueIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription","value":"20ba5fb5-cb58-462c-923e-22d180b09356"}}]},"courseOfTherapyType":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy","code":"continuous-repeat-dispensing","display":"Continuous long term (repeat dispensing)"}]},"dosageInstruction":[{"text":"3 times a day for 10 days","timing":{"repeat":{"frequency":3,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral"}]}}],"dispenseRequest":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/dispensing-site-preference","code":"P1"}}],"validityPeriod":{"start":"2022-10-21"},"numberOfRepeatsAllowed":6,"quantity":{"value":30,"unit":"tablet","system":"http://snomed.info/sct","code":"428673006"},"expectedSupplyDuration":{"value":10,"unit":"day","system":"http://unitsofmeasure.org","code":"d"},"performer":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNE51"}}},"substitution":{"allowedBoolean":false}}},{"fullUrl":"urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2","resource":{"resourceType":"Patient","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"9449304130"}],"name":[{"use":"usual","family":"TWITCHETT","given":["STACEY","MARISA"],"prefix":["MS"]}],"gender":"female","birthDate":"1948-04-30","address":[{"use":"home","line":["10 HEATHFIELD","COBHAM","SURREY"],"postalCode":"KT11 2QY"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}}]}},{"fullUrl":"urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666","resource":{"resourceType":"PractitionerRole","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"200102238987"}],"practitioner":{"reference":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"},"organization":{"reference":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"R8000","display":"Clinical Practitioner Access Role"},{"system":"https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName","code":"R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}]}},{"fullUrl":"urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a","resource":{"resourceType":"Practitioner","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-user-id","value":"555086689106"},{"system":"https://fhir.hl7.org.uk/Id/gmc-number","value":"6095103"},{"system":"https://fhir.hl7.org.uk/Id/din-number","value":"977677"}],"name":[{"family":"BOIN","given":["C"],"prefix":["DR"]}]}},{"fullUrl":"urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8","resource":{"resourceType":"Organization","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"A83008"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"76","display":"GP PRACTICE"}]}],"name":"HALLGARTH SURGERY","telecom":[{"system":"phone","use":"work","value":"0115 9737320"}],"address":[{"use":"work","type":"both","line":["HALLGARTH SURGERY","CHEAPSIDE"],"city":"SHILDON","district":"COUNTY DURHAM","postalCode":"DL4 2HP"}],"partOf":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"84H"},"display":"NHS COUNTY DURHAM CCG"}}}]}}}}}},"4XX":{"description":"An error occurred as follows:\n\n| HTTP status | Error code  | Description                                                                            | Response format    |\n|-------------|-------------|----------------------------------------------------------------------------------------|--------------------|\n| 400         | R-0002      | Prescription/item was not cancelled. With dispenser. Marked for cancellation           | Bundle             |\n| 400         | R-0003      | Prescription/item was not cancelled. With dispenser active. Marked for cancellation    | Bundle             |\n| 400         | R-0004      | Prescription/item was not cancelled. Prescription has been dispensed.                  | Bundle             |\n| 400         | R-0005      | Prescription/item has expired                                                          | Bundle             |\n| 400         | R-0006      | Prescription/item had already been cancelled                                           | Bundle             |\n| 400         | R-0007      | Prescription/item cancellation requested by another prescriber                         | Bundle             |\n| 400         | R-0008      | Prescription/item not found                                                            | OperationOutcome   |\n| 400         | R-0009      | Cancellation functionality disabled in SPINE                                           | OperationOutcome   |\n| 400         | R-0010      | Prescription/item was not cancelled. Prescription has been not dispensed.              | Bundle             |\n| 400         | R-5000      | Unable to process message. Information missing or invalid - ...                        | OperationOutcome   |\n| 400         | R-5888      | Invalid Message.                                                                       | OperationOutcome   |\n","content":{"application/fhir+json":{"schema":{"oneOf":[{"type":"object","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"},{"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."}]},"examples":{"OperationOutcome":{"summary":"Missing Field","description":"An error response.\n","value":{"resourceType":"OperationOutcome","meta":{"lastUpdated":"2022-10-21T13:47:00+00:00"},"issue":[{"severity":"error","code":"value","details":{"coding":[{"system":"https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode","code":"MISSING_FIELD","display":"ResourceType Bundle must contain 'entry' field"}]}}]}},"R-0002":{"summary":"R-0002","description":"Prescription/item was not cancelled. With dispenser. Marked for cancellation","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0002","display":"Prescription/item was not cancelled. With dispenser. Marked for cancellation"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0003":{"summary":"R-0003","description":"Prescription/item was not cancelled. With dispenser active. Marked for cancellation","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0003","display":"Prescription/item was not cancelled. With dispenser active. Marked for cancellation"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"type":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/organisation-role","code":"182","display":"PHARMACY"}]}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0004":{"summary":"R-0004","description":"Prescription/item was not cancelled. Prescription has been dispensed.","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0004","display":"Prescription/item was not cancelled. Prescription has been dispensed."}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0005":{"summary":"R-0005","description":"Prescription/item has expired","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0005","display":"Prescription/item has expired"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0006":{"summary":"R-0006","description":"Prescription/item had already been cancelled","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0006","display":"Prescription/item had already been cancelled"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0007":{"summary":"R-0007","description":"Prescription/item cancellation requested by another prescriber","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0007","display":"Prescription/item cancellation requested by another prescriber"}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-0008":{"summary":"R-0008","description":"Prescription/item not found","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0008","display":"Prescription/item not found"}]}}]}},"R-0009":{"summary":"R-0009","description":"Cancellation functionality disabled in SPINE","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-supported","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0009","display":"Cancellation functionality disabled in SPINE"}]}}]}},"R-0010":{"summary":"R-0010","description":"Prescription/item was not cancelled. Prescription has been not dispensed.","value":{"resourceType":"Bundle","type":"message","identifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"},"timestamp":"2025-09-11T14:41:57+00:00","entry":[{"fullUrl":"urn:uuid:c801b425-21c1-4a4f-bb25-e1c0cf1d5726","resource":{"resourceType":"MessageHeader","id":"c801b425-21c1-4a4f-bb25-e1c0cf1d5726","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-MessageHeader-messageId","valueIdentifier":{"system":"https://tools.ietf.org/html/rfc4122","value":"47c2efe1-f29b-4108-8c63-53bc164497c2"}}],"eventCoding":{"system":"https://fhir.nhs.uk/CodeSystem/message-event","code":"prescription-order-response","display":"Prescription Order Response"},"destination":[{"endpoint":"urn:nhs-uk:addressing:ods:RRERP","receiver":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}}}],"sender":{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"X2601"},"display":"NHS Digital Spine"},"source":{"name":"NHS Spine","endpoint":"undefined/$process-message"},"response":{"identifier":"47c2efe1-f29b-4108-8c63-53bc164497c2","code":"ok"},"focus":[{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},{"reference":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed"}]}},{"fullUrl":"urn:uuid:cd83e683-4cb3-4b83-b452-4016180632ed","resource":{"resourceType":"MedicationRequest","id":"cd83e683-4cb3-4b83-b452-4016180632ed","extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory","extension":[{"url":"status","valueCoding":{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-0010","display":"Prescription/item was not cancelled. Prescription has been not dispensed."}},{"url":"statusDate","valueDateTime":"2025-09-11T14:41:57+00:00"}]},{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner","valueReference":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"}}],"identifier":[{"system":"https://fhir.nhs.uk/Id/prescription-order-item-number","value":"b36c5a15-d23e-444e-9a21-4dd0ea594d8a"}],"status":"active","intent":"order","medicationCodeableConcept":{"coding":[{"system":"http://snomed.info/sct","code":"763158003","display":"Medicinal product"}]},"subject":{"reference":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e"},"requester":{"reference":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe"},"groupIdentifier":{"system":"https://fhir.nhs.uk/Id/prescription-order-number","value":"FB6EC1-A83008-DC0346"},"dispenseRequest":{"performer":{"extension":[{"url":"https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer","valueReference":{"reference":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57"}}],"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"},"display":"The Simple Pharmacy"}}}},{"fullUrl":"urn:uuid:78e03686-151a-493b-9e60-29799193b05e","resource":{"resourceType":"Patient","id":"78e03686-151a-493b-9e60-29799193b05e","identifier":[{"system":"https://fhir.nhs.uk/Id/nhs-number","value":"5839945242"}],"name":[{"use":"usual","family":"FORREST","given":["LILAC","EMERSON"],"prefix":["MS"]}],"gender":"female","birthDate":"2011-03-30","address":[{"use":"home","line":["10 HAWKHURST","COBHAM","SURREY"],"postalCode":"KT11 2QX"}],"generalPractitioner":[{"identifier":{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"B81001"}}]}},{"fullUrl":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7","resource":{"resourceType":"Practitioner","id":"3cc24113-9d45-4229-830c-eb7a437b4cc7","name":[{"family":"FIFTYSEVEN","given":["RANDOM"],"prefix":["MR"]}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"656005750107"}]}},{"fullUrl":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1","resource":{"resourceType":"Practitioner","id":"4179eed1-015c-4116-a747-da44c1656ab1","name":[{"text":"Jackie Clark"}],"identifier":[{"system":"https://fhir.hl7.org.uk/Id/professional-code","value":"3415870201"}]}},{"fullUrl":"urn:uuid:b623021c-9892-4eab-a4aa-ff8036286abe","resource":{"resourceType":"PractitionerRole","id":"b623021c-9892-4eab-a4aa-ff8036286abe","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"601986680555"}],"practitioner":{"reference":"urn:uuid:3cc24113-9d45-4229-830c-eb7a437b4cc7"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"01234567890"}],"organization":{"reference":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da"}}},{"fullUrl":"urn:uuid:3fb98f62-c55b-42b2-a388-771b3faf2f57","resource":{"resourceType":"PractitionerRole","id":"3fb98f62-c55b-42b2-a388-771b3faf2f57","identifier":[{"system":"https://fhir.nhs.uk/Id/sds-role-profile-id","value":"555086415105"}],"practitioner":{"reference":"urn:uuid:4179eed1-015c-4116-a747-da44c1656ab1"},"code":[{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/NHSDigital-SDS-JobRoleCode","code":"S8000:G8000:R8000","display":"Clinical Practitioner Access Role"}]}],"telecom":[{"system":"phone","use":"work","value":"02380798431"}],"organization":{"reference":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd"}}},{"fullUrl":"urn:uuid:d821023a-b8d5-46de-acc4-3a899924d4da","resource":{"resourceType":"Organization","id":"d821023a-b8d5-46de-acc4-3a899924d4da","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"RRERP"}],"name":"PRESCRIBER 240","telecom":[{"system":"phone","use":"work","value":"01233123123"}],"address":[{"line":["SEVERN FIELDS MEDICAL PRACTICE","SUNDORNE ROAD","SHREWSBURY"],"postalCode":"SY1 4RQ"}]}},{"fullUrl":"urn:uuid:cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","resource":{"resourceType":"Organization","id":"cda5cbef-ff34-4e20-9b9a-acd2cc7bbbfd","identifier":[{"system":"https://fhir.nhs.uk/Id/ods-organization-code","value":"VNFKT"}],"name":"The Simple Pharmacy","telecom":[{"system":"phone","use":"work","value":"01133180277"}],"address":[{"use":"work","line":["17 Austhorpe Road","Crossgates","Leeds","West Yorkshire"],"postalCode":"LS15 8BA"}]}}]}},"R-5000":{"summary":"R-5000","description":"Mismatch between prescription and cancellation NHSNumber","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"processing","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-5000","display":"Unable to process message. Information missing or invalid - Mismatch between prescription and cancellation NHSNumber"}]}}]}},"R-5888":{"summary":"R-5888","description":"Invalid Message.","value":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history","code":"R-5888","display":"Invalid Message."}]}}]}}}}}}},"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.\n","required":true,"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":[]}],"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 Prescribing Service API User Restricted","grants":{"nhs-cis2-aal3":[]},"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/$prepare"},{"method":"POST","path":"/FHIR/R4/$process-message#prescription-order"},{"method":"POST","path":"/FHIR/R4/$process-message#prescription-order-update"}]}]}}