{
  "resourceType": "StructureDefinition",
  "id": "profile-medicationdispense",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense",
  "name": "MedicationDispense",
  "title": "Medication Dispense Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "A Bundle of MedicationDispense resources will be used to store one or more medication products to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "nehr-putDispensedMedications",
      "name": "NEHR XML putDispensedMedications",
      "comment": "Paths are relative to the putDispensedMedications element of the NEHR XML message"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationDispense",
        "path": "MedicationDispense",
        "definition": "Information of each dispensed medication item."
      },
      {
        "id": "MedicationDispense.contained",
        "path": "MedicationDispense.contained",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationDispense.contained:medication",
        "path": "MedicationDispense.contained",
        "sliceName": "medication",
        "max": "1",
        "type": [
          {
            "code": "Medication",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.contained:medicationrequest",
        "path": "MedicationDispense.contained",
        "sliceName": "medicationrequest",
        "max": "1",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense-request"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:changesMade",
        "path": "MedicationDispense.extension",
        "sliceName": "changesMade",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-changesMade"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/changesMade | medicationDispense/medicationItem/reasonForChanges"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:changesMade.extension:code",
        "path": "MedicationDispense.extension.extension",
        "sliceName": "code",
        "definition": "Description of changes made to the medication item during the healthcare event."
      },
      {
        "id": "MedicationDispense.extension:changesMade.extension:reason",
        "path": "MedicationDispense.extension.extension",
        "sliceName": "reason",
        "definition": "Reason why the medication changes were made."
      },
      {
        "id": "MedicationDispense.extension:orderSetConnectingTerm",
        "path": "MedicationDispense.extension",
        "sliceName": "orderSetConnectingTerm",
        "definition": "Term used to connect medication items in a variable or step-dose order set.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-orderSetConnectingTerm"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/orderSetConnectingTerm"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:dispensingInstitution",
        "path": "MedicationDispense.extension",
        "sliceName": "dispensingInstitution",
        "definition": "Healthcare institution where the medication items were dispensed.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispensingInstitution"
          }
        ]
      },
      {
        "id": "MedicationDispense.modifierExtension",
        "path": "MedicationDispense.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "definition": "Carries these NEHR XML elements of putDispensedMedications:\n\n- `medicationDispense/medicationItem/sequenceNo`: Sequence of the medication item within the medication list.\n- `medicationDispense/medicationItem/groupNo`: Identifier of the medication group to which the item belongs.",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/sequenceNo | medicationDispense/medicationItem/groupNo"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier.id",
        "path": "MedicationDispense.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier.extension",
        "path": "MedicationDispense.identifier.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier.use",
        "path": "MedicationDispense.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier.type",
        "path": "MedicationDispense.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier.system",
        "path": "MedicationDispense.identifier.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.identifier.value",
        "path": "MedicationDispense.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationDispense.identifier.period",
        "path": "MedicationDispense.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier.assigner",
        "path": "MedicationDispense.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationDispense.identifier:recordIdentifier",
        "path": "MedicationDispense.identifier",
        "sliceName": "recordIdentifier",
        "definition": "A unique identifier for this dispensed medication list within this source system.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-record-id"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/recordIdentifier"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier:dispenseID",
        "path": "MedicationDispense.identifier",
        "sliceName": "dispenseID",
        "definition": "Identifier of this dispensed medication list within the dispensing institution.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-dispense-id"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispenseID"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier:sourceGroupingID",
        "path": "MedicationDispense.identifier",
        "sliceName": "sourceGroupingID",
        "definition": "Identifier of the supply group to which this dispensed medication list belongs.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-source-grouping-id"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/sourceGroupingID"
          }
        ]
      },
      {
        "id": "MedicationDispense.basedOn",
        "path": "MedicationDispense.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationDispense.partOf",
        "path": "MedicationDispense.partOf",
        "max": "0"
      },
      {
        "id": "MedicationDispense.status",
        "path": "MedicationDispense.status",
        "definition": "Overall status of this dispensed medication list.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispenseStatus"
          }
        ]
      },
      {
        "id": "MedicationDispense.notPerformedReason.id",
        "path": "MedicationDispense.notPerformedReason.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notPerformedReason.extension",
        "path": "MedicationDispense.notPerformedReason.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notPerformedReason.concept",
        "path": "MedicationDispense.notPerformedReason.concept",
        "definition": "Reason for cancelling the medication order being dispensed against.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/status-reason"
        },
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/reasonForCancellation"
          }
        ]
      },
      {
        "id": "MedicationDispense.notPerformedReason.concept.extension",
        "path": "MedicationDispense.notPerformedReason.concept.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notPerformedReason.concept.coding.version",
        "path": "MedicationDispense.notPerformedReason.concept.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notPerformedReason.reference",
        "path": "MedicationDispense.notPerformedReason.reference",
        "max": "0"
      },
      {
        "id": "MedicationDispense.statusChanged",
        "path": "MedicationDispense.statusChanged",
        "max": "0"
      },
      {
        "id": "MedicationDispense.category",
        "path": "MedicationDispense.category",
        "definition": "Clinical setting in which the medication items were dispensed.",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/dispense-type"
        },
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispenseType"
          }
        ]
      },
      {
        "id": "MedicationDispense.category.extension",
        "path": "MedicationDispense.category.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication",
        "path": "MedicationDispense.medication",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.medication.id",
        "path": "MedicationDispense.medication.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication.extension",
        "path": "MedicationDispense.medication.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication.concept",
        "path": "MedicationDispense.medication.concept",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.medication.concept.extension",
        "path": "MedicationDispense.medication.concept.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication.reference",
        "path": "MedicationDispense.medication.reference",
        "min": 1
      },
      {
        "id": "MedicationDispense.medication.reference.id",
        "path": "MedicationDispense.medication.reference.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication.reference.extension",
        "path": "MedicationDispense.medication.reference.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication.reference.reference",
        "path": "MedicationDispense.medication.reference.reference",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/medicationName/code"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject",
        "path": "MedicationDispense.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.subject.identifier.type.coding",
        "path": "MedicationDispense.subject.identifier.type.coding",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "patient/identification/type"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject.identifier.system",
        "path": "MedicationDispense.subject.identifier.system",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "patient/identification/type"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject.identifier.value",
        "path": "MedicationDispense.subject.identifier.value",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "patient/identification/id | patient/identification/MRNNumber"
          }
        ]
      },
      {
        "id": "MedicationDispense.encounter",
        "path": "MedicationDispense.encounter",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-encounter"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-encounter"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.encounter.identifier",
        "path": "MedicationDispense.encounter.identifier",
        "definition": "Identifier of the healthcare event linked to this dispensed medication list.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/eventID"
          }
        ]
      },
      {
        "id": "MedicationDispense.encounter.display",
        "path": "MedicationDispense.encounter.display",
        "max": "0"
      },
      {
        "id": "MedicationDispense.supportingInformation",
        "path": "MedicationDispense.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer",
        "path": "MedicationDispense.performer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.performer.id",
        "path": "MedicationDispense.performer.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.extension",
        "path": "MedicationDispense.performer.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.modifierExtension",
        "path": "MedicationDispense.performer.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.function",
        "path": "MedicationDispense.performer.function",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.actor",
        "path": "MedicationDispense.performer.actor",
        "short": "A reference from one resource to another",
        "definition": "Healthcare professional responsible for dispensing the medication items.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor.identifier",
        "path": "MedicationDispense.performer.actor.identifier",
        "definition": "Registration number of the pharmacist.",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-prn"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispensedBy/id"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor.display",
        "path": "MedicationDispense.performer.actor.display",
        "definition": "Name of the pharmacist.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispensedBy/name"
          }
        ]
      },
      {
        "id": "MedicationDispense.location.id",
        "path": "MedicationDispense.location.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.location.extension",
        "path": "MedicationDispense.location.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.location.reference",
        "path": "MedicationDispense.location.reference",
        "max": "0"
      },
      {
        "id": "MedicationDispense.location.type",
        "path": "MedicationDispense.location.type",
        "patternUri": "Location"
      },
      {
        "id": "MedicationDispense.location.identifier",
        "path": "MedicationDispense.location.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-dispensing-location-id"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispensingLocation/code"
          }
        ]
      },
      {
        "id": "MedicationDispense.location.display",
        "path": "MedicationDispense.location.display",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispensingLocation/textDescription"
          }
        ]
      },
      {
        "id": "MedicationDispense.authorizingPrescription",
        "path": "MedicationDispense.authorizingPrescription",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense-request"
            ],
            "aggregation": [
              "contained",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.authorizingPrescription.id",
        "path": "MedicationDispense.authorizingPrescription.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription.extension",
        "path": "MedicationDispense.authorizingPrescription.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription.type",
        "path": "MedicationDispense.authorizingPrescription.type",
        "patternUri": "MedicationRequest"
      },
      {
        "id": "MedicationDispense.authorizingPrescription.identifier",
        "path": "MedicationDispense.authorizingPrescription.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-order-no"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.type",
        "path": "MedicationDispense.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.id",
        "path": "MedicationDispense.type.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.extension",
        "path": "MedicationDispense.type.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding",
        "path": "MedicationDispense.type.coding",
        "max": "1"
      },
      {
        "id": "MedicationDispense.type.coding.id",
        "path": "MedicationDispense.type.coding.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding.extension",
        "path": "MedicationDispense.type.coding.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding.system",
        "path": "MedicationDispense.type.coding.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.type.coding.version",
        "path": "MedicationDispense.type.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding.code",
        "path": "MedicationDispense.type.coding.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.type.coding.display",
        "path": "MedicationDispense.type.coding.display",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding.userSelected",
        "path": "MedicationDispense.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.text",
        "path": "MedicationDispense.type.text",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity.id",
        "path": "MedicationDispense.quantity.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity.extension",
        "path": "MedicationDispense.quantity.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity.value",
        "path": "MedicationDispense.quantity.value",
        "definition": "Number of discrete units, volume or quantity dispensed.",
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/quantityDispensed"
          }
        ]
      },
      {
        "id": "MedicationDispense.quantity.unit",
        "path": "MedicationDispense.quantity.unit",
        "definition": "Unit of measure for quantityDispensed.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/quantityDispensedUnits"
          }
        ]
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "max": "0"
      },
      {
        "id": "MedicationDispense.daysSupply.id",
        "path": "MedicationDispense.daysSupply.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.daysSupply.extension",
        "path": "MedicationDispense.daysSupply.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.daysSupply.value",
        "path": "MedicationDispense.daysSupply.value",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.unit",
        "path": "MedicationDispense.daysSupply.unit",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.system",
        "path": "MedicationDispense.daysSupply.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.code",
        "path": "MedicationDispense.daysSupply.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.recorded",
        "path": "MedicationDispense.recorded",
        "definition": "Date and time at which the medication list was created.",
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/recordCreatedDateTime"
          }
        ]
      },
      {
        "id": "MedicationDispense.whenPrepared",
        "path": "MedicationDispense.whenPrepared",
        "definition": "Carries these NEHR XML elements of putDispensedMedications:\n\n- `medicationDispense/dispenseDateTime`: Date and time at which the medication items were dispensed.\n- `medicationDispense/medicationItem/medicationItemDispensedDate`: Date and time the medication item was dispensed.",
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/dispenseDateTime | medicationDispense/medicationItem/medicationItemDispensedDate"
          }
        ]
      },
      {
        "id": "MedicationDispense.whenHandedOver",
        "path": "MedicationDispense.whenHandedOver",
        "max": "0"
      },
      {
        "id": "MedicationDispense.destination",
        "path": "MedicationDispense.destination",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.receiver",
        "path": "MedicationDispense.receiver",
        "max": "0"
      },
      {
        "id": "MedicationDispense.note",
        "path": "MedicationDispense.note",
        "max": "0"
      },
      {
        "id": "MedicationDispense.renderedDosageInstruction",
        "path": "MedicationDispense.renderedDosageInstruction",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction",
        "path": "MedicationDispense.dosageInstruction",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.id",
        "path": "MedicationDispense.dosageInstruction.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.extension",
        "path": "MedicationDispense.dosageInstruction.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.modifierExtension",
        "path": "MedicationDispense.dosageInstruction.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.sequence",
        "path": "MedicationDispense.dosageInstruction.sequence",
        "definition": "Sequence of the medication item within its group.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/groupSequenceNo"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.text",
        "path": "MedicationDispense.dosageInstruction.text",
        "definition": "Administration instructions including dose quantity, timing and additional details.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/dosageInstruction"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.id",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.extension",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.id",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.extension",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.system",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.code",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.display",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.display",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.coding.userSelected",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction.text",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction.text",
        "definition": "Prerequisite for medication administration, such as take when needed.",
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/frequencyQualifier"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.patientInstruction",
        "path": "MedicationDispense.dosageInstruction.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.id",
        "path": "MedicationDispense.dosageInstruction.timing.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.extension",
        "path": "MedicationDispense.dosageInstruction.timing.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.modifierExtension",
        "path": "MedicationDispense.dosageInstruction.timing.modifierExtension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.event",
        "path": "MedicationDispense.dosageInstruction.timing.event",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.id",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.extension",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x]",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].id",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].extension",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].start",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].start",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].end",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x].end",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.period",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.period",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/duration/textDescription"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.periodUnit",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.periodUnit",
        "definition": "Unit of measure for the duration field.",
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/durationUnits | medicationDispense/medicationItem/durationUOM/textDescription"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.dayOfWeek",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.timeOfDay",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.timeOfDay",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.when",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.when",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.code",
        "path": "MedicationDispense.dosageInstruction.timing.code",
        "definition": "Timing schedule for administering the medication.",
        "min": 1,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/medication-frequency"
        },
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/frequency"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.code.extension",
        "path": "MedicationDispense.dosageInstruction.timing.code.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeeded",
        "path": "MedicationDispense.dosageInstruction.asNeeded",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededFor",
        "path": "MedicationDispense.dosageInstruction.asNeededFor",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededFor.id",
        "path": "MedicationDispense.dosageInstruction.asNeededFor.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededFor.extension",
        "path": "MedicationDispense.dosageInstruction.asNeededFor.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededFor.coding",
        "path": "MedicationDispense.dosageInstruction.asNeededFor.coding",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededFor.text",
        "path": "MedicationDispense.dosageInstruction.asNeededFor.text",
        "min": 1
      },
      {
        "id": "MedicationDispense.dosageInstruction.site",
        "path": "MedicationDispense.dosageInstruction.site",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.route",
        "path": "MedicationDispense.dosageInstruction.route",
        "definition": "Route by which the medication is administered.",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/medication-route"
        },
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/routeOfAdministration"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.route.extension",
        "path": "MedicationDispense.dosageInstruction.route.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.method",
        "path": "MedicationDispense.dosageInstruction.method",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate.id",
        "path": "MedicationDispense.dosageInstruction.doseAndRate.id",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate.extension",
        "path": "MedicationDispense.dosageInstruction.doseAndRate.extension",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate.type",
        "path": "MedicationDispense.dosageInstruction.doseAndRate.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate.dose[x]",
        "path": "MedicationDispense.dosageInstruction.doseAndRate.dose[x]",
        "definition": "Carries these NEHR XML elements of putDispensedMedications:\n\n- `medicationDispense/medicationItem/doseQuantity/lowValue`: Simple quantity or low value of a range.\n- `medicationDispense/medicationItem/doseQuantity/lowUnit`: Unit of measure for the lowValue field.\n- `medicationDispense/medicationItem/doseQuantity/highValue`: High value of a dose range.\n- `medicationDispense/medicationItem/doseQuantity/highUnit`: Unit of measure for the highValue field.",
        "min": 1,
        "mapping": [
          {
            "identity": "nehr-putDispensedMedications",
            "map": "medicationDispense/medicationItem/doseQuantity/lowValue | medicationDispense/medicationItem/doseQuantity/lowUnit | medicationDispense/medicationItem/doseQuantity/highValue | medicationDispense/medicationItem/doseQuantity/highUnit"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate.rate[x]",
        "path": "MedicationDispense.dosageInstruction.doseAndRate.rate[x]",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "path": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerAdministration",
        "path": "MedicationDispense.dosageInstruction.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerLifetime",
        "path": "MedicationDispense.dosageInstruction.maxDosePerLifetime",
        "max": "0"
      },
      {
        "id": "MedicationDispense.substitution",
        "path": "MedicationDispense.substitution",
        "max": "0"
      },
      {
        "id": "MedicationDispense.eventHistory",
        "path": "MedicationDispense.eventHistory",
        "max": "0"
      }
    ]
  }
}