ch-emed-medicationdispense
type: StructureDefinition
node role: treeRoot
resource.id:
  value: ch-emed-medicationdispense
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints MedicationDispense 0..* MedicationDispense CH EMED MedicationDispense contained 1..1 Resource Medication inline resource extension 0..* Extension Extension Slice: Unordered, Open by value:url ch-emed-ext-treatmentreason 0..1 string Treatment reason URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason ch-emed-ext-prescription 0..1 (Complex) Reference to the medication prescription URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription ch-emed-ext-pharmaceuticaladvice 0..1 (Complex) Reference to the pharmaceutical advice URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice ch-emed-ext-treatmentplan 0..1 (Complex) Reference to the medication treatment plan URL: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan identifier 0..* Identifier Dispense item ID system 0..1 uri The namespace for the identifier value value 0..1 string The value that is unique status 1..1 code preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown Fixed Value: completed medicationReference 1..1 Reference(CH EMED Medication Profile (MedicationDispense)) Reference to the contained medication subject 0..1 Reference(CH Core Composition Patient Profile EPR) Patient reference 1..1 string Literal reference, Relative, internal or absolute URL quantity 1..1 SimpleQuantity Number of packages whenHandedOver 0..1 dateTime When product was given out note 0..1 Annotation Annotation dosageInstruction 1..* (Slice Definition) How the medication should be taken Slice: Unordered, Open by profile:$this dosageInstruction:nonstructured 1..1 CHEMEDDosageNonStructured Free text dosage instructions dosageInstruction:structured 0..* CHEMEDDosageStructured Structured dosage instructions substitution 0..1 BackboneElement Whether a substitution was performed on the dispense wasSubstituted 1..1 boolean Whether a substitution w…
structure definition.url:
  value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense
structure definition.version:
  value: 0.2.0
structure definition.name:
  value: CHEMEDMedicationDispense
structure definition.title:
  value: CH EMED MedicationDispense Profile
structure definition.status:
  value: active
structure definition.experimental:
  value: false
structure definition.date:
  value: 2021-02-12T16:01:26+01:00
structure definition.publisher:
  value: eHealth Suisse
structure definition.contact:
  index: 0
  contact detail.name:
    value: eHealth Suisse
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.e-health-suisse.ch/startseite.html
structure definition.description:
  value: Definition of the medication dispense
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: CH
structure definition.copyright:
  value: CC-BY-SA-4.0
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: cda
  structure definition.mapping.uri:
    value: http://hl7.org/v3/cda
  structure definition.mapping.name:
    value: CDA (R2)
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: workflow
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/workflow
  structure definition.mapping.name:
    value: Workflow Pattern
structure definition.mapping:
  index: 2
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: 3
  structure definition.mapping.identity:
    value: w5
  structure definition.mapping.uri:
    value: http://hl7.org/fhir/fivews
  structure definition.mapping.name:
    value: FiveWs Pattern Mapping
structure definition.mapping:
  index: 4
  structure definition.mapping.identity:
    value: rx-dispense-rmim
  structure definition.mapping.uri:
    value: http://www.hl7.org/v3/PORX_RM020070UV
  structure definition.mapping.name:
    value: V3 Pharmacy Dispense RMIM
structure definition.mapping:
  index: 5
  structure definition.mapping.identity:
    value: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: MedicationDispense
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/MedicationDispense
  link: http://hl7.org/fhir/StructureDefinition/MedicationDispense
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: MedicationDispense
    element definition.path:
      value: MedicationDispense
    element definition.short:
      value: CH EMED MedicationDispense
    element definition.definition:
      value: 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.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: MedicationDispense
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: dom-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      element definition.constraint.expression:
        value: contained.contained.empty()
      element definition.constraint.xpath:
        value: not(parent::f:contained and f:contained)
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: 1
      element definition.constraint.key:
        value: dom-3
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      element definition.constraint.expression:
        value: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      element definition.constraint.xpath:
        value: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: 2
      element definition.constraint.key:
        value: dom-4
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      element definition.constraint.expression:
        value: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      element definition.constraint.xpath:
        value: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: 3
      element definition.constraint.key:
        value: dom-5
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If a resource is contained in another resource, it SHALL NOT have a security label
      element definition.constraint.expression:
        value: contained.meta.security.empty()
      element definition.constraint.xpath:
        value: not(exists(f:contained/*/f:meta/f:security))
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    element definition.constraint:
      index: 4
      element.extension:
        index: 0
      element.extension:
        index: 1
      element definition.constraint.key:
        value: dom-6
      element definition.constraint.severity:
        value: warning
      element definition.constraint.human:
        value: A resource should have narrative for robust management
      element definition.constraint.expression:
        value: text.`div`.exists()

value: true

value: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

value: exists(f:text/h:div)

index: 5
element definition.constraint.key:
  value: mdd-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: whenHandedOver cannot be before whenPrepared
element definition.constraint.expression:
  value: whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared
element definition.constraint.xpath:
  value: not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)
element definition.constraint.source:
  value: http://hl7.org/fhir/StructureDefinition/MedicationDispense
  link: http://hl7.org/fhir/StructureDefinition/MedicationDispense

value: false

value: false

index: 0
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Entity. Role, or Act

index: 1
element definition.mapping.identity:
  value: workflow
element definition.mapping.map:
  value: Event

index: 2
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: Supply[moodCode=EVN]

index: 3
element definition.mapping.identity:
  value: cda
element definition.mapping.map:
  value: supply

index: 1
element.id:
  value: MedicationDispense.id
element definition.path:
  value: MedicationDispense.id
element definition.short:
  value: Logical id of this artifact
element definition.definition:
  value: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
element definition.comment:
  value: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.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: true

index: 2
element.id:
  value: MedicationDispense.meta
element definition.path:
  value: MedicationDispense.meta
element definition.short:
  value: Metadata about the resource
element definition.definition:
  value: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.meta
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Meta
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.is modifier:
  value: false
element definition.is summary:
  value: true

index: 3
element.id:
  value: MedicationDispense.implicitRules
element definition.path:
  value: MedicationDispense.implicitRules
element definition.short:
  value: A set of rules under which this content was created
element definition.definition:
  value: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
element definition.comment:
  value: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.implicitRules
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
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.is modifier:
  value: true
element definition.is modifier reason:
  value: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
element definition.is summary:
  value: true

index: 4
element.id:
  value: MedicationDispense.language
element definition.path:
  value: MedicationDispense.language
element definition.short:
  value: Language of the resource content
element definition.definition:
  value: The base language in which the resource is written.
element definition.comment:
  value: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Resource.language
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    extension.value canonical:
      value: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: Language
  element.extension:
    index: 2
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: A human language.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

index: 5
element.id:
  value: MedicationDispense.text
element definition.path:
  value: MedicationDispense.text
element definition.short:
  value: Text summary of the resource, for human interpretation
element definition.definition:
  value: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
element definition.comment:
  value: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
element definition.alias:
  value: narrative
  index: 0
element definition.alias:
  value: html
  index: 1
element definition.alias:
  value: xhtml
  index: 2
element definition.alias:
  value: display
  index: 3
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Narrative
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.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: Act.text?

index: 6
element.id:
  value: MedicationDispense.contained
element definition.path:
  value: MedicationDispense.contained
element definition.short:
  value: Medication inline resource
element definition.definition:
  value: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
element definition.comment:
  value: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
element definition.alias:
  value: inline resources
  index: 0
element definition.alias:
  value: anonymous resources
  index: 1
element definition.alias:
  value: contained resources
  index: 2
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.contained
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Resource
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: 7
element.id:
  value: MedicationDispense.extension
element definition.path:
  value: MedicationDispense.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.rules:
    value: open
element definition.short:
  value: Extension
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.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

index: 8
element.id:
  value: MedicationDispense.extension:treatmentReason
element definition.path:
  value: MedicationDispense.extension
element definition.slice name:
  value: treatmentReason
element definition.short:
  value: Treatment reason
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.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.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason
element definition.condition:
  value: ele-1
  index: 0
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.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.observation.text

index: 9
element.id:
  value: MedicationDispense.extension:prescription
element definition.path:
  value: MedicationDispense.extension
element definition.slice name:
  value: prescription
element definition.short:
  value: Reference to the medication prescription
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.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.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription
element definition.condition:
  value: ele-1
  index: 0
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.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.substanceAdministration.id

index: 10
element.id:
  value: MedicationDispense.extension:pharmaceuticalAdvice
element definition.path:
  value: MedicationDispense.extension
element definition.slice name:
  value: pharmaceuticalAdvice
element definition.short:
  value: Reference to the pharmaceutical advice
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.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.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice
element definition.condition:
  value: ele-1
  index: 0
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.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.substanceAdministration.id

index: 11
element.id:
  value: MedicationDispense.extension:treatmentPlan
element definition.path:
  value: MedicationDispense.extension
element definition.slice name:
  value: treatmentPlan
element definition.short:
  value: Reference to the medication treatment plan
element definition.definition:
  value: An Extension
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DomainResource.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.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
element definition.condition:
  value: ele-1
  index: 0
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.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.substanceAdministration.id

index: 12
element.id:
  value: MedicationDispense.modifierExtension
element definition.path:
  value: MedicationDispense.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.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 resource that contains them
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: 13
element.id:
  value: MedicationDispense.identifier
element definition.path:
  value: MedicationDispense.identifier
element definition.short:
  value: Dispense item ID
element definition.definition:
  value: 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.
element definition.comment:
  value: This is a business identifier, not a resource identifier.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.identifier
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.identifier
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .id
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.id
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .id

index: 14
element.id:
  value: MedicationDispense.identifier.id
element definition.path:
  value: MedicationDispense.identifier.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: MedicationDispense.identifier.extension
element definition.path:
  value: MedicationDispense.identifier.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: MedicationDispense.identifier.use
element definition.path:
  value: MedicationDispense.identifier.use
element definition.short:
  value: usual | official | temp | secondary | old (If known)
element definition.definition:
  value: The purpose of this identifier.
element definition.comment:
  value: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
element definition.requirements:
  value: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
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.is modifier:
  value: true
element definition.is modifier reason:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: IdentifierUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Identifies the purpose for this identifier, if known .
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: N/A
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.code or implied by context

index: 17
element.id:
  value: MedicationDispense.identifier.type
element definition.path:
  value: MedicationDispense.identifier.type
element definition.short:
  value: Description of identifier
element definition.definition:
  value: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
element definition.comment:
  value: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
element definition.requirements:
  value: Allows users to make use of identifiers when the identifier system is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: IdentifierType
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/identifier-type
    link: http://hl7.org/fhir/ValueSet/identifier-type
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.5
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.code or implied by context

index: 18
element.id:
  value: MedicationDispense.identifier.system
element definition.path:
  value: MedicationDispense.identifier.system
element definition.short:
  value: The namespace for the identifier value
element definition.definition:
  value: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
element definition.comment:
  value: Identifier.system is always case sensitive.
element definition.requirements:
  value: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value uri:
    value: http://www.acme.com/identifiers/patient
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.4 / EI-2-4
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.root or Role.id.root
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./IdentifierType

index: 19
element.id:
  value: MedicationDispense.identifier.value
element definition.path:
  value: MedicationDispense.identifier.value
element definition.short:
  value: The value that is unique
element definition.definition:
  value: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
element definition.comment:
  value: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.value
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 123456
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.1 / EI.1
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Value

index: 20
element.id:
  value: MedicationDispense.identifier.period
element definition.path:
  value: MedicationDispense.identifier.period
element definition.short:
  value: Time period when id is/was valid for use
element definition.definition:
  value: Time period during which identifier is/was valid for use.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.7 + CX.8
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.effectiveTime or implied by context
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 21
element.id:
  value: MedicationDispense.identifier.assigner
element definition.path:
  value: MedicationDispense.identifier.assigner
element definition.short:
  value: Organization that issued id (may be just text)
element definition.definition:
  value: Organization that issued/manages the identifier.
element definition.comment:
  value: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.assigner
  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/Organization
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Organization
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.4 / (CX.4,CX.9,CX.10)
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./IdentifierIssuingAuthority

index: 22
element.id:
  value: MedicationDispense.partOf
element definition.path:
  value: MedicationDispense.partOf
element definition.short:
  value: Event that dispense is part of
element definition.definition:
  value: The procedure that trigger the dispense.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.partOf
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Procedure
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Procedure
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.partOf
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]

index: 23
element.id:
  value: MedicationDispense.status
element definition.path:
  value: MedicationDispense.status
element definition.short:
  value: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
element definition.definition:
  value: A code specifying the state of the set of dispense events.
element definition.comment:
  value: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.status
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.fixed code:
  value: completed
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.is modifier:
  value: true
element definition.is modifier reason:
  value: 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
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationDispenseStatus
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: A coded concept specifying the state of the dispense event.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.status
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.status
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .statusCode
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.statusCode

index: 24
element.id:
  value: MedicationDispense.statusReason[x]
element definition.path:
  value: MedicationDispense.statusReason[x]
element definition.short:
  value: Why a dispense was not performed
element definition.definition:
  value: Indicates the reason why a dispense was not performed.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.statusReason[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.type:
  index: 1
  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
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationDispenseStatusReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A code describing why a dispense was not performed.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationdispense-status-reason
    link: http://hl7.org/fhir/ValueSet/medicationdispense-status-reason
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.statusReason
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="not done reason"].value

index: 25
element.id:
  value: MedicationDispense.category
element definition.path:
  value: MedicationDispense.category
element definition.short:
  value: Type of medication dispense
element definition.definition:
  value: Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
element definition.comment:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.category
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationDispenseCategory
  element definition.binding.strength:
    value: preferred
  element definition.binding.description:
    value: A code describing where the dispensed medication is expected to be consumed or administered.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationdispense-category
    link: http://hl7.org/fhir/ValueSet/medicationdispense-category
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication dispense"].value

index: 26
element.id:
  value: MedicationDispense.medication[x]
element definition.path:
  value: MedicationDispense.medication[x]
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: type
    element definition.slicing.discriminator.path:
      value: $this
  element definition.slicing.ordered:
    value: false
  element definition.slicing.rules:
    value: closed
element definition.short:
  value: What medication was supplied
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.medication[x]
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.code
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.what[x]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-2-Dispense/Give Code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=PRD].role
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationRequest.component1.AdministrationRequest.consumable

index: 27
element.id:
  value: MedicationDispense.medication[x]:medicationReference
element definition.path:
  value: MedicationDispense.medication[x]
element definition.slice name:
  value: medicationReference
element definition.short:
  value: Reference to the contained medication
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.medication[x]
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationdispense
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationdispense
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.code
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.what[x]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-2-Dispense/Give Code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=PRD].role
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationRequest.component1.AdministrationRequest.consumable
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .consumable.manufacturedProduct.manufacturedMaterial

index: 28
element.id:
  value: MedicationDispense.subject
element definition.path:
  value: MedicationDispense.subject
element definition.short:
  value: Patient
element definition.definition:
  value: A link to a resource representing the person or the group to whom the medication will be given.
element definition.comment:
  value: SubstanceAdministration->subject->Patient.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.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://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-patient-epr
    index: 0
    link: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-patient-epr
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.subject
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject[x]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-3-Patient ID List
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=SBJ].role[classCode=PAT]
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.subject
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: ClinicalDocument.recordTarget

index: 29
element.id:
  value: MedicationDispense.subject.id
element definition.path:
  value: MedicationDispense.subject.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: 30
element.id:
  value: MedicationDispense.subject.extension
element definition.path:
  value: MedicationDispense.subject.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: 31
element.id:
  value: MedicationDispense.subject.reference
element definition.path:
  value: MedicationDispense.subject.reference
element definition.short:
  value: Literal reference, Relative, internal or absolute URL
element definition.definition:
  value: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
element definition.comment:
  value: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.reference
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.condition:
  value: ref-1
  index: 0
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.is modifier:
  value: false
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: 32
element.id:
  value: MedicationDispense.subject.type
element definition.path:
  value: MedicationDispense.subject.type
element definition.short:
  value: Type the reference refers to (e.g. "Patient")
element definition.definition:
  value: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
element definition.comment:
  value: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: FHIRResourceTypeExt
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: Aa resource (or, for logical models, the URI of the logical model).
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 33
element.id:
  value: MedicationDispense.subject.identifier
element definition.path:
  value: MedicationDispense.subject.identifier
element definition.short:
  value: Logical reference, when literal reference is not known
element definition.definition:
  value: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
element definition.comment:
  value: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .identifier

index: 34
element.id:
  value: MedicationDispense.subject.display
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: MedicationDispense.subject.display
element definition.short:
  value: Text alternative for the resource
element definition.definition:
  value: Plain text narrative that identifies the resource in addition to the resource reference.
element definition.comment:
  value: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
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.is modifier:
  value: false
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: 35
element.id:
  value: MedicationDispense.context
element definition.path:
  value: MedicationDispense.context
element definition.short:
  value: Encounter / Episode associated with event
element definition.definition:
  value: The encounter or episode of care that establishes the context for this event.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.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
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.context
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]

index: 36
element.id:
  value: MedicationDispense.supportingInformation
element definition.path:
  value: MedicationDispense.supportingInformation
element definition.short:
  value: Information that supports the dispensing of the medication
element definition.definition:
  value: Additional information that supports the medication being dispensed.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.supportingInformation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Resource
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Resource
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: FiveWs.context
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .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)]

index: 37
element.id:
  value: MedicationDispense.performer
element definition.path:
  value: MedicationDispense.performer
element definition.short:
  value: Who performed event
element definition.definition:
  value: Indicates who or what performed the event.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.performer
  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
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.performer
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=PRF]

index: 38
element.id:
  value: MedicationDispense.performer.id
element definition.path:
  value: MedicationDispense.performer.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: 39
element.id:
  value: MedicationDispense.performer.extension
element definition.path:
  value: MedicationDispense.performer.extension
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: 40
element.id:
  value: MedicationDispense.performer.modifierExtension
element definition.path:
  value: MedicationDispense.performer.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: 41
element.id:
  value: MedicationDispense.performer.function
element definition.path:
  value: MedicationDispense.performer.function
element definition.short:
  value: Who performed the dispense and what they did
element definition.definition:
  value: Distinguishes the type of performer in the dispense. For example, date enterer, packager, final checker.
element definition.requirements:
  value: Allows disambiguation of the types of involvement of different performers.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.performer.function
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationDispensePerformerFunction
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A code describing the role an individual played in dispensing a medication.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/medicationdispense-performer-function
    link: http://hl7.org/fhir/ValueSet/medicationdispense-performer-function
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: participation[typeCode=PRF].functionCode

index: 42
element.id:
  value: MedicationDispense.performer.actor
element definition.path:
  value: MedicationDispense.performer.actor
element definition.short:
  value: Individual who was performing
element definition.definition:
  value: The device, practitioner, etc. who performed the action. It should be assumed that the actor is the dispenser of the medication.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.performer.actor
  element definition.base.min:
    value: 1
  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/Practitioner
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Organization
    index: 2
    link: http://hl7.org/fhir/StructureDefinition/Organization
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    index: 3
    link: http://hl7.org/fhir/StructureDefinition/Patient
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Device
    index: 4
    link: http://hl7.org/fhir/StructureDefinition/Device
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    index: 5
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.performer.actor
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .role

index: 43
element.id:
  value: MedicationDispense.location
element definition.path:
  value: MedicationDispense.location
element definition.short:
  value: Where the dispense occurred
element definition.definition:
  value: The principal physical location where the dispense was performed.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.location
  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/Location
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Location
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.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: .participation[typeCode=LOC].role

index: 44
element.id:
  value: MedicationDispense.authorizingPrescription
element definition.path:
  value: MedicationDispense.authorizingPrescription
element definition.short:
  value: Medication order that authorizes the dispense
element definition.definition:
  value: Indicates the medication order that is being dispensed against.
element definition.comment:
  value: Maps to basedOn in Event logical model.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.authorizingPrescription
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
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
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.basedOn
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ORC-2 Placer Order Number
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=FLFS].target[moodCode=RQO]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.inFulfillmentOf

index: 45
element.id:
  value: MedicationDispense.type
element definition.path:
  value: MedicationDispense.type
element definition.short:
  value: Trial fill, partial fill, emergency fill, etc.
element definition.definition:
  value: Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationDispenseType
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType
    link: http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-33-Dispense Type
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .code
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.code

index: 46
element.id:
  value: MedicationDispense.quantity
element definition.path:
  value: MedicationDispense.quantity
element definition.short:
  value: Number of packages
element definition.definition:
  value: The amount of medication that has been dispensed. Includes unit of measure.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.quantity
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .quantity
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.quantity
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .quantity

index: 47
element.id:
  value: MedicationDispense.daysSupply
element definition.path:
  value: MedicationDispense.daysSupply
element definition.short:
  value: Amount of medication expressed as a timing amount
element definition.definition:
  value: The amount of medication expressed as a timing amount.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.daysSupply
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Quantity
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: TQ1.6 Timing/Quantity Segment Service Duration. Prior 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” From v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration. This is a CQ data type (<Quantity (NM)> ^ <Units (CWE)>), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^ For 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
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: effectiveUseTime

index: 48
element.id:
  value: MedicationDispense.whenPrepared
element definition.path:
  value: MedicationDispense.whenPrepared
element definition.short:
  value: When product was packaged and reviewed
element definition.definition:
  value: The time when the dispensed product was packaged and reviewed.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.whenPrepared
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
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.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-3-Date/Time Dispensed
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .effectiveTime[xmi:type=IVL_TS].low
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.effectiveTime

index: 49
element.id:
  value: MedicationDispense.whenHandedOver
element definition.path:
  value: MedicationDispense.whenHandedOver
element definition.short:
  value: When product was given out
element definition.definition:
  value: The time the dispensed product was provided to the patient or their representative.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.whenHandedOver
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.occurrence[x]
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-3-Date/Time Dispensed
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .effectiveTime[xmi:type=IVL_TS].high
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.effectiveTime

index: 50
element.id:
  value: MedicationDispense.destination
element definition.path:
  value: MedicationDispense.destination
element definition.short:
  value: Where the medication was sent
element definition.definition:
  value: Identification of the facility/location where the medication was shipped to, as part of the dispense event.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.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/Location
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Location
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .participation[typeCode=DST].role
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.destination

index: 51
element.id:
  value: MedicationDispense.receiver
element definition.path:
  value: MedicationDispense.receiver
element definition.short:
  value: Who collected the medication
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.receiver
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
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/Practitioner
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
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.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: .participation[typeCode=RCV].role
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.SupplyEvent.receiver

index: 52
element.id:
  value: MedicationDispense.note
element definition.path:
  value: MedicationDispense.note
element definition.short:
  value: Annotation
element definition.definition:
  value: Extra information about the dispense that could not be conveyed in the other attributes.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.note
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Annotation
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: workflow
  element definition.mapping.map:
    value: Event.note
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXD-9 Dispense Notes
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.act.text

index: 53
element.id:
  value: MedicationDispense.dosageInstruction
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: profile
    element definition.slicing.discriminator.path:
      value: $this
  element definition.slicing.rules:
    value: open
element definition.short:
  value: How the medication should be taken
element definition.definition:
  value: Indicates how the medication is to be used by the patient.
element definition.comment:
  value: 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. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.
element definition.min:
  value: 1
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.dosageInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
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.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: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]

index: 54
element.id:
  value: MedicationDispense.dosageInstruction:nonstructured
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slice name:
  value: nonstructured
element definition.short:
  value: Free text dosage instructions
element definition.definition:
  value: Indicates how the medication is/was taken or should be taken by the patient.
element definition.comment:
  value: 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. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.dosageInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured
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.is modifier:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]

index: 55
element.id:
  value: MedicationDispense.dosageInstruction:structured
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slice name:
  value: structured
element definition.short:
  value: Structured dosage instructions
element definition.definition:
  value: Indicates how the medication is/was taken or should be taken by the patient.
element definition.comment:
  value: 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. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.dosageInstruction
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured
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.is modifier:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]

index: 56
element.id:
  value: MedicationDispense.substitution
element definition.path:
  value: MedicationDispense.substitution
element definition.short:
  value: Whether a substitution was performed on the dispense
element definition.definition:
  value: 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.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.substitution
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
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
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: .outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.substitutionMade

index: 57
element.id:
  value: MedicationDispense.substitution.id
element definition.path:
  value: MedicationDispense.substitution.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: 58
element.id:
  value: MedicationDispense.substitution.extension
element definition.path:
  value: MedicationDispense.substitution.extension
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: 59
element.id:
  value: MedicationDispense.substitution.modifierExtension
element definition.path:
  value: MedicationDispense.substitution.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: 60
element.id:
  value: MedicationDispense.substitution.wasSubstituted
element definition.path:
  value: MedicationDispense.substitution.wasSubstituted
element definition.short:
  value: Whether a substitution was or was not performed on the dispense
element definition.definition:
  value: True if the dispenser dispensed a different drug or product from what was prescribed.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.substitution.wasSubstituted
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
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.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: .actionNegationInd

index: 61
element.id:
  value: MedicationDispense.substitution.type
element definition.path:
  value: MedicationDispense.substitution.type
element definition.short:
  value: Code signifying whether a different drug was dispensed from what was prescribed
element definition.definition:
  value: A code signifying whether a different drug was dispensed from what was prescribed.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationDispense.substitution.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element definition.binding.strength:
    value: preferred
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
    link: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RXO-9-Allow Substitutions / RXE-9-Substitution Status
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .code
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.substitutionMade.code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.act.code

index: 62
element.id:
  value: MedicationDispense.substitution.reason
element definition.path:
  value: MedicationDispense.substitution.reason
element definition.short:
  value: Why was substitution made
element definition.definition:
  value: Indicates the reason for the substitution (or lack of substitution) from what was prescribed.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.substitution.reason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
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.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: MedicationIntendedSubstitutionReason
  element definition.binding.strength:
    value: example
  element definition.binding.description:
    value: A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason
    link: http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .reasonCode
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.substitutionMade.reasonCode

index: 63
element.id:
  value: MedicationDispense.substitution.responsibleParty
element definition.path:
  value: MedicationDispense.substitution.responsibleParty
element definition.short:
  value: Who is responsible for the substitution
element definition.definition:
  value: The person or organization that has primary responsibility for the substitution.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.substitution.responsibleParty
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  element definition.type.target profile:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    index: 1
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
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.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: .participation[typeCode=PFM].role[classCode=ASSIGN]
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rx-dispense-rmim
  element definition.mapping.map:
    value: CombinedMedicationDispense.substitutionMade.ResponsibleParty

index: 64
element.id:
  value: MedicationDispense.detectedIssue
element definition.path:
  value: MedicationDispense.detectedIssue
element definition.short:
  value: Clinical issue with action
element definition.definition:
  value: 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: Contraindication
  index: 0
element definition.alias:
  value: Drug Utilization Review (DUR)
  index: 1
element definition.alias:
  value: Alert
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.detectedIssue
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
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
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.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: .inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value

index: 65
element.id:
  value: MedicationDispense.eventHistory
element definition.path:
  value: MedicationDispense.eventHistory
element definition.short:
  value: A list of relevant lifecycle events
element definition.definition:
  value: A summary of the events of interest that have occurred, such as when the dispense was verified.
element definition.comment:
  value: 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.).
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationDispense.eventHistory
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
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
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.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: .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]

structure definition.differential.element:
  index: 0
  element.id:
    value: MedicationDispense
  element definition.path:
    value: MedicationDispense
  element definition.short:
    value: CH EMED MedicationDispense
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: supply
structure definition.differential.element:
  index: 1
  element.id:
    value: MedicationDispense.contained
  element definition.path:
    value: MedicationDispense.contained
  element definition.short:
    value: Medication inline resource
  element definition.min:
    value: 1
  element definition.max:
    value: 1
structure definition.differential.element:
  index: 2
  element.id:
    value: MedicationDispense.extension
  element definition.path:
    value: MedicationDispense.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.rules:
      value: open
structure definition.differential.element:
  index: 3
  element.id:
    value: MedicationDispense.extension:treatmentReason
  element definition.path:
    value: MedicationDispense.extension
  element definition.slice name:
    value: treatmentReason
  element definition.short:
    value: Treatment reason
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentreason
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: .entryRelationship.observation.text
structure definition.differential.element:
  index: 4
  element.id:
    value: MedicationDispense.extension:prescription
  element definition.path:
    value: MedicationDispense.extension
  element definition.slice name:
    value: prescription
  element definition.short:
    value: Reference to the medication prescription
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-prescription
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: .entryRelationship.substanceAdministration.id
structure definition.differential.element:
  index: 5
  element.id:
    value: MedicationDispense.extension:pharmaceuticalAdvice
  element definition.path:
    value: MedicationDispense.extension
  element definition.slice name:
    value: pharmaceuticalAdvice
  element definition.short:
    value: Reference to the pharmaceutical advice
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-pharmaceuticaladvice
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: .entryRelationship.substanceAdministration.id
structure definition.differential.element:
  index: 6
  element.id:
    value: MedicationDispense.extension:treatmentPlan
  element definition.path:
    value: MedicationDispense.extension
  element definition.slice name:
    value: treatmentPlan
  element definition.short:
    value: Reference to the medication treatment plan
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: .entryRelationship.substanceAdministration.id
structure definition.differential.element:
  index: 7
  element.id:
    value: MedicationDispense.identifier
  element definition.path:
    value: MedicationDispense.identifier
  element definition.short:
    value: Dispense item ID
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: cda
    element definition.mapping.map:
      value: .id
structure definition.differential.element:
  index: 8
  element.id:
    value: MedicationDispense.identifier.system
  element definition.path:
    value: MedicationDispense.identifier.system
structure definition.differential.element:
  index: 9
  element.id:
    value: MedicationDispense.identifier.value
  element definition.path:
    value: MedicationDispense.identifier.value
structure definition.differential.element:
  index: 10
  element.id:
    value: MedicationDispense.status
  element definition.path:
    value: MedicationDispense.status
  element definition.fixed code:
    value: completed
structure definition.differential.element:
  index: 11
  element.id:
    value: MedicationDispense.medicationReference
  element definition.path:
    value: MedicationDispense.medicationReference
  element definition.short:
    value: Reference to the contained medication
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationdispense
      index: 0
      link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication-medicationdispense

index: 0
element definition.mapping.identity:
  value: cda
element definition.mapping.map:
  value: .consumable.manufacturedProduct.manufacturedMaterial

index: 12
element.id:
  value: MedicationDispense.subject
element definition.path:
  value: MedicationDispense.subject
element definition.short:
  value: Patient
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-patient-epr
    index: 0
    link: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-patient-epr
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: ClinicalDocument.recordTarget

index: 13
element.id:
  value: MedicationDispense.subject.reference
element definition.path:
  value: MedicationDispense.subject.reference
element definition.min:
  value: 1

index: 14
element.id:
  value: MedicationDispense.quantity
element definition.path:
  value: MedicationDispense.quantity
element definition.short:
  value: Number of packages
element definition.min:
  value: 1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .quantity

index: 15
element.id:
  value: MedicationDispense.whenHandedOver
element definition.path:
  value: MedicationDispense.whenHandedOver
element definition.short:
  value: When product was given out

index: 16
element.id:
  value: MedicationDispense.note
element definition.path:
  value: MedicationDispense.note
element definition.short:
  value: Annotation
element definition.max:
  value: 1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.act.text

index: 17
element.id:
  value: MedicationDispense.dosageInstruction
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: profile
    element definition.slicing.discriminator.path:
      value: $this
  element definition.slicing.rules:
    value: open
element definition.short:
  value: How the medication should be taken
element definition.min:
  value: 1

index: 18
element.id:
  value: MedicationDispense.dosageInstruction:nonstructured
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slice name:
  value: nonstructured
element definition.short:
  value: Free text dosage instructions
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured

index: 19
element.id:
  value: MedicationDispense.dosageInstruction:structured
element definition.path:
  value: MedicationDispense.dosageInstruction
element definition.slice name:
  value: structured
element definition.short:
  value: Structured dosage instructions
element definition.type:
  index: 0
  element definition.type.code:
    value: Dosage
  element definition.type.profile:
    value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured
    index: 0
    link: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured

index: 20
element.id:
  value: MedicationDispense.substitution
element definition.path:
  value: MedicationDispense.substitution
element definition.short:
  value: Whether a substitution was performed on the dispense

index: 21
element.id:
  value: MedicationDispense.substitution.wasSubstituted
element definition.path:
  value: MedicationDispense.substitution.wasSubstituted
element definition.short:
  value: Whether a substitution was or was not performed on the dispense

index: 22
element.id:
  value: MedicationDispense.substitution.type
element definition.path:
  value: MedicationDispense.substitution.type
element definition.short:
  value: Code signifying whether a different drug was dispensed from what was prescribed
element definition.min:
  value: 1
element definition.binding:
  element definition.binding.strength:
    value: preferred
  element definition.binding.value set:
    value: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
    link: http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .entryRelationship.act.code