PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r4.id.core@0.1.0
    https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationDispense
{
  "description": "Indicates that a medication product is 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.",
  "_filename": "MedicationDispense.json",
  "package_name": "hl7.fhir.r4.id.core",
  "date": "2019-11-01T09:29:23+11:00",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2021-12-31T10:50:39.694+00:00"
  },
  "publisher": "Health Level Seven International (Pharmacy)",
  "fhirVersion": "4.0.1",
  "name": "MedicationDispense",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://www.hl7.org/v3/PORX_RM020070UV",
    "name": "V3 Pharmacy Dispense RMIM",
    "identity": "rx-dispense-rmim"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "MedicationDispense",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.1.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "Clinical.Medications"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 2
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode": "patient"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "phx"
  } ],
  "status": "draft",
  "id": "caf456ce-8bef-4932-8117-570d2f968151",
  "kind": "resource",
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationDispense",
  "version": "4.0.1",
  "differential": {
    "element": [ {
      "id": "MedicationDispense",
      "path": "MedicationDispense",
      "short": "Dispensing a medication to a named patient",
      "mapping": [ {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "Supply[moodCode=EVN]",
        "identity": "rim"
      } ],
      "constraint": [ {
        "key": "mdd-1",
        "human": "whenHandedOver cannot be before whenPrepared",
        "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)",
        "source": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
        "severity": "error",
        "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
      } ],
      "definition": "Indicates that a medication product is 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."
    }, {
      "id": "MedicationDispense.identifier",
      "path": "MedicationDispense.identifier",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "External identifier",
      "comment": "This is a business identifier, not a resource identifier.",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.id",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Identifiers associated with this Medication Dispense that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server."
    }, {
      "id": "MedicationDispense.partOf",
      "path": "MedicationDispense.partOf",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Procedure" ]
      } ],
      "short": "Event that dispense is part of",
      "mapping": [ {
        "map": "Event.partOf",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "The procedure that trigger the dispense."
    }, {
      "path": "MedicationDispense.status",
      "min": 1,
      "definition": "A code specifying the state of the set of dispense events.",
      "isModifier": true,
      "short": "preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.statusCode",
        "identity": "rx-dispense-rmim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseStatus"
        } ],
        "description": "A coded concept specifying the state of the dispense event."
      },
      "max": "1",
      "id": "MedicationDispense.status",
      "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "id": "MedicationDispense.statusReason[x]",
      "max": "1",
      "path": "MedicationDispense.statusReason[x]",
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/DetectedIssue" ]
      } ],
      "short": "Why a dispense was not performed",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseStatusReason"
        } ],
        "description": "A code describing why a dispense was not performed."
      },
      "mapping": [ {
        "map": "Event.statusReason",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"not done reason\"].value",
        "identity": "rim"
      } ],
      "definition": "Indicates the reason why a dispense was not performed."
    }, {
      "path": "MedicationDispense.category",
      "definition": "Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).",
      "short": "Type of medication dispense",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication dispense\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-category",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseCategory"
        } ],
        "description": "A code describing where the dispensed medication is expected to be consumed or administered."
      },
      "max": "1",
      "id": "MedicationDispense.category",
      "comment": "The category can be used to include where the medication is expected to be consumed or other types of dispenses.  Invariants can be used to bind to different value sets when profiling to bind."
    }, {
      "path": "MedicationDispense.medication[x]",
      "min": 1,
      "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
      "short": "What medication was supplied",
      "mapping": [ {
        "map": "Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": "RXD-2-Dispense/Give Code",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PRD].role",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationRequest.component1.AdministrationRequest.consumable",
        "identity": "rx-dispense-rmim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Medication" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationCode"
        } ],
        "description": "A coded concept identifying which substance or product can be dispensed."
      },
      "max": "1",
      "id": "MedicationDispense.medication[x]",
      "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example, if you require form or lot number, then you must reference the Medication resource.",
      "isSummary": true
    }, {
      "path": "MedicationDispense.subject",
      "definition": "A link to a resource representing the person or the group to whom the medication will be given.",
      "short": "Who the dispense is for",
      "mapping": [ {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Group" ]
      } ],
      "max": "1",
      "id": "MedicationDispense.subject",
      "comment": "SubstanceAdministration->subject->Patient.",
      "isSummary": true
    }, {
      "id": "MedicationDispense.context",
      "max": "1",
      "path": "MedicationDispense.context",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter", "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" ]
      } ],
      "short": "Encounter / Episode associated with event",
      "mapping": [ {
        "map": "Event.context",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      } ],
      "definition": "The encounter or episode of care that establishes the context for this event."
    }, {
      "id": "MedicationDispense.supportingInformation",
      "path": "MedicationDispense.supportingInformation",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "short": "Information that supports the dispensing of the medication",
      "mapping": [ {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]",
        "identity": "rim"
      } ],
      "definition": "Additional information that supports the medication being dispensed."
    }, {
      "id": "MedicationDispense.performer",
      "path": "MedicationDispense.performer",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Who performed event",
      "mapping": [ {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=PRF]",
        "identity": "rim"
      } ],
      "definition": "Indicates who or what performed the event."
    }, {
      "path": "MedicationDispense.performer.function",
      "requirements": "Allows disambiguation of the types of involvement of different performers.",
      "definition": "Distinguishes the type of performer in the dispense.  For example, date enterer, packager, final checker.",
      "short": "Who performed the dispense and what they did",
      "mapping": [ {
        "map": "participation[typeCode=PRF].functionCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-performer-function",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispensePerformerFunction"
        } ],
        "description": "A code describing the role an individual played in dispensing a medication."
      },
      "max": "1",
      "id": "MedicationDispense.performer.function"
    }, {
      "id": "MedicationDispense.performer.actor",
      "max": "1",
      "min": 1,
      "path": "MedicationDispense.performer.actor",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
      } ],
      "short": "Individual who was performing",
      "mapping": [ {
        "map": "Event.performer.actor",
        "identity": "workflow"
      }, {
        "map": ".role",
        "identity": "rim"
      } ],
      "definition": "The device, practitioner, etc. who performed the action.  It should be assumed that the actor is the dispenser of the medication."
    }, {
      "id": "MedicationDispense.location",
      "max": "1",
      "path": "MedicationDispense.location",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Location" ]
      } ],
      "short": "Where the dispense occurred",
      "mapping": [ {
        "map": ".participation[typeCode=LOC].role",
        "identity": "rim"
      } ],
      "definition": "The principal physical location where the dispense was performed."
    }, {
      "id": "MedicationDispense.authorizingPrescription",
      "path": "MedicationDispense.authorizingPrescription",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ]
      } ],
      "short": "Medication order that authorizes the dispense",
      "comment": "Maps to basedOn in Event logical model.",
      "mapping": [ {
        "map": "Event.basedOn",
        "identity": "workflow"
      }, {
        "map": "ORC-2 Placer Order Number",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.inFulfillmentOf",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Indicates the medication order that is being dispensed against."
    }, {
      "id": "MedicationDispense.type",
      "max": "1",
      "path": "MedicationDispense.type",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Trial fill, partial fill, emergency fill, etc.",
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseType"
        } ],
        "description": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc."
      },
      "mapping": [ {
        "map": "RXD-33-Dispense Type",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.code",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc."
    }, {
      "id": "MedicationDispense.quantity",
      "max": "1",
      "path": "MedicationDispense.quantity",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "short": "Amount dispensed",
      "mapping": [ {
        "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system",
        "identity": "v2"
      }, {
        "map": ".quantity",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.quantity",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "The amount of medication that has been dispensed. Includes unit of measure."
    }, {
      "id": "MedicationDispense.daysSupply",
      "max": "1",
      "path": "MedicationDispense.daysSupply",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "short": "Amount of medication expressed as a timing amount",
      "mapping": [ {
        "map": "TQ1.6 Timing/Quantity Segment Service Duration.\rPrior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component.  This is a formatted string, first character for the time unit (e.g., D=days), followed by the value.  For example, “D14” represents “14 days supply”\rFrom v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration.  This is a CQ data type ( ^ ), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^\rFor backwards compatibility, ORC.7 was permitted through v2.6.  Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6",
        "identity": "v2"
      }, {
        "map": "effectiveUseTime",
        "identity": "rim"
      } ],
      "definition": "The amount of medication expressed as a timing amount."
    }, {
      "id": "MedicationDispense.whenPrepared",
      "max": "1",
      "path": "MedicationDispense.whenPrepared",
      "type": [ {
        "code": "dateTime"
      } ],
      "short": "When product was packaged and reviewed",
      "mapping": [ {
        "map": "RXD-3-Date/Time Dispensed",
        "identity": "v2"
      }, {
        "map": ".effectiveTime[xmi:type=IVL_TS].low",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.effectiveTime",
        "identity": "rx-dispense-rmim"
      } ],
      "isSummary": true,
      "definition": "The time when the dispensed product was packaged and reviewed."
    }, {
      "id": "MedicationDispense.whenHandedOver",
      "max": "1",
      "path": "MedicationDispense.whenHandedOver",
      "type": [ {
        "code": "dateTime"
      } ],
      "short": "When product was given out",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "RXD-3-Date/Time Dispensed",
        "identity": "v2"
      }, {
        "map": ".effectiveTime[xmi:type=IVL_TS].high",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.effectiveTime",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "The time the dispensed product was provided to the patient or their representative."
    }, {
      "id": "MedicationDispense.destination",
      "max": "1",
      "path": "MedicationDispense.destination",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Location" ]
      } ],
      "short": "Where the medication was sent",
      "mapping": [ {
        "map": "RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=DST].role",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.destination",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Identification of the facility/location where the medication was shipped to, as part of the dispense event."
    }, {
      "id": "MedicationDispense.receiver",
      "path": "MedicationDispense.receiver",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Practitioner" ]
      } ],
      "short": "Who collected the medication",
      "mapping": [ {
        "map": ".participation[typeCode=RCV].role",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.SupplyEvent.receiver",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional."
    }, {
      "id": "MedicationDispense.note",
      "path": "MedicationDispense.note",
      "type": [ {
        "code": "Annotation"
      } ],
      "short": "Information about the dispense",
      "mapping": [ {
        "map": "Event.note",
        "identity": "workflow"
      }, {
        "map": "RXD-9 Dispense Notes",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "Extra information about the dispense that could not be conveyed in the other attributes."
    }, {
      "id": "MedicationDispense.dosageInstruction",
      "path": "MedicationDispense.dosageInstruction",
      "type": [ {
        "code": "Dosage"
      } ],
      "short": "How the medication is to be used by the patient or administered by the caregiver",
      "comment": "When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.",
      "definition": "Indicates how the medication is to be used by the patient."
    }, {
      "id": "MedicationDispense.substitution",
      "max": "1",
      "path": "MedicationDispense.substitution",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Whether a substitution was performed on the dispense",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.substitutionMade",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Indicates whether or not substitution was made as part of the dispense.  In some cases, substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.  If nothing is specified, substitution was not done."
    }, {
      "id": "MedicationDispense.substitution.wasSubstituted",
      "max": "1",
      "min": 1,
      "path": "MedicationDispense.substitution.wasSubstituted",
      "type": [ {
        "code": "boolean"
      } ],
      "short": "Whether a substitution was or was not performed on the dispense",
      "mapping": [ {
        "map": ".actionNegationInd",
        "identity": "rim"
      } ],
      "definition": "True if the dispenser dispensed a different drug or product from what was prescribed."
    }, {
      "id": "MedicationDispense.substitution.type",
      "max": "1",
      "path": "MedicationDispense.substitution.type",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Code signifying whether a different drug was dispensed from what was prescribed",
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationIntendedSubstitutionType"
        } ],
        "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription."
      },
      "mapping": [ {
        "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.substitutionMade.code",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "A code signifying whether a different drug was dispensed from what was prescribed."
    }, {
      "id": "MedicationDispense.substitution.reason",
      "path": "MedicationDispense.substitution.reason",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "short": "Why was substitution made",
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationIntendedSubstitutionReason"
        } ],
        "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed."
      },
      "mapping": [ {
        "map": ".reasonCode",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.substitutionMade.reasonCode",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "Indicates the reason for the substitution (or lack of substitution) from what was prescribed."
    }, {
      "id": "MedicationDispense.substitution.responsibleParty",
      "path": "MedicationDispense.substitution.responsibleParty",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ]
      } ],
      "short": "Who is responsible for the substitution",
      "mapping": [ {
        "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]",
        "identity": "rim"
      }, {
        "map": "CombinedMedicationDispense.substitutionMade.ResponsibleParty",
        "identity": "rx-dispense-rmim"
      } ],
      "definition": "The person or organization that has primary responsibility for the substitution."
    }, {
      "id": "MedicationDispense.detectedIssue",
      "path": "MedicationDispense.detectedIssue",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/DetectedIssue" ]
      } ],
      "alias": [ "Contraindication", "Drug Utilization Review (DUR)", "Alert" ],
      "short": "Clinical issue with action",
      "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value",
        "identity": "rim"
      } ],
      "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. drug-drug interaction, duplicate therapy, dosage alert etc."
    }, {
      "id": "MedicationDispense.eventHistory",
      "path": "MedicationDispense.eventHistory",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Provenance" ]
      } ],
      "short": "A list of relevant lifecycle events",
      "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
      "mapping": [ {
        "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "definition": "A summary of the events of interest that have occurred, such as when the dispense was verified."
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/medication/index.cfm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}