CdaChEmedToBundle
type: StructureMap
node role: treeRoot
resource.id:
  value: CdaChEmedToBundle
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: map "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChEmedToBundle" = "CdaChEmedToBundle" // Medication Entries // 2020-10-30 Oliver Egger, copyright ahdis ag, Apache License // CDA-CH-EMED: https://art-decor.org/art-decor/decor-project--cdachemed- // FHIR CH-EMED: http://fhir.ch/ig/ch-emed/index.html uses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as source uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as source uses "http://hl7.org/fhir/cda/StructureDefinition/Author" alias Author as source uses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as source uses "http://hl7.org/fhir/cda/StructureDefinition/IVL_TS" alias IVL_TS as source uses "http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS" alias EIVL_TS as source uses "http://hl7.org/fhir/cda/StructureDefinition/Observation" alias Observation as source uses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as source uses "http://hl7.org/fhir/cda/StructureDefinition/RecordTarget" alias RecordTarget as source uses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as source uses "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration" alias SubstanceAdministration as source uses "http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS" alias SXPR_TS as source uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as produced uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced uses "http://hl7.org/fhir/StructureDefinition/MedicationStat…
structure map.url:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChEmedToBundle
structure map.version:
  value: 0.3.0
structure map.name:
  value: CdaChEmedToBundle
structure map.status:
  value: draft
structure map.date:
  value: 2022-02-11T11:14:39+01:00
structure map.publisher:
  value: ahdis
structure map.contact:
  index: 0
  contact detail.name:
    value: ahdis
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://www.ahdis.ch/
structure map.description:
  value: Medication Entries 2020-10-30 Oliver Egger, copyright ahdis ag, Apache License CDA-CH-EMED: https://art-decor.org/art-decor/decor-project--cdachemed- FHIR CH-EMED: http://fhir.ch/ig/ch-emed/index.html
structure map.copyright:
  value: CC-BY-SA-4.0
structure map.structure:
  index: 0
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
    link: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: ClinicalDocument
structure map.structure:
  index: 1
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
    link: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: AssignedAuthor
structure map.structure:
  index: 2
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity
    link: http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: AssignedEntity
structure map.structure:
  index: 3
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/Author
    link: http://hl7.org/fhir/cda/StructureDefinition/Author
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: Author
structure map.structure:
  index: 4
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization
    link: http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: CustodianOrganization
structure map.structure:
  index: 5
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/IVL_TS
    link: http://hl7.org/fhir/cda/StructureDefinition/IVL_TS
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: IVL_TS
structure map.structure:
  index: 6
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS
    link: http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: EIVL_TS
structure map.structure:
  index: 7
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/Observation
    link: http://hl7.org/fhir/cda/StructureDefinition/Observation
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: Observation
structure map.structure:
  index: 8
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/PatientRole
    link: http://hl7.org/fhir/cda/StructureDefinition/PatientRole
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: PatientRole
structure map.structure:
  index: 9
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/RecordTarget
    link: http://hl7.org/fhir/cda/StructureDefinition/RecordTarget
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: RecordTarget
structure map.structure:
  index: 10
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/Section
    link: http://hl7.org/fhir/cda/StructureDefinition/Section
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: Section
structure map.structure:
  index: 11
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration
    link: http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: SubstanceAdministration
structure map.structure:
  index: 12
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS
    link: http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: SXPR_TS
structure map.structure:
  index: 13
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Bundle
structure map.structure:
  index: 14
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Composition
structure map.structure:
  index: 15
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Patient
structure map.structure:
  index: 16
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Practitioner
structure map.structure:
  index: 17
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Organization
structure map.structure:
  index: 18
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/MedicationStatement
    link: http://hl7.org/fhir/StructureDefinition/MedicationStatement

value: produced

value: MedicationStatement

index: 19
structure map.structure.url:
  value: http://hl7.org/fhir/StructureDefinition/Dosage
  link: http://hl7.org/fhir/StructureDefinition/Dosage
structure map.structure.mode:
  value: produced
structure map.structure.alias:
  value: Dosage

index: 20
structure map.structure.url:
  value: http://hl7.org/fhir/StructureDefinition/Observation
  link: http://hl7.org/fhir/StructureDefinition/Observation
structure map.structure.mode:
  value: produced
structure map.structure.alias:
  value: Observation

value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes
index: 0
link: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes

value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle
index: 1
link: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle

value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChToBundle
index: 2
link: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChToBundle

index: 0
structure map.group.name:
  value: AnnotationComment
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.2 target: Annotation note (e.g. http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: act
  structure map.group.input.type:
    value: Act
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: note
  structure map.group.input.type:
    value: Annotation
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: act
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: text
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: level3
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: data
      structure map.group.rule.source.variable:
        value: data
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: note
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: text
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: reference
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0

value: data

value: reference

value: value

value: value

value: note

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

index: 1
structure map.group.name:
  value: ManufacturedMaterialEntryContentModuleDispense
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationdispense.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationDispense
  structure map.group.input.type:
    value: MedicationDispense
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: medication
  structure map.group.input.type:
    value: Medication
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: med
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: medication
    structure map.group.rule.target.variable:
      value: vt
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: vt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: #med
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: quantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: quantity
    structure map.group.rule.source.variable:
      value: quantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: quantity
    structure map.group.rule.target.variable:
      value: medDispQuantity
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: value
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: quantity
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medDispQuantity
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.documentation:
      value: IHE-DIS: If the product-element contains package information, the unit attribute is not be present
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: unit
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: quantity
      structure map.group.rule.source.element:
        value: unit
      structure map.group.rule.source.variable:
        value: unit
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: unit
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: ucum
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.documentation:
      value: IHE-DIS: If the product-element does not contain package information, the unit attribut is present and the value SHALL be out of the UCUM code system
  structure map.group.rule.documentation:
    value: quantity value (number of packages)
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: product
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: product
    structure map.group.rule.source.variable:
      value: product
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: manufacturedProduct
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: product
      structure map.group.rule.source.element:
        value: manufacturedProduct
      structure map.group.rule.source.variable:
        value: manufacturedProduct
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: manufacturedMaterial
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0

value: value

value: unit

value: medDispQuantity

value: variable

value: unit

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: unit

value: unit

value: medDispQuantity

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://unitsofmeasure.org

value: unit

value: medDispQuantity

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: unit

value: manufacturedProduct

value: manufacturedMaterial

value: manufacturedMaterial

value: medication.code

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: name
structure map.group.rule.source.variable:
  value: name
structure map.group.rule.source.condition:
  value: asContent.exists() = false

index: 0
structure map.group.rule.target.context:
  value: medication
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.variable:
  value: fhircode

index: 1
structure map.group.rule.target.context:
  value: fhircode
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: text
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: %manufacturedMaterial.name.other

index: 1
structure map.group.rule.name:
  value: asContent
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: manufacturedMaterial
  structure map.group.rule.source.element:
    value: asContent
  structure map.group.rule.source.variable:
    value: asContent
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: containerPackagedMedicine
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: asContent
    structure map.group.rule.source.element:
      value: containerPackagedMedicine
    structure map.group.rule.source.variable:
      value: containerPackagedMedicine
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: medication.code
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: containerPackagedMedicine
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: code
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medication
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: fhircode
      structure map.group.rule.target.list mode:
        value: share
        index: 0
      structure map.group.rule.target.list rule id:
        value: medcode
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CECodeableConcept
      structure map.group.rule.dependent.variable:
        value: code
        index: 0
      structure map.group.rule.dependent.variable:
        value: fhircode
        index: 1
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: code.text
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: containerPackagedMedicine
      structure map.group.rule.source.element:
        value: name
      structure map.group.rule.source.variable:
        value: name
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medication
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: fhircode
      structure map.group.rule.target.list mode:
        value: share
        index: 0
      structure map.group.rule.target.list rule id:
        value: medcode
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: medication.code.text
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: medication.formCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: containerPackagedMedicine
      structure map.group.rule.source.element:
        value: formCode
      structure map.group.rule.source.variable:
        value: formCode
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medication
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: form
      structure map.group.rule.target.variable:
        value: form
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CECodeableConcept
      structure map.group.rule.dependent.variable:
        value: formCode
        index: 0
      structure map.group.rule.dependent.variable:
        value: form
        index: 1
  structure map.group.rule.rule:
    index: 3
    structure map.group.rule.name:
      value: capacityQuantity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: containerPackagedMedicine
      structure map.group.rule.source.element:
        value: capacityQuantity
      structure map.group.rule.source.variable:
        value: capacityQuantity
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medication
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: amount
      structure map.group.rule.target.variable:
        value: ratio
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: ratio
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: denominator
      structure map.group.rule.target.variable:
        value: denominator
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: denominator
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: denominator
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: unit
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: denominator
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: name

value: fhircode

value: variable

value: text

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: %name.other

value: Ratio

value: Quantity

value: 1

value: Package

index: 5
structure map.group.rule.target.context:
  value: denominator
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: {Package}

index: 6
structure map.group.rule.target.context:
  value: ratio
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: numerator
structure map.group.rule.target.variable:
  value: quantity
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Quantity

index: 0
structure map.group.rule.dependent.name:
  value: EmedPQQuantity
structure map.group.rule.dependent.variable:
  value: capacityQuantity
  index: 0
structure map.group.rule.dependent.variable:
  value: quantity
  index: 1

value: Package size

index: 2
structure map.group.rule.name:
  value: ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: manufacturedMaterial
  structure map.group.rule.source.element:
    value: ingredient
  structure map.group.rule.source.variable:
    value: ingredient
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medication
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: ingredient
  structure map.group.rule.target.variable:
    value: ing
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: strength
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ingredient
    structure map.group.rule.source.element:
      value: quantity
    structure map.group.rule.source.variable:
      value: quantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ing
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: strength
    structure map.group.rule.target.variable:
      value: strength
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Ratio
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EmedRTOPQPQRatio
    structure map.group.rule.dependent.variable:
      value: quantity
      index: 0
    structure map.group.rule.dependent.variable:
      value: strength
      index: 1
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: ingredient.ingredient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ingredient
    structure map.group.rule.source.element:
      value: ingredient
    structure map.group.rule.source.variable:
      value: medingredient
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: ingredientCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: medingredient
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: code
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: ing
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: item
      structure map.group.rule.target.variable:
        value: ingcode
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: ingcode
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: text
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CECodeableConcept
      structure map.group.rule.dependent.variable:
        value: code
        index: 0
      structure map.group.rule.dependent.variable:
        value: ingcode
        index: 1

value: CodeableConcept

value: %medingredient.name.other

index: 1
structure map.group.rule.name:
  value: entry
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substanceAdministration
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: substanceAdministration
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: dosage
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: substanceAdministration
      structure map.group.rule.source.condition:
        value: $this.entryRelationship.sequenceNumber.exists() = false
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medicationDispense
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dosageInstruction
      structure map.group.rule.target.variable:
        value: dosage
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsStartStopFrequency
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 0
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 1
structure map.group.rule.documentation:
  value: dosage for normal dosing, as no sequences are present there

index: 2
structure map.group.name:
  value: EmedPQQuantity
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: PQ
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: tgt
  structure map.group.input.type:
    value: Quantity
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: value
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: value
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: unit
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: unit
    structure map.group.rule.source.variable:
      value: unit
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: unit
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: unit
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: unit
    structure map.group.rule.source.variable:
      value: unit
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: system
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'http://fhir.ch/ig/ch-emed/ValueSet/UnitCode'.resolve().compose.include.where(concept.where(code = %unit)).system
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: unit
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: unit
    structure map.group.rule.source.variable:
      value: unit
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: unit
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'http://fhir.ch/ig/ch-emed/ValueSet/UnitCode'.resolve().compose.include.concept.where(code = %unit).display

index: 3
structure map.group.name:
  value: EmedRTOPQPQRatio
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: RTO_PQ_PQ
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: tgt
  structure map.group.input.type:
    value: Ratio
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: numerator
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: numerator
    structure map.group.rule.source.variable:
      value: numerator
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: numerator
    structure map.group.rule.target.variable:
      value: targetNumerator
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EmedPQQuantity
    structure map.group.rule.dependent.variable:
      value: numerator
      index: 0
    structure map.group.rule.dependent.variable:
      value: targetNumerator
      index: 1
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: denominator
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: denominator
    structure map.group.rule.source.variable:
      value: denominator
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: denominator
    structure map.group.rule.target.variable:
      value: targetDenominator
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EmedPQQuantity
    structure map.group.rule.dependent.variable:
      value: denominator
      index: 0
    structure map.group.rule.dependent.variable:
      value: targetDenominator
      index: 1

index: 4
structure map.group.name:
  value: ManufacturedMaterialEntryContentModuleStatement
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationStatement
  structure map.group.input.type:
    value: MedicationStatement
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: medication
  structure map.group.input.type:
    value: Medication
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: med
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: medication
    structure map.group.rule.target.variable:
      value: vt
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: vt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: #med
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: consumable
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: consumable
    structure map.group.rule.source.variable:
      value: consumable
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: manufacturedProduct
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: consumable
      structure map.group.rule.source.element:
        value: manufacturedProduct
      structure map.group.rule.source.variable:
        value: manufacturedProduct
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: manufacturedMaterial
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1
      structure map.group.rule.rule:
        index: 2
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: dosage
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
      structure map.group.rule.source.condition:
        value: $this.entryRelationship.sequenceNumber.exists() = false
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medicationStatement
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dosage
      structure map.group.rule.target.variable:
        value: dosage
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsStartStopFrequency
      structure map.group.rule.dependent.variable:
        value: src
        index: 0
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 1
    structure map.group.rule.documentation:
      value: dosage for normal dosing, as no sequences are present there

value: manufacturedProduct

value: manufacturedMaterial

value: manufacturedMaterial

value: medication.code

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: name
structure map.group.rule.source.variable:
  value: name
structure map.group.rule.source.condition:
  value: asContent.exists() = false

index: 0
structure map.group.rule.target.context:
  value: medication
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.variable:
  value: fhircode

index: 1
structure map.group.rule.target.context:
  value: fhircode
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: text
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: %manufacturedMaterial.name.other

value: asContent

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: asContent
structure map.group.rule.source.variable:
  value: asContent

index: 0
structure map.group.rule.name:
  value: containerPackagedMedicine
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: asContent
  structure map.group.rule.source.element:
    value: containerPackagedMedicine
  structure map.group.rule.source.variable:
    value: containerPackagedMedicine
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: medication.code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: fhircode
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: medcode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: code
      index: 0
    structure map.group.rule.dependent.variable:
      value: fhircode
      index: 1
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: code.text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: name
    structure map.group.rule.source.variable:
      value: name
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: fhircode
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: medcode
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: medication.code.text
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: name
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: fhircode
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: text
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: medication.formCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: formCode
    structure map.group.rule.source.variable:
      value: formCode
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: form
    structure map.group.rule.target.variable:
      value: form
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: formCode
      index: 0
    structure map.group.rule.dependent.variable:
      value: form
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: capacityQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: capacityQuantity
    structure map.group.rule.source.variable:
      value: capacityQuantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: amount
    structure map.group.rule.target.variable:
      value: ratio
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Ratio
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: ratio
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: denominator
    structure map.group.rule.target.variable:
      value: denominator
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Quantity
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: denominator
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 1
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: denominator
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: unit
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Package
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: denominator

value: %name.other

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://unitsofmeasure.org

index: 5
structure map.group.rule.target.context:
  value: denominator
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: {Package}

index: 6
structure map.group.rule.target.context:
  value: ratio
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: numerator
structure map.group.rule.target.variable:
  value: quantity
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Quantity

index: 0
structure map.group.rule.dependent.name:
  value: EmedPQQuantity
structure map.group.rule.dependent.variable:
  value: capacityQuantity
  index: 0
structure map.group.rule.dependent.variable:
  value: quantity
  index: 1

value: Package size

value: ingredient

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: ingredient
structure map.group.rule.source.variable:
  value: ingredient

index: 0
structure map.group.rule.target.context:
  value: medication
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: ingredient
structure map.group.rule.target.variable:
  value: ing

index: 0
structure map.group.rule.name:
  value: strength
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ingredient
  structure map.group.rule.source.element:
    value: quantity
  structure map.group.rule.source.variable:
    value: quantity
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: ing
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: strength
  structure map.group.rule.target.variable:
    value: strength
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Ratio
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: EmedRTOPQPQRatio
  structure map.group.rule.dependent.variable:
    value: quantity
    index: 0
  structure map.group.rule.dependent.variable:
    value: strength
    index: 1

index: 1
structure map.group.rule.name:
  value: ingredient.ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ingredient
  structure map.group.rule.source.element:
    value: ingredient
  structure map.group.rule.source.variable:
    value: medingredient
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: ingredientCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medingredient
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ing
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: item
    structure map.group.rule.target.variable:
      value: ingcode
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: CodeableConcept
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: ingcode
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: text
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: %medingredient.name.other
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: code
      index: 0
    structure map.group.rule.dependent.variable:
      value: ingcode
      index: 1

index: 5
structure map.group.name:
  value: MedicationTreatmentPlanItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.34 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: medicationStatement
  structure map.group.input.type:
    value: MedicationStatement
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
  structure map.group.rule.documentation:
    value: src.templateId as template then TemplateID(template, medicationStatement) "templateId";
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: patient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: patient
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: subject
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %patient.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: completed
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: completed
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: text
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: reference
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: contained
    structure map.group.rule.target.variable:
      value: medication
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Medication
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ManufacturedMaterialEntryContentModuleStatement
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationStatement
      index: 1
    structure map.group.rule.dependent.variable:
      value: medication
      index: 2
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: entryRelationShip-2.16.756.5.30.1.1.10.4.41
  structure map.group.rule.source:
    index: 0

value: reference

value: value

value: value

value: medicationStatement

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

value: src

value: entryRelationship

value: entry

value: typeCode = 'RSON'

index: 0
structure map.group.rule.name:
  value: reasonCode
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: entry
  structure map.group.rule.source.element:
    value: observation
  structure map.group.rule.source.variable:
    value: observation
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationStatement
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reasonCode
  structure map.group.rule.target.variable:
    value: reasonCode
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: TreatmentReasonEntryContentModule
  structure map.group.rule.dependent.variable:
    value: section
    index: 0
  structure map.group.rule.dependent.variable:
    value: observation
    index: 1
  structure map.group.rule.dependent.variable:
    value: reasonCode
    index: 2

index: 6
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.52
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and (substanceAdministration.templateId.root = '2.16.756.5.30.1.1.10.4.52'))
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationStatement
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: dosage
  structure map.group.rule.target.variable:
    value: dosage
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsNonStructuredEntryContentModule
  structure map.group.rule.dependent.variable:
    value: section
    index: 0
  structure map.group.rule.dependent.variable:
    value: entry
    index: 1
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 2

index: 7
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.36
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and (sequenceNumber.value >= 0))
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationStatement
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: dosage
  structure map.group.rule.target.variable:
    value: dosage
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsEntryDosageChange
  structure map.group.rule.dependent.variable:
    value: src
    index: 0
  structure map.group.rule.dependent.variable:
    value: entry
    index: 1
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 2

index: 8
structure map.group.rule.name:
  value: MTPReferenceEntry
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'REFR') and substanceAdministration.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.10').exists())
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationStatement
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: extension
  structure map.group.rule.target.variable:
    value: ext
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MTPReferenceEntryContentModule
  structure map.group.rule.dependent.variable:
    value: entry
    index: 0
  structure map.group.rule.dependent.variable:
    value: ext
    index: 1

index: 9
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.2
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '2.16.756.5.30.1.1.10.4.2').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: annotation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: note
    structure map.group.rule.target.variable:
      value: note
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: AnnotationComment
    structure map.group.rule.dependent.variable:
      value: section
      index: 0
    structure map.group.rule.dependent.variable:
      value: act
      index: 1
    structure map.group.rule.dependent.variable:
      value: note
      index: 2

index: 10
structure map.group.rule.name:
  value: entryRelationShip-1.3.6.1.4.1.19376.1.9.1.3.9.1
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.9.1').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: medicationStatement
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: medicationStatement
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: SubstitutionStatement
    structure map.group.rule.dependent.variable:
      value: act
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationStatement
      index: 1

index: 6
structure map.group.name:
  value: DosageInstructionsEntryDosageChange
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.36 target: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split dosage for split dosing, with sequences
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: entry
  structure map.group.input.type:
    value: entryRelationship
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: sequenceNumber
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: sequenceNumber
    structure map.group.rule.source.variable:
      value: sequenceNumber
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: value
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: sequenceNumber
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: val
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: dosage
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: sequence
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: effectiveTimeStartEnd
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeStartEnd
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: effectiveTimeWhen
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeWhen
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: routeCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: routeCode
    structure map.group.rule.source.variable:
      value: routeCode
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: route
    structure map.group.rule.target.variable:
      value: route
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: routeCode
      index: 0
    structure map.group.rule.dependent.variable:
      value: route
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: doseQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: DoseQuantity
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1

value: val

index: 7
structure map.group.name:
  value: EffectiveTimeStartEnd
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: effective time start & end for dosage
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: effectiveTime-IVL-TS
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.type:
      value: IVL_TS
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: effectiveTime
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: timing
    structure map.group.rule.target.variable:
      value: timing
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: sharetiming
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: repeat
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: effectiveTime
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: timing
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: repeat
      structure map.group.rule.target.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: period
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1

value: effectiveTime

value: repeat

value: variable

value: bounds

value: period

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Period

value: low

index: 0
structure map.group.rule.source.context:
  value: effectiveTime
structure map.group.rule.source.element:
  value: low
structure map.group.rule.source.variable:
  value: low

index: 0
structure map.group.rule.name:
  value: lowDate
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: low
  structure map.group.rule.source.element:
    value: value
  structure map.group.rule.source.variable:
    value: lowDate
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: period
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: start
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value id:
      value: lowDate

value: high

index: 0
structure map.group.rule.source.context:
  value: effectiveTime
structure map.group.rule.source.element:
  value: high
structure map.group.rule.source.variable:
  value: high

index: 0
structure map.group.rule.name:
  value: highDate
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: high
  structure map.group.rule.source.element:
    value: value
  structure map.group.rule.source.variable:
    value: highDate
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: period
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: end
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value id:
      value: highDate

index: 8
structure map.group.name:
  value: EffectiveTimeWhen
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: effective time when for dosage
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: effectiveTime-EIVL-TS
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.type:
      value: EIVL_TS
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: effectiveTime
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: timing
    structure map.group.rule.target.variable:
      value: timing
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: sharetiming
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: repeat
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: effectiveTime
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: timing
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: repeat
      structure map.group.rule.target.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: event
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: effectiveTime-SXPR-TS
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.type:
      value: SXPR_TS
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: effectiveTime
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: timing
    structure map.group.rule.target.variable:
      value: timing
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: sharetiming
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: repeat
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: effectiveTime
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: timing
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: repeat
      structure map.group.rule.target.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: comp
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0

value: effectiveTime

value: event

value: event

value: code

index: 0
structure map.group.rule.source.context:
  value: event
structure map.group.rule.source.element:
  value: code
structure map.group.rule.source.variable:
  value: code

index: 0
structure map.group.rule.target.context:
  value: repeat
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: when
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: code

value: effectiveTime

value: comp

value: comp

value: event

index: 0
structure map.group.rule.source.context:
  value: comp
structure map.group.rule.source.element:
  value: event
structure map.group.rule.source.variable:
  value: event

index: 0
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: event
  structure map.group.rule.source.element:
    value: code
  structure map.group.rule.source.variable:
    value: code
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: repeat
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: when
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value id:
      value: code

index: 9
structure map.group.name:
  value: TreatmentReasonEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.41 target: reasonCode Coding (e.g. http://build.fhir.org/ig/hl7ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: observation
  structure map.group.input.type:
    value: Observation
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: reasonCode
  structure map.group.input.type:
    value: Coding
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: observation
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: text
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: level3
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: data
      structure map.group.rule.source.variable:
        value: data
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: reasonCode
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: text
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: reference
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0
  structure map.group.rule.documentation:
    value: extraxt text (Bluthochdruck) from id #mtpc.1.reason in section text Bluthochdruck

value: data

value: reference

value: value

value: value

value: reasonCode

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

index: 10
structure map.group.name:
  value: MTPReferenceEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--ch-pharm-?section=templates&id=2.16.756.5.30.1.1.10.4.45 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-ext-treatmentplan.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: entryrelationship
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entryrelationship
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entryrelationship
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: substanceAdministration
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: innerExtensionId
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: substanceAdministration
      structure map.group.rule.source.element:
        value: id
      structure map.group.rule.source.variable:
        value: id
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: ext
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: extension
      structure map.group.rule.target.variable:
        value: ext
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: InnerExtensionId
      structure map.group.rule.dependent.variable:
        value: id
        index: 0
      structure map.group.rule.dependent.variable:
        value: ext
        index: 1
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: substanceAdministration
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: substanceAdministration
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: externalDocument
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0

value: reference

value: externalDocument

value: externalDocument

value: innerExtensionExternalDocumentId

index: 0
structure map.group.rule.source.context:
  value: externalDocument
structure map.group.rule.source.element:
  value: id
structure map.group.rule.source.variable:
  value: id

index: 0
structure map.group.rule.target.context:
  value: ext
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: extension
structure map.group.rule.target.variable:
  value: ext

index: 0
structure map.group.rule.dependent.name:
  value: InnerExtensionExternalDocumentId
structure map.group.rule.dependent.variable:
  value: id
  index: 0
structure map.group.rule.dependent.variable:
  value: ext
  index: 1

index: 11
structure map.group.name:
  value: DosageInstructionsNonStructuredEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--ch-pharm-?section=templates&id=2.16.756.5.30.1.1.10.4.52 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-dosage-nonstructured.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: entry
  structure map.group.input.type:
    value: Element
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: observation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: observation
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: text
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: observation
      structure map.group.rule.source.element:
        value: text
      structure map.group.rule.source.variable:
        value: text
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: level3
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: reference
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
  structure map.group.rule.documentation:
    value: see MedicationTreatmentPlanItemEntryContentModule

value: text

value: data

value: data

value: dosage

value: variable

value: text

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: data

value: text

value: reference

value: reference

value: narrativeLink

index: 0
structure map.group.rule.source.context:
  value: reference
structure map.group.rule.source.element:
  value: value
structure map.group.rule.source.variable:
  value: value

index: 0
structure map.group.rule.target.context:
  value: dosage
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: extension
structure map.group.rule.target.variable:
  value: ext

index: 0
structure map.group.rule.dependent.name:
  value: NarrativeLink
structure map.group.rule.dependent.variable:
  value: value
  index: 0
structure map.group.rule.dependent.variable:
  value: ext
  index: 1

index: 12
structure map.group.name:
  value: SubstitutionDispense
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: Substitution act Contains 1.3.6.1.4.1.19376.1.9.1.3.9.2 IHE Substitution Act Content Module target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-medicationdispense.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: act
  structure map.group.input.type:
    value: Act
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationDispense
  structure map.group.input.type:
    value: MedicationDispense
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: substitution
    structure map.group.rule.target.variable:
      value: substitution
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: wasSubstituted
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: act
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substitution
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: wasSubstituted
      structure map.group.rule.target.variable:
        value: wasSubstituted
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: wasSubstituted
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: allowedCC
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: act
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: actCode
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substitution
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: type
      structure map.group.rule.target.variable:
        value: type
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: type
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: system
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: display
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.documentation:
      value: act.code as code -> substitution.type as type then CECodeableConcept(code, type) "type";

value: true

value: actCode

value: coding

value: variable

value: system

value: systemCC

value: systemCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution

value: actCode

value: code

value: code

value: coding

value: variable

value: code

value: codeCC

value: codeCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: code

value: actCode

value: displayName

value: display

value: coding

value: variable

value: display

value: displayCC

value: displayCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: display

index: 13
structure map.group.name:
  value: DispenseItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.42 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationdispense.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: medicationDispense
  structure map.group.input.type:
    value: MedicationDispense
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
  structure map.group.rule.documentation:
    value: src.templateId as template then TemplateID(template, medicationDispense) "templateId";
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: patient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: patient
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: subject
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %patient.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: completed
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: completed
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: text
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: reference
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: contained
    structure map.group.rule.target.variable:
      value: medication
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Medication
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ManufacturedMaterialEntryContentModuleDispense
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationDispense
      index: 1
    structure map.group.rule.dependent.variable:
      value: medication
      index: 2
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: entryRelationShip-2.16.756.5.30.1.1.10.4.52
  structure map.group.rule.source:
    index: 0

value: reference

value: value

value: value

value: medicationDispense

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

value: src

value: entryRelationship

value: entry

value: ((typeCode = 'COMP') and (substanceAdministration.templateId.root = '2.16.756.5.30.1.1.10.4.52'))

index: 0
structure map.group.rule.target.context:
  value: medicationDispense
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: dosageInstruction
structure map.group.rule.target.variable:
  value: dosage

index: 0
structure map.group.rule.dependent.name:
  value: DosageInstructionsNonStructuredEntryContentModule
structure map.group.rule.dependent.variable:
  value: section
  index: 0
structure map.group.rule.dependent.variable:
  value: entry
  index: 1
structure map.group.rule.dependent.variable:
  value: dosage
  index: 2

index: 6
structure map.group.rule.name:
  value: entryRelationship
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entryRelationship
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substanceAdministration
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entryRelationship
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: substanceAdministration
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: entryRelationShip-2.16.756.5.30.1.1.10.4.36
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: substanceAdministration
      structure map.group.rule.source.element:
        value: entryRelationship
      structure map.group.rule.source.variable:
        value: entryRelationship
      structure map.group.rule.source.condition:
        value: ((typeCode = 'COMP') and (sequenceNumber.value >= 0))
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medicationDispense
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dosageInstruction
      structure map.group.rule.target.variable:
        value: dosage
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsEntryDosageChange
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 0
      structure map.group.rule.dependent.variable:
        value: entryRelationship
        index: 1
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 2
    structure map.group.rule.documentation:
      value: dosage for split dosing, as sequences are present there

index: 7
structure map.group.rule.name:
  value: MTPReferenceEntry
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'REFR') and substanceAdministration.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.10').exists())
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationDispense
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: extension
  structure map.group.rule.target.variable:
    value: ext
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MTPReferenceEntryContentModule
  structure map.group.rule.dependent.variable:
    value: entry
    index: 0
  structure map.group.rule.dependent.variable:
    value: ext
    index: 1

index: 8
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.2
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '2.16.756.5.30.1.1.10.4.2').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: annotation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationDispense
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: note
    structure map.group.rule.target.variable:
      value: note
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: AnnotationComment
    structure map.group.rule.dependent.variable:
      value: section
      index: 0
    structure map.group.rule.dependent.variable:
      value: act
      index: 1
    structure map.group.rule.dependent.variable:
      value: note
      index: 2

index: 9
structure map.group.rule.name:
  value: entryRelationShip-1.3.6.1.4.1.19376.1.9.1.3.9.2
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.9.2').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: medicationDispense
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: medicationDispense
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: SubstitutionDispense
    structure map.group.rule.dependent.variable:
      value: act
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationDispense
      index: 1

index: 14
structure map.group.name:
  value: DoseQuantity
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: dose quantity for dosage (application schema)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: doseQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: doseQuantity
    structure map.group.rule.source.variable:
      value: doseQuantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: doseAndRate
    structure map.group.rule.target.variable:
      value: doseAndRate
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: quantity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: doseQuantity
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: doseAndRate
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dose
      structure map.group.rule.target.variable:
        value: quantity
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: value
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: unit
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: unit
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 3
      structure map.group.rule.name:
        value: unit
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0

value: Quantity

value: value

value: quantity

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: value

value: doseQuantity

value: unit

value: unit

value: quantity

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: unit

value: doseQuantity

value: unit

value: unit

value: quantity

value: variable

value: system

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'http://fhir.ch/ig/ch-emed/ValueSet/UnitCode'.resolve().compose.include.where(concept.where(code = %unit)).system

value: doseQuantity

value: unit

value: unit

value: quantity

value: variable

value: unit

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'http://fhir.ch/ig/ch-emed/ValueSet/UnitCode'.resolve().compose.include.concept.where(code = %unit).display

index: 15
structure map.group.name:
  value: SubstitutionRequest
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: Substitution permission Contains 1.3.6.1.4.1.19376.1.9.1.3.9.1 IHE Substitution Permission Content Module (DYNAMIC) target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-medicationrequest.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: act
  structure map.group.input.type:
    value: Act
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationRequest
  structure map.group.input.type:
    value: MedicationRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: substitutionRequest
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: substitution
    structure map.group.rule.target.variable:
      value: substitution
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: allowedCC
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: act
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: actCode
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substitution
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: allowed
      structure map.group.rule.target.variable:
        value: allowedCC
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: allowedCC
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: system
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: display
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
    structure map.group.rule.documentation:
      value: act.code as code -> substitution.allowed = create('CodeableConcept') as allowedCC then CECodeableConcept(code, allowedCC) "allowedCC";

value: CodeableConcept

value: actCode

value: coding

value: variable

value: system

value: systemCC

value: systemCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution

value: actCode

value: code

value: code

value: coding

value: variable

value: code

value: codeCC

value: codeCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: code

value: actCode

value: displayName

value: display

value: coding

value: variable

value: display

value: displayCC

value: displayCC

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: display

index: 16
structure map.group.name:
  value: SubstitutionStatement
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: Substitution permission Contains 1.3.6.1.4.1.19376.1.9.1.3.9.1 IHE Substitution Permission Content Module (DYNAMIC) target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-medicationstatement.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: act
  structure map.group.input.type:
    value: Act
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationStatement
  structure map.group.input.type:
    value: MedicationStatement
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: substitutionStatement
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationStatement
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: substitutionExtension
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: act
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: ext
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: url
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: valueCC
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1
      structure map.group.rule.rule:
        index: 2
      structure map.group.rule.documentation:
        value: act.code as code -> ext.value = create('CodeableConcept') as valueCC then CECodeableConcept(code, valueCC) "valueCC";

value: act

value: code

value: actCode

value: ext

value: variable

value: value

value: valueCC

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: CodeableConcept

value: valueCC

value: variable

value: coding

value: coding

value: system

index: 0
structure map.group.rule.source.context:
  value: actCode

index: 0
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: system
structure map.group.rule.target.variable:
  value: systemCC

index: 1
structure map.group.rule.target.context:
  value: systemCC
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: value
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution

value: code

index: 0
structure map.group.rule.source.context:
  value: actCode
structure map.group.rule.source.element:
  value: code
structure map.group.rule.source.variable:
  value: code

index: 0
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.variable:
  value: codeCC

index: 1
structure map.group.rule.target.context:
  value: codeCC
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: value
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: code

value: display

index: 0
structure map.group.rule.source.context:
  value: actCode
structure map.group.rule.source.element:
  value: displayName
structure map.group.rule.source.variable:
  value: display

index: 0
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.variable:
  value: displayCC

index: 1
structure map.group.rule.target.context:
  value: displayCC
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: value
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: display

index: 17
structure map.group.name:
  value: PrescribedQuantity
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: Number of packages source: https://art-decor.org/art-decor/decor-templates--cdachemed-?id=2.16.756.5.30.1.1.10.4.38 target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: supply
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationRequest
  structure map.group.input.type:
    value: MedicationRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: quantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: supply
    structure map.group.rule.source.element:
      value: quantity
    structure map.group.rule.source.variable:
      value: quantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: dispenseRequest
    structure map.group.rule.target.variable:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: dispenseRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: quantity
    structure map.group.rule.target.variable:
      value: quant
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: value
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: quantity
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: quant
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.documentation:
      value: IHE-PRE: If the product-element contains package information, the unit attribute is not be present
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: unit
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: quantity
      structure map.group.rule.source.element:
        value: unit
      structure map.group.rule.source.variable:
        value: unit
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: unit
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: ucum
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.documentation:
      value: IHE-PRE: If the product-element does not contain package information, the unit attribut is present and the value SHALL be out of the UCUM code system

value: value

value: unit

value: quant

value: variable

value: unit

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: unit

value: unit

value: quant

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://unitsofmeasure.org

value: unit

value: quant

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: unit

index: 18
structure map.group.name:
  value: ManufacturedMaterialEntryContentModuleRequest
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33 target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-medicationrequest.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: medicationRequest
  structure map.group.input.type:
    value: MedicationRequest
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: medication
  structure map.group.input.type:
    value: Medication
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: med
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: medication
    structure map.group.rule.target.variable:
      value: vt
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: vt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: #med
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: consumable
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: consumable
    structure map.group.rule.source.variable:
      value: consumable
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: manufacturedProduct
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: consumable
      structure map.group.rule.source.element:
        value: manufacturedProduct
      structure map.group.rule.source.variable:
        value: manufacturedProduct
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: manufacturedMaterial
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1
      structure map.group.rule.rule:
        index: 2
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: dosage
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
      structure map.group.rule.source.condition:
        value: $this.entryRelationship.sequenceNumber.exists() = false
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: medicationRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dosageInstruction
      structure map.group.rule.target.variable:
        value: dosage
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsStartStopFrequency
      structure map.group.rule.dependent.variable:
        value: src
        index: 0
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 1
    structure map.group.rule.documentation:
      value: dosage for normal dosing, as no sequences are present there

value: manufacturedProduct

value: manufacturedMaterial

value: manufacturedMaterial

value: medication.code

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: name
structure map.group.rule.source.variable:
  value: name
structure map.group.rule.source.condition:
  value: asContent.exists() = false

index: 0
structure map.group.rule.target.context:
  value: medication
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.variable:
  value: fhircode

index: 1
structure map.group.rule.target.context:
  value: fhircode
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: text
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: %manufacturedMaterial.name.other

value: asContent

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: asContent
structure map.group.rule.source.variable:
  value: asContent

index: 0
structure map.group.rule.name:
  value: containerPackagedMedicine
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: asContent
  structure map.group.rule.source.element:
    value: containerPackagedMedicine
  structure map.group.rule.source.variable:
    value: containerPackagedMedicine
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: medication.code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: fhircode
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: medcode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: code
      index: 0
    structure map.group.rule.dependent.variable:
      value: fhircode
      index: 1
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: code.text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: name
    structure map.group.rule.source.variable:
      value: name
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: fhircode
    structure map.group.rule.target.list mode:
      value: share
      index: 0
    structure map.group.rule.target.list rule id:
      value: medcode
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: medication.code.text
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: name
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: fhircode
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: text
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: medication.formCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: formCode
    structure map.group.rule.source.variable:
      value: formCode
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: form
    structure map.group.rule.target.variable:
      value: form
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: formCode
      index: 0
    structure map.group.rule.dependent.variable:
      value: form
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: capacityQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: containerPackagedMedicine
    structure map.group.rule.source.element:
      value: capacityQuantity
    structure map.group.rule.source.variable:
      value: capacityQuantity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: amount
    structure map.group.rule.target.variable:
      value: ratio
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Ratio
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: ratio
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: denominator
    structure map.group.rule.target.variable:
      value: denominator
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Quantity
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: denominator
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 1
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: denominator
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: unit
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Package
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: denominator

value: %name.other

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://unitsofmeasure.org

index: 5
structure map.group.rule.target.context:
  value: denominator
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: {Package}

index: 6
structure map.group.rule.target.context:
  value: ratio
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: numerator
structure map.group.rule.target.variable:
  value: quantity
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Quantity

index: 0
structure map.group.rule.dependent.name:
  value: EmedPQQuantity
structure map.group.rule.dependent.variable:
  value: capacityQuantity
  index: 0
structure map.group.rule.dependent.variable:
  value: quantity
  index: 1

value: Package size

value: ingredient

index: 0
structure map.group.rule.source.context:
  value: manufacturedMaterial
structure map.group.rule.source.element:
  value: ingredient
structure map.group.rule.source.variable:
  value: ingredient

index: 0
structure map.group.rule.target.context:
  value: medication
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: ingredient
structure map.group.rule.target.variable:
  value: ing

index: 0
structure map.group.rule.name:
  value: strength
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ingredient
  structure map.group.rule.source.element:
    value: quantity
  structure map.group.rule.source.variable:
    value: quantity
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: ing
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: strength
  structure map.group.rule.target.variable:
    value: strength
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Ratio
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: EmedRTOPQPQRatio
  structure map.group.rule.dependent.variable:
    value: quantity
    index: 0
  structure map.group.rule.dependent.variable:
    value: strength
    index: 1

index: 1
structure map.group.rule.name:
  value: ingredient.ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ingredient
  structure map.group.rule.source.element:
    value: ingredient
  structure map.group.rule.source.variable:
    value: medingredient
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: ingredientCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medingredient
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ing
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: item
    structure map.group.rule.target.variable:
      value: ingcode
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: CodeableConcept
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: ingcode
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: text
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: %medingredient.name.other
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: code
      index: 0
    structure map.group.rule.dependent.variable:
      value: ingcode
      index: 1

index: 19
structure map.group.name:
  value: PrescriptionItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.43 target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-medicationrequest.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: medicationRequest
  structure map.group.input.type:
    value: MedicationRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: patient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: patient
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: subject
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %patient.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: completed
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: completed
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: order
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: intent
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: order
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: text
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: text
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: reference
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: text
      structure map.group.rule.source.element:
        value: reference
      structure map.group.rule.source.variable:
        value: reference
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: medication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: contained
    structure map.group.rule.target.variable:
      value: medication
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Medication

value: reference

value: value

value: value

value: medicationRequest

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

index: 0
structure map.group.rule.dependent.name:
  value: ManufacturedMaterialEntryContentModuleRequest
structure map.group.rule.dependent.variable:
  value: src
  index: 0
structure map.group.rule.dependent.variable:
  value: medicationRequest
  index: 1
structure map.group.rule.dependent.variable:
  value: medication
  index: 2

index: 6
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.41
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: typeCode = 'RSON'
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: reasonCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: observation
    structure map.group.rule.source.variable:
      value: observation
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reasonCode
    structure map.group.rule.target.variable:
      value: reasonCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: TreatmentReasonEntryContentModule
    structure map.group.rule.dependent.variable:
      value: section
      index: 0
    structure map.group.rule.dependent.variable:
      value: observation
      index: 1
    structure map.group.rule.dependent.variable:
      value: reasonCode
      index: 2

index: 7
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.52
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and (substanceAdministration.templateId.root = '2.16.756.5.30.1.1.10.4.52'))
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationRequest
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: dosageInstruction
  structure map.group.rule.target.variable:
    value: dosage
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsNonStructuredEntryContentModule
  structure map.group.rule.dependent.variable:
    value: section
    index: 0
  structure map.group.rule.dependent.variable:
    value: entry
    index: 1
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 2

index: 8
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.36
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and (sequenceNumber.value >= 0))
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationRequest
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: dosageInstruction
  structure map.group.rule.target.variable:
    value: dosage
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsEntryDosageChange
  structure map.group.rule.dependent.variable:
    value: src
    index: 0
  structure map.group.rule.dependent.variable:
    value: entry
    index: 1
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 2
structure map.group.rule.documentation:
  value: dosage for split dosing, as sequences are present there

index: 9
structure map.group.rule.name:
  value: MTPReferenceEntry
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'REFR') and substanceAdministration.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.10').exists())
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationRequest
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: extension
  structure map.group.rule.target.variable:
    value: ext
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MTPReferenceEntryContentModule
  structure map.group.rule.dependent.variable:
    value: entry
    index: 0
  structure map.group.rule.dependent.variable:
    value: ext
    index: 1

index: 10
structure map.group.rule.name:
  value: entryRelationShip-2.16.756.5.30.1.1.10.4.2
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '2.16.756.5.30.1.1.10.4.2').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: annotation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: medicationRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: note
    structure map.group.rule.target.variable:
      value: note
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: AnnotationComment
    structure map.group.rule.dependent.variable:
      value: section
      index: 0
    structure map.group.rule.dependent.variable:
      value: act
      index: 1
    structure map.group.rule.dependent.variable:
      value: note
      index: 2

index: 11
structure map.group.rule.name:
  value: repeats
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: repeatNumber
  structure map.group.rule.source.variable:
    value: repeatNumber
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: medicationRequest
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: dispenseRequest
  structure map.group.rule.target.variable:
    value: dispenseRequest
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: repeatNumber
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: repeatNumber
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: val
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dispenseRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: numberOfRepeatsAllowed
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: val

index: 12
structure map.group.rule.name:
  value: entryRelationShip-1.3.6.1.4.1.19376.1.9.1.3.8
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and supply.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.8').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: quantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: supply
    structure map.group.rule.source.variable:
      value: supply
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: medicationRequest
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: medicationRequest
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: PrescribedQuantity
    structure map.group.rule.dependent.variable:
      value: supply
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationRequest
      index: 1

index: 13
structure map.group.rule.name:
  value: entryRelationShip-1.3.6.1.4.1.19376.1.9.1.3.9.1
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'COMP') and act.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.9.1').exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: act
    structure map.group.rule.source.variable:
      value: act
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: medicationRequest
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: medicationRequest
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: SubstitutionRequest
    structure map.group.rule.dependent.variable:
      value: act
      index: 0
    structure map.group.rule.dependent.variable:
      value: medicationRequest
      index: 1

index: 20
structure map.group.name:
  value: DosageInstructionsStartStopFrequency
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.35 target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition/ch-emed-dosage-structured-normal dosage for normal dosing, without sequences
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: effectiveTimeStartEnd
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeStartEnd
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: effectiveTimeWhen
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeWhen
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: routeCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: routeCode
    structure map.group.rule.source.variable:
      value: routeCode
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: dosage
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: route
    structure map.group.rule.target.variable:
      value: route
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: routeCode
      index: 0
    structure map.group.rule.dependent.variable:
      value: route
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: doseQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.variable:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: dosage
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: dosage
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: DoseQuantity
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 1

index: 21
structure map.group.name:
  value: PharmaceuticalAdviceItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.44 target: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-observation.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: section
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: Observation
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: observation
  structure map.group.input.type:
    value: Observation
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: patient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: patient
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: subject
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %patient.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: final
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: final
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: effectiveTime
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: effective
    structure map.group.rule.target.variable:
      value: value
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: dateTime
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: TSDateTime
    structure map.group.rule.dependent.variable:
      value: effectiveTime
      index: 0
    structure map.group.rule.dependent.variable:
      value: value
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: MTPReferenceEntry
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: entryRelationship
    structure map.group.rule.source.variable:
      value: entry
    structure map.group.rule.source.condition:
      value: ((typeCode = 'REFR') and substanceAdministration.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.10').exists())
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MTPReferenceEntryContentModule
    structure map.group.rule.dependent.variable:
      value: entry
      index: 0
    structure map.group.rule.dependent.variable:
      value: ext
      index: 1

index: 5
structure map.group.rule.name:
  value: cdaEntry
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: entryRelationship
  structure map.group.rule.source.variable:
    value: entry
  structure map.group.rule.source.condition:
    value: ((typeCode = 'REFR') and substanceAdministration.templateId.where(root = '1.3.6.1.4.1.19376.1.9.1.3.7').exists())
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: bundle
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: e
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: uuid
  structure map.group.rule.target.transform:
    value: uuid
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: fullUrl
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: resource
  structure map.group.rule.target.variable:
    value: medicationstatement
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: MedicationStatement
structure map.group.rule.target:
  index: 4
  structure map.group.rule.target.context:
    value: observation
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: extension
  structure map.group.rule.target.variable:
    value: ext
structure map.group.rule.target:
  index: 5
  structure map.group.rule.target.context:
    value: ext
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: url
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-medicationstatement-changed
structure map.group.rule.target:
  index: 6
  structure map.group.rule.target.context:
    value: ext
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: value
  structure map.group.rule.target.variable:
    value: reference
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Reference
structure map.group.rule.target:
  index: 7
  structure map.group.rule.target.context:
    value: reference
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: substanceAdministration
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entry
    structure map.group.rule.source.element:
      value: substanceAdministration
    structure map.group.rule.source.variable:
      value: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MedicationTreatmentPlanItemEntryContentModule
    structure map.group.rule.dependent.variable:
      value: section
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      index: 1
    structure map.group.rule.dependent.variable:
      value: patient
      index: 2
    structure map.group.rule.dependent.variable:
      value: medicationstatement
      index: 3

index: 6
structure map.group.rule.name:
  value: note
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: text
  structure map.group.rule.source.variable:
    value: text
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: observation
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: note
  structure map.group.rule.target.variable:
    value: note
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: level3observation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: text
    structure map.group.rule.source.element:
      value: data
    structure map.group.rule.source.variable:
      value: data
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: note
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: text
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: data
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: idRef
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: text
    structure map.group.rule.source.condition:
      value: (data.exists() = false)
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: note
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: text
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: %section.text.substring(%section.text.indexOf(%src.text.reference.value.substring(1))).substring(%section.text.substring(%section.text.indexOf(%src.text.reference.value.substring(1))).indexOf('>') + 1, %section.text.substring(%section.text.indexOf(%src.text.reference.value.substring(1))).indexOf('<') - %section.text.substring(%section.text.indexOf(%src.text.reference.value.substring(1))).indexOf('>') - 1)
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: reference
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: text
    structure map.group.rule.source.element:
      value: reference
    structure map.group.rule.source.variable:
      value: reference
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: narrativeLink
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: reference
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: note
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: extension
      structure map.group.rule.target.variable:
        value: ext
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: NarrativeLink
      structure map.group.rule.dependent.variable:
        value: value
        index: 0
      structure map.group.rule.dependent.variable:
        value: ext
        index: 1

index: 7
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: code
  structure map.group.rule.source.variable:
    value: vvv
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: observation
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 22
structure map.group.name:
  value: InnerExtensionExternalDocumentId
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Template Type not specified _________________________ target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-ext-treatmentplan.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: externalDocumentId
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: id
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Identifier
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: II
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: id
      index: 1

index: 23
structure map.group.name:
  value: InnerExtensionId
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: target: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-ext-treatmentplan.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: id
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: id
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Identifier
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: II
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: id
      index: 1