PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.medicines.r4@2.1.4-alpha
    https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest
{
  "description": null,
  "_filename": "NHSDigital-MedicationRequest.StructureDefinition.json",
  "package_name": "uk.nhsdigital.medicines.r4",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "NHSDigital-MedicationRequest",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://ncpdp.org/SCRIPT10_6",
    "name": "Mapping to NCPDP SCRIPT 10.6",
    "identity": "script10.6"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "MedicationRequest",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "2.1.4-alpha",
  "status": "draft",
  "id": "3c5de2fd-4484-43b2-8db8-0605f597fc9b",
  "kind": "resource",
  "url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest",
  "version": null,
  "differential": {
    "element": [ {
      "id": "MedicationRequest",
      "path": "MedicationRequest",
      "constraint": [ {
        "key": "eps-1",
        "human": "Only one of medicationReference or medicationCodeableConcept should be provided",
        "severity": "error",
        "expression": "medicationReference.exists() and medicationReference.exists().not()"
      }, {
        "key": "eps-2",
        "human": "Only one of medicationReference or medicationCodeableConcept should be provided",
        "severity": "error",
        "expression": "medicationReference.exists().not() and medicationReference.exists()"
      } ]
    }, {
      "id": "MedicationRequest.extension",
      "path": "MedicationRequest.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.extension:repeatInformation",
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation" ]
      } ],
      "sliceName": "repeatInformation"
    }, {
      "id": "MedicationRequest.extension:responsiblePractitioner",
      "max": "1",
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner" ]
      } ],
      "sliceName": "responsiblePractitioner"
    }, {
      "id": "MedicationRequest.extension:prescriptionEndorsement",
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionEndorsement" ]
      } ],
      "sliceName": "prescriptionEndorsement"
    }, {
      "id": "MedicationRequest.extension:prescriptionTaskStatusReason",
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionStatusHistory" ]
      } ],
      "sliceName": "prescriptionTaskStatusReason",
      "definition": "The status history within EPS is primarily a technical Status and the statusReason will reflect current clinical status of the order."
    }, {
      "id": "MedicationRequest.extension:NHSBSAprescriptionType",
      "min": 1,
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType" ]
      } ],
      "sliceName": "NHSBSAprescriptionType"
    }, {
      "id": "MedicationRequest.extension:controlledDrug",
      "max": "1",
      "path": "MedicationRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug" ]
      } ],
      "sliceName": "controlledDrug"
    }, {
      "id": "MedicationRequest.identifier",
      "min": 1,
      "path": "MedicationRequest.identifier",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.identifier:prescriptionOrderItem",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.identifier",
      "short": "Prescription Order Item",
      "sliceName": "prescriptionOrderItem",
      "definition": "Unique Id of the MedicationRequest within EPS"
    }, {
      "id": "MedicationRequest.identifier:prescriptionOrderItem.system",
      "min": 1,
      "path": "MedicationRequest.identifier.system",
      "fixedUri": "https://fhir.nhs.uk/Id/prescription-order-item-number"
    }, {
      "id": "MedicationRequest.identifier:prescriptionOrderItem.value",
      "min": 1,
      "path": "MedicationRequest.identifier.value"
    }, {
      "id": "MedicationRequest.statusReason",
      "path": "MedicationRequest.statusReason",
      "binding": {
        "strength": "required",
        "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-status-reason"
      },
      "definition": "Mandatory for cancelled prescription items"
    }, {
      "id": "MedicationRequest.statusReason.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.statusReason.coding"
    }, {
      "id": "MedicationRequest.statusReason.coding.system",
      "min": 1,
      "path": "MedicationRequest.statusReason.coding.system"
    }, {
      "id": "MedicationRequest.statusReason.coding.code",
      "min": 1,
      "path": "MedicationRequest.statusReason.coding.code"
    }, {
      "id": "MedicationRequest.statusReason.coding.display",
      "min": 1,
      "path": "MedicationRequest.statusReason.coding.display"
    }, {
      "id": "MedicationRequest.category",
      "min": 1,
      "path": "MedicationRequest.category"
    }, {
      "id": "MedicationRequest.category.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.category.coding",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.category.coding:patientClassFHIR",
      "max": "1",
      "path": "MedicationRequest.category.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-category"
      },
      "sliceName": "patientClassFHIR"
    }, {
      "id": "MedicationRequest.category.coding:patientClassFHIR.system",
      "min": 1,
      "path": "MedicationRequest.category.coding.system",
      "fixedUri": "http://terminology.hl7.org/CodeSystem/medicationrequest-category"
    }, {
      "id": "MedicationRequest.category.coding:patientClassFHIR.code",
      "min": 1,
      "path": "MedicationRequest.category.coding.code"
    }, {
      "id": "MedicationRequest.category.coding:patientClassUK",
      "max": "1",
      "path": "MedicationRequest.category.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-category"
      },
      "sliceName": "patientClassUK"
    }, {
      "id": "MedicationRequest.category.coding:patientClassUK.system",
      "min": 1,
      "path": "MedicationRequest.category.coding.system",
      "fixedUri": "https://fhir.nhs.uk/CodeSystem/medicationrequest-category"
    }, {
      "id": "MedicationRequest.category.coding:patientClassUK.code",
      "min": 1,
      "path": "MedicationRequest.category.coding.code"
    }, {
      "id": "MedicationRequest.medication[x]",
      "path": "MedicationRequest.medication[x]",
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-CodeableConcept" ]
      }, {
        "code": "Reference",
        "aggregation": [ "bundled" ],
        "targetProfile": [ "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest-Medication" ]
      } ],
      "comment": "Any code from the SnomedCT UK DMD subset for VMP, AMP and VTM concepts"
    }, {
      "id": "MedicationRequest.subject",
      "path": "MedicationRequest.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient" ]
      } ]
    }, {
      "id": "MedicationRequest.subject.reference",
      "min": 1,
      "path": "MedicationRequest.subject.reference"
    }, {
      "id": "MedicationRequest.encounter",
      "path": "MedicationRequest.encounter",
      "definition": "Encounter is required for secondary care prescriptions."
    }, {
      "id": "MedicationRequest.authoredOn",
      "min": 1,
      "path": "MedicationRequest.authoredOn"
    }, {
      "id": "MedicationRequest.requester",
      "min": 1,
      "path": "MedicationRequest.requester",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole" ]
      } ]
    }, {
      "id": "MedicationRequest.requester.reference",
      "min": 1,
      "path": "MedicationRequest.requester.reference"
    }, {
      "id": "MedicationRequest.basedOn",
      "path": "MedicationRequest.basedOn",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation", "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest" ]
      } ]
    }, {
      "id": "MedicationRequest.groupIdentifier",
      "min": 1,
      "path": "MedicationRequest.groupIdentifier",
      "short": "order number for grouped MedicationRequests",
      "comment": "ITK HL7v3 Mapping = The groupIdentifier is equivalent to ParentPrescription.id (prescription-order-number). The extension is used to carry the ParentPrescription.id (UUID).",
      "definition": "The short form prescription identifier"
    }, {
      "id": "MedicationRequest.groupIdentifier.extension",
      "path": "MedicationRequest.groupIdentifier.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID",
      "path": "MedicationRequest.groupIdentifier.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId" ]
      } ],
      "short": "UUID order number for grouped MedciationRequests",
      "sliceName": "PrescriptionOrderUUID"
    }, {
      "id": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID.value[x].system",
      "min": 1,
      "path": "MedicationRequest.groupIdentifier.extension.value[x].system"
    }, {
      "id": "MedicationRequest.groupIdentifier.extension:PrescriptionOrderUUID.value[x].value",
      "min": 1,
      "path": "MedicationRequest.groupIdentifier.extension.value[x].value"
    }, {
      "id": "MedicationRequest.groupIdentifier.system",
      "min": 1,
      "path": "MedicationRequest.groupIdentifier.system",
      "fixedUri": "https://fhir.nhs.uk/Id/prescription-order-number"
    }, {
      "id": "MedicationRequest.groupIdentifier.value",
      "min": 1,
      "path": "MedicationRequest.groupIdentifier.value"
    }, {
      "id": "MedicationRequest.courseOfTherapyType",
      "min": 1,
      "path": "MedicationRequest.courseOfTherapyType",
      "binding": {
        "strength": "required",
        "valueSet": "https://fhir.nhs.uk/ValueSet/DM-medicationrequest-course-of-therapy"
      },
      "comment": "The type of prescription e.g. acute, continuous, etc. Was extension in STU3 https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-PrescriptionType-1 and Digital Medicine uses international codes, so continuous in place of repeat.",
      "definition": "The description of the overall pattern of the administration of the medication to the patient.\r\nRequired for prescription-order"
    }, {
      "id": "MedicationRequest.courseOfTherapyType.coding",
      "max": "1",
      "min": 1,
      "path": "MedicationRequest.courseOfTherapyType.coding"
    }, {
      "id": "MedicationRequest.courseOfTherapyType.coding.system",
      "min": 1,
      "path": "MedicationRequest.courseOfTherapyType.coding.system"
    }, {
      "id": "MedicationRequest.courseOfTherapyType.coding.code",
      "min": 1,
      "path": "MedicationRequest.courseOfTherapyType.coding.code"
    }, {
      "id": "MedicationRequest.dosageInstruction",
      "min": 1,
      "path": "MedicationRequest.dosageInstruction"
    }, {
      "id": "MedicationRequest.dosageInstruction.text",
      "min": 1,
      "path": "MedicationRequest.dosageInstruction.text",
      "comment": "ITK Mapping = pertinentInformation2.pertinentLineItem.pertinentInformation2.pertinentDosageInstructions.value"
    }, {
      "id": "MedicationRequest.dispenseRequest",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest"
    }, {
      "id": "MedicationRequest.dispenseRequest.extension",
      "path": "MedicationRequest.dispenseRequest.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.dispenseRequest.extension:performerSiteType",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType" ]
      } ],
      "short": "type of dispensing organisation",
      "sliceName": "performerSiteType"
    }, {
      "id": "MedicationRequest.dispenseRequest.validityPeriod.start",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.validityPeriod.start"
    }, {
      "id": "MedicationRequest.dispenseRequest.validityPeriod.end",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.validityPeriod.end"
    }, {
      "id": "MedicationRequest.dispenseRequest.quantity",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.quantity"
    }, {
      "id": "MedicationRequest.dispenseRequest.quantity.value",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.quantity.value"
    }, {
      "id": "MedicationRequest.dispenseRequest.quantity.unit",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.quantity.unit"
    }, {
      "id": "MedicationRequest.dispenseRequest.quantity.code",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.quantity.code"
    }, {
      "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.value",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.value"
    }, {
      "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration.code",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration.code",
      "fixedCode": "d"
    }, {
      "id": "MedicationRequest.dispenseRequest.performer",
      "path": "MedicationRequest.dispenseRequest.performer",
      "definition": "Indicates the intended dispensing Pharmacy specified by the patient. Can be sourced from nominatedPharmacy in the Patient Demographics Service (PDS)"
    }, {
      "id": "MedicationRequest.dispenseRequest.performer.extension",
      "path": "MedicationRequest.dispenseRequest.performer.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationRequest.dispenseRequest.performer.extension:practitionerRole",
      "max": "1",
      "path": "MedicationRequest.dispenseRequest.performer.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://fhir.nhs.uk/StructureDefinition/Extension-DM-DispensingPerformer" ]
      } ],
      "sliceName": "practitionerRole"
    }, {
      "id": "MedicationRequest.dispenseRequest.performer.identifier",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.performer.identifier"
    }, {
      "id": "MedicationRequest.dispenseRequest.performer.identifier.system",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.performer.identifier.system",
      "fixedUri": "https://fhir.nhs.uk/Id/ods-organization-code"
    }, {
      "id": "MedicationRequest.dispenseRequest.performer.identifier.value",
      "min": 1,
      "path": "MedicationRequest.dispenseRequest.performer.identifier.value"
    }, {
      "id": "MedicationRequest.substitution",
      "min": 1,
      "path": "MedicationRequest.substitution",
      "comment": "Substituition is a mandatory requirement for EPS.",
      "definition": "Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done. In most cases this should default to false."
    }, {
      "id": "MedicationRequest.substitution.allowed[x]",
      "path": "MedicationRequest.substitution.allowed[x]",
      "type": [ {
        "code": "boolean"
      } ]
    }, {
      "id": "MedicationRequest.eventHistory",
      "path": "MedicationRequest.eventHistory",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.nhs.uk/StructureDefinition/DM-Provenance" ]
      } ]
    } ]
  },
  "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest"
}