MedicationDispenseIHEMM
type: StructureDefinition
node role: treeRoot
resource.id:
  value: MedicationDispenseIHEMM
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints <a href="StructureDefinition-MedicationDispenseIHEMM-definitions.html#MedicationDispenseIHEMM" title="A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.">MedicationDispenseIHEMM 0..* Base [IHE MM] Logical Model for medication dispense identifier 0..1 Identifier status 0..1 code statusReason 0..1 CodeableConcept category 0..1 CodeableConcept medication 0..1 CodeableConcept subject 0..1 Reference(Patient) context 0..1 Reference(Encounter) supportingInformation 0..1 Reference() type 0..1 CodeableConcept quantity 0..1 Quantity note 0..1 Annotation prescription 0..1 Reference(MedicationRequest) steps 0..* BackboneElement stepName 0..1 CodeableConcept datetimeStep 0..1 dateTime actor 0..1 string substitution 0..1 boolean receiver 0..1 Reference(Patient | Person | Practitioner) destination 0..1 Reference(location) detectedIssues 0..1 Reference(DetectedIssue) eventHistory 0..1 Reference(Provenance) Documentation for this format
structure definition.url:
  value: http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationDispenseIHEMM
structure definition.version:
  value: 0.1.0
structure definition.name:
  value: MedicationDispenseIHEMM
structure definition.title:
  value: [IHE MM] Logical Model for medication dispense
structure definition.status:
  value: active
structure definition.date:
  value: 2023-02-04T16:49:41+00:00
structure definition.publisher:
  value: Integrating the Healthcare Enterprise (IHE)
structure definition.contact:
  index: 0
  contact detail.name:
    value: Integrating the Healthcare Enterprise (IHE)
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://ihe.net
  contact detail.telecom:
    index: 1
    contact point.system:
      value: email
structure definition.contact:
  index: 1
  contact detail.name:
    value: Jose Costa Teixeira
  contact detail.telecom:
    index: 0
    contact point.system:
      value: email
    contact point.use:
      value: work
structure definition.description:
  value: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://unstats.un.org/unsd/methods/m49/m49.htm
    coding.code:
      value: 001
structure definition.copyright:
  value: IHE http://www.ihe.net/Governance/#Intellectual_Property
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.kind:
  value: logical
structure definition.abstract:
  value: false
structure definition.type:
  value: http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationDispenseIHEMM
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
structure definition.derivation:
  value: specialization
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: MedicationDispenseIHEMM
    element definition.path:
      value: MedicationDispenseIHEMM
    element definition.short:
      value: [IHE MM] Logical Model for medication dispense
    element definition.definition:
      value: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Base
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.is modifier:
      value: false
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: MedicationDispenseIHEMM.identifier
    element definition.path:
      value: MedicationDispenseIHEMM.identifier
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationDispenseIHEMM.identifier
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: Identifier
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: MedicationDispenseIHEMM.status
    element definition.path:
      value: MedicationDispenseIHEMM.status
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationDispenseIHEMM.status
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: code
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: MedicationDispenseIHEMM.statusReason
    element definition.path:
      value: MedicationDispenseIHEMM.statusReason
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationDispenseIHEMM.statusReason
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: CodeableConcept
  structure definition.snapshot.element:
    index: 4
    element.id:
      value: MedicationDispenseIHEMM.category
    element definition.path:
      value: MedicationDispenseIHEMM.category
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationDispenseIHEMM.category
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: CodeableConcept
  structure definition.snapshot.element:
    index: 5
    element.id:
      value: MedicationDispenseIHEMM.medication
    element definition.path:
      value: MedicationDispenseIHEMM.medication
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationDispenseIHEMM.medication
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1

index: 0
element definition.type.code:
  value: CodeableConcept

index: 6
element.id:
  value: MedicationDispenseIHEMM.subject
element definition.path:
  value: MedicationDispenseIHEMM.subject
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.subject
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Patient

index: 7
element.id:
  value: MedicationDispenseIHEMM.context
element definition.path:
  value: MedicationDispenseIHEMM.context
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.context
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Encounter
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Encounter

index: 8
element.id:
  value: MedicationDispenseIHEMM.supportingInformation
element definition.path:
  value: MedicationDispenseIHEMM.supportingInformation
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.supportingInformation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 9
element.id:
  value: MedicationDispenseIHEMM.type
element definition.path:
  value: MedicationDispenseIHEMM.type
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 10
element.id:
  value: MedicationDispenseIHEMM.quantity
element definition.path:
  value: MedicationDispenseIHEMM.quantity
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.quantity
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Quantity

index: 11
element.id:
  value: MedicationDispenseIHEMM.note
element definition.path:
  value: MedicationDispenseIHEMM.note
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.note
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Annotation

index: 12
element.id:
  value: MedicationDispenseIHEMM.prescription
element definition.path:
  value: MedicationDispenseIHEMM.prescription
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.prescription
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/MedicationRequest

index: 13
element.id:
  value: MedicationDispenseIHEMM.steps
element definition.path:
  value: MedicationDispenseIHEMM.steps
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.steps
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

index: 14
element.id:
  value: MedicationDispenseIHEMM.steps.id
element definition.path:
  value: MedicationDispenseIHEMM.steps.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: Unique id for inter-element referencing
element definition.definition:
  value: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: string
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 15
element.id:
  value: MedicationDispenseIHEMM.steps.extension
element definition.path:
  value: MedicationDispenseIHEMM.steps.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 16
element.id:
  value: MedicationDispenseIHEMM.steps.modifierExtension
element definition.path:
  value: MedicationDispenseIHEMM.steps.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored even if unrecognized
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
element definition.comment:
  value: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
element definition.requirements:
  value: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 17
element.id:
  value: MedicationDispenseIHEMM.steps.stepName
element definition.path:
  value: MedicationDispenseIHEMM.steps.stepName
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.steps.stepName
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 18
element.id:
  value: MedicationDispenseIHEMM.steps.datetimeStep
element definition.path:
  value: MedicationDispenseIHEMM.steps.datetimeStep
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.steps.datetimeStep
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 19
element.id:
  value: MedicationDispenseIHEMM.steps.actor
element definition.path:
  value: MedicationDispenseIHEMM.steps.actor
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.steps.actor
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 20
element.id:
  value: MedicationDispenseIHEMM.substitution
element definition.path:
  value: MedicationDispenseIHEMM.substitution
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.substitution
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean

index: 21
element.id:
  value: MedicationDispenseIHEMM.receiver
element definition.path:
  value: MedicationDispenseIHEMM.receiver
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.receiver
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Person
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/Person
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    index: 2
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

index: 22
element.id:
  value: MedicationDispenseIHEMM.destination
element definition.path:
  value: MedicationDispenseIHEMM.destination
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.destination
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/openEHR-location
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/openEHR-location

index: 23
element.id:
  value: MedicationDispenseIHEMM.detectedIssues
element definition.path:
  value: MedicationDispenseIHEMM.detectedIssues
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.detectedIssues
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/DetectedIssue
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/DetectedIssue

index: 24
element.id:
  value: MedicationDispenseIHEMM.eventHistory
element definition.path:
  value: MedicationDispenseIHEMM.eventHistory
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispenseIHEMM.eventHistory
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Provenance
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Provenance

structure definition.differential.element:
  index: 0
  element.id:
    value: MedicationDispenseIHEMM
  element definition.path:
    value: MedicationDispenseIHEMM
  element definition.short:
    value: [IHE MM] Logical Model for medication dispense
  element definition.definition:
    value: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
structure definition.differential.element:
  index: 1
  element.id:
    value: MedicationDispenseIHEMM.identifier
  element definition.path:
    value: MedicationDispenseIHEMM.identifier
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
structure definition.differential.element:
  index: 2
  element.id:
    value: MedicationDispenseIHEMM.status
  element definition.path:
    value: MedicationDispenseIHEMM.status
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: code
structure definition.differential.element:
  index: 3
  element.id:
    value: MedicationDispenseIHEMM.statusReason
  element definition.path:
    value: MedicationDispenseIHEMM.statusReason
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 4
  element.id:
    value: MedicationDispenseIHEMM.category
  element definition.path:
    value: MedicationDispenseIHEMM.category
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 5
  element.id:
    value: MedicationDispenseIHEMM.medication
  element definition.path:
    value: MedicationDispenseIHEMM.medication
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 6
  element.id:
    value: MedicationDispenseIHEMM.subject
  element definition.path:
    value: MedicationDispenseIHEMM.subject
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/StructureDefinition/Patient
      index: 0
      link: http://hl7.org/fhir/StructureDefinition/Patient
structure definition.differential.element:
  index: 7
  element.id:
    value: MedicationDispenseIHEMM.context
  element definition.path:
    value: MedicationDispenseIHEMM.context
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/StructureDefinition/Encounter
      index: 0
      link: http://hl7.org/fhir/StructureDefinition/Encounter
structure definition.differential.element:
  index: 8
  element.id:
    value: MedicationDispenseIHEMM.supportingInformation
  element definition.path:
    value: MedicationDispenseIHEMM.supportingInformation
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
structure definition.differential.element:
  index: 9
  element.id:
    value: MedicationDispenseIHEMM.type
  element definition.path:
    value: MedicationDispenseIHEMM.type
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 10
  element.id:
    value: MedicationDispenseIHEMM.quantity
  element definition.path:
    value: MedicationDispenseIHEMM.quantity
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Quantity
structure definition.differential.element:
  index: 11
  element.id:
    value: MedicationDispenseIHEMM.note
  element definition.path:
    value: MedicationDispenseIHEMM.note
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Annotation
structure definition.differential.element:
  index: 12
  element.id:
    value: MedicationDispenseIHEMM.prescription
  element definition.path:
    value: MedicationDispenseIHEMM.prescription
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/StructureDefinition/MedicationRequest
      index: 0
      link: http://hl7.org/fhir/StructureDefinition/MedicationRequest
structure definition.differential.element:
  index: 13
  element.id:
    value: MedicationDispenseIHEMM.steps
  element definition.path:
    value: MedicationDispenseIHEMM.steps
  element definition.min:
    value: 0
  element definition.max:
    value: *
  element definition.type:
    index: 0

value: BackboneElement

index: 14
element.id:
  value: MedicationDispenseIHEMM.steps.stepName
element definition.path:
  value: MedicationDispenseIHEMM.steps.stepName
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 15
element.id:
  value: MedicationDispenseIHEMM.steps.datetimeStep
element definition.path:
  value: MedicationDispenseIHEMM.steps.datetimeStep
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 16
element.id:
  value: MedicationDispenseIHEMM.steps.actor
element definition.path:
  value: MedicationDispenseIHEMM.steps.actor
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 17
element.id:
  value: MedicationDispenseIHEMM.substitution
element definition.path:
  value: MedicationDispenseIHEMM.substitution
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean

index: 18
element.id:
  value: MedicationDispenseIHEMM.receiver
element definition.path:
  value: MedicationDispenseIHEMM.receiver
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Person
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/Person
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    index: 2
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

index: 19
element.id:
  value: MedicationDispenseIHEMM.destination
element definition.path:
  value: MedicationDispenseIHEMM.destination
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/openEHR-location
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/openEHR-location

index: 20
element.id:
  value: MedicationDispenseIHEMM.detectedIssues
element definition.path:
  value: MedicationDispenseIHEMM.detectedIssues
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/DetectedIssue
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/DetectedIssue

index: 21
element.id:
  value: MedicationDispenseIHEMM.eventHistory
element definition.path:
  value: MedicationDispenseIHEMM.eventHistory
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Provenance
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Provenance