BundleToCdaChEmed
type: StructureMap
node role: treeRoot
resource.id:
  value: BundleToCdaChEmed
resource.meta:
  meta.version id:
    value: 2
  meta.last updated:
    value: 2021-11-04T13:41:21.790+01:00
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: map "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmed" = "BundleToCdaChEmed" // Medication Entries // 2020-11-11 Michaela Ziegler, 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 target uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as target uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as target uses "http://hl7.org/fhir/cda/StructureDefinition/Author" alias Author as target uses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as target uses "http://hl7.org/fhir/cda/StructureDefinition/IVL_TS" alias IVL_TS as target uses "http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS" alias EIVL_TS as target uses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as target uses "http://hl7.org/fhir/cda/StructureDefinition/RecordTarget" alias RecordTarget as target uses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as target uses "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration" alias SubstanceAdministration as target uses "http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS" alias SXPR_TS as target uses "http://hl7.org/fhir/cda/StructureDefinition/Supply" alias Supply as target uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as source uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as source uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as source uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as source uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias M…
structure map.url:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmed
structure map.version:
  value: 0.3.0
structure map.name:
  value: BundleToCdaChEmed
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-11-11 Michaela Ziegler, 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: target
  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: target
  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: target
  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: target
  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: target
  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: target
  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: target
  structure map.structure.alias:
    value: EIVL_TS
structure map.structure:
  index: 7
  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: target
  structure map.structure.alias:
    value: PatientRole
structure map.structure:
  index: 8
  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: target
  structure map.structure.alias:
    value: RecordTarget
structure map.structure:
  index: 9
  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: target
  structure map.structure.alias:
    value: Section
structure map.structure:
  index: 10
  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: target
  structure map.structure.alias:
    value: SubstanceAdministration
structure map.structure:
  index: 11
  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: target
  structure map.structure.alias:
    value: SXPR_TS
structure map.structure:
  index: 12
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/Supply
    link: http://hl7.org/fhir/cda/StructureDefinition/Supply
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Supply
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: source
  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: source
  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: source
  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: source
  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: source
  structure map.structure.alias:
    value: Organization

index: 18
structure map.structure.url:
  value: http://hl7.org/fhir/StructureDefinition/MedicationStatement
  link: http://hl7.org/fhir/StructureDefinition/MedicationStatement
structure map.structure.mode:
  value: source
structure map.structure.alias:
  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: source
structure map.structure.alias:
  value: Dosage

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

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

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

index: 0
structure map.group.name:
  value: AnnotationComment
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: Annotation note (e.g. http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html) target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.2
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: note
  structure map.group.input.type:
    value: Annotation
  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: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ACT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: ACT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: EVN
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: EVN
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.2
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.40
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.2
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: code
    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: 48767-8
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: codeSystem

value: copy

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

index: 3
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: displayName
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: Annotation comment

index: 4
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: codeSystemName
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: LOINC

index: 6
structure map.group.rule.name:
  value: text
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: note
  structure map.group.rule.source.element:
    value: text
  structure map.group.rule.source.variable:
    value: noteText
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: act
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
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: noteText
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: data
    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: noteText
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: note
    structure map.group.rule.source.element:
      value: extension
    structure map.group.rule.source.variable:
      value: extension
    structure map.group.rule.source.condition:
      value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
  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: extension
      structure map.group.rule.source.element:
        value: valueUrl
      structure map.group.rule.source.variable:
        value: valueUrl
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: text
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.variable:
        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: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
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: note
    structure map.group.rule.source.condition:
      value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      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: 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: #refpdf

value: valueUrl

index: 7
structure map.group.rule.name:
  value: statusCode
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: note
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: act
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: statusCode
  structure map.group.rule.target.variable:
    value: code
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: code
  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: completed

index: 1
structure map.group.name:
  value: ManufacturedMaterialEntryContentModuleStatement
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33&effectiveDate=2019-12-11T11:34:24&language=en-US
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
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: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: manufacturedMaterial
  structure map.group.input.type:
    value: ManufacturedMaterial
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: MMAT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: MMAT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: KIND
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: KIND
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-ManufacturedMaterialContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.33
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: brandname
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: code
      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: manufacturedMaterial
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: code

value: text

value: code

index: 0
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: code
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: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: originalText
    structure map.group.rule.target.variable:
      value: text
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      value: reference
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: reference
    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: valueUrl
structure map.group.rule.documentation:
  value: #mtpc.no.brandedmedication

index: 1
structure map.group.rule.name:
  value: reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.condition:
    value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: code
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: code
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: originalText
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: reference
  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: #refpdf

index: 2
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.element:
    value: coding
  structure map.group.rule.source.variable:
    value: coding
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: ce
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: CodingCE
  structure map.group.rule.dependent.variable:
    value: coding
    index: 0
  structure map.group.rule.dependent.variable:
    value: ce
    index: 1

index: 3
structure map.group.rule.name:
  value: nullFlavor
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.condition:
    value: coding.exists() = false
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: ce
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: ce
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: nullFlavor
  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: NA

index: 6
structure map.group.rule.name:
  value: form
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: form
  structure map.group.rule.source.variable:
    value: form
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: formCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: form
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: formCode
    structure map.group.rule.target.variable:
      value: formCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: formCode
      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: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: asContent
  structure map.group.rule.target.variable:
    value: asContent
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: CONT
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: containerPackagedMedicine
  structure map.group.rule.target.variable:
    value: containerPackagedMedicine
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: CONT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: CONT
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: INSTANCE
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: INSTANCE
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: pharm-code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: ce
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: ce
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: pharm-name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: name
    structure map.group.rule.target.variable:
      value: name
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: name
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: other
    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: text
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: form
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: form
    structure map.group.rule.source.variable:
      value: form
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: pharm-formCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: form
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: containerPackagedMedicine
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: formCode
      structure map.group.rule.target.variable:
        value: formCode
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CodingCE
      structure map.group.rule.dependent.variable:
        value: coding
        index: 0
      structure map.group.rule.dependent.variable:
        value: formCode
        index: 1

index: 5
structure map.group.rule.name:
  value: amount
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: amount
  structure map.group.rule.source.variable:
    value: amount
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: numerator
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: amount
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: capacityQuantity
    structure map.group.rule.target.variable:
      value: capacityQuantity
  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: numerator
      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: capacityQuantity
      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: unit
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: numerator
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: unit
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: capacityQuantity
      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.documentation:
  value: Package size

value: value

value: unit

index: 8
structure map.group.rule.name:
  value: ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: ingredient
  structure map.group.rule.target.variable:
    value: ingredient
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: ingredient
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: ACTI
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: PharmSubstance
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ingredient
    structure map.group.rule.source.element:
      value: itemCodeableConcept
    structure map.group.rule.source.variable:
      value: itemCodeableConcept
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: ingredient
    structure map.group.rule.target.variable:
      value: pharmsubstance
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: MMAT
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: classCode
      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: KIND
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: determinerCode
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: name
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      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: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 3
    structure map.group.rule.name:
      value: coding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: formCode
      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.rule:
  index: 1
  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: strength
    structure map.group.rule.source.variable:
      value: strength
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: quantity
    structure map.group.rule.target.variable:
      value: quantity
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: RatioRTOPQPQ
    structure map.group.rule.dependent.variable:
      value: strength
      index: 0
    structure map.group.rule.dependent.variable:
      value: quantity
      index: 1

value: MMAT

value: KIND

value: text

value: coding

value: pharmsubstance

value: variable

value: code

value: ce

value: CodingCE

value: coding
index: 0

value: ce
index: 1

index: 2
structure map.group.name:
  value: MedicationTreatmentPlanItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationstatement.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.34&effectiveDate=2019-12-11T11:31:52&language=en-US
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SBADM
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: INT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-MedicationTreatmentPlanItemEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.34
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: IHE-PHARM-MTP
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.7
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: CCD
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.24
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: PCC-MedicationEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7

index: 6
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: identifier
  structure map.group.rule.source.variable:
    value: identifier
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: id
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: IdentifierII
  structure map.group.rule.dependent.variable:
    value: identifier
    index: 0
  structure map.group.rule.dependent.variable:
    value: id
    index: 1

index: 7
structure map.group.rule.name:
  value: narrativeLink
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: valueUrl
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: reference
    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: valueUrl

index: 8
structure map.group.rule.name:
  value: cat1narrativelink
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.condition:
    value: extension.where(url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists().not()
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: referencetopdf
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: reference
    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: #refpdf

index: 9
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: statusCode
  structure map.group.rule.target.variable:
    value: statusCode
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: statusCode
  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: completed

index: 10
structure map.group.rule.name:
  value: contained
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: contained
  structure map.group.rule.source.variable:
    value: medication
  structure map.group.rule.source.condition:
    value: ('#' + $this.id) in %medicationStatement.medicationReference.reference
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: consumable
  structure map.group.rule.target.variable:
    value: consumable
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: consumable
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedProduct
  structure map.group.rule.target.variable:
    value: manufacturedProduct
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: manufacturedProduct
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: MANU
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: MP-TemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.2
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: MP-TemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.53
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: manufacturedMaterial
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: manufacturedMaterial
    structure map.group.rule.target.variable:
      value: manufacturedMaterial
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ManufacturedMaterialEntryContentModuleStatement
    structure map.group.rule.dependent.variable:
      value: bundle
      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.dependent.variable:
      value: manufacturedMaterial
      index: 3

index: 11
structure map.group.rule.name:
  value: onylonedosage
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.condition:
    value: dosage.count() = 1
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: normalDose
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationStatement
    structure map.group.rule.source.element:
      value: dosage
    structure map.group.rule.source.variable:
      value: dosage
    structure map.group.rule.source.condition:
      value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured')
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.1
structure map.group.rule.documentation:
  value: TODO: AUTHOR1 Medication Treatment Plan Author

index: 12
structure map.group.rule.name:
  value: DosageSubstanceAdministration
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: dosage
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-normal')
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsStartStopFrequencySubstanceAdministration
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
structure map.group.rule.documentation:
  value: dosage for normal dosing, as no sequences are present there

index: 13
structure map.group.rule.name:
  value: DosageSubstanceAdministration
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: dosage
  structure map.group.rule.source.list mode:
    value: first
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split')
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsEntryStartStopRoute
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
  structure map.group.rule.dependent.variable:
    value: entryRelationship
    index: 2
structure map.group.rule.documentation:
  value: dosage for split dosing (with sequences): effectiveTime (start/stop) & routeCode

index: 14
structure map.group.rule.name:
  value: DosageSubstanceAdministration
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: dosage
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split')
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsEntryDosageChangeSubstanceAdministration
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
  structure map.group.rule.dependent.variable:
    value: entryRelationship
    index: 2
structure map.group.rule.documentation:
  value: dosage for split dosing (with sequences): sequence number, effectiveTime (when), dose quantity, consumable

index: 15
structure map.group.rule.name:
  value: TreatmentReasonEntryContentModule
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: reasonCode
  structure map.group.rule.source.variable:
    value: reasonCode
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: RSON
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: observation
  structure map.group.rule.target.variable:
    value: observation
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: TreatmentReasonEntryContentModule
  structure map.group.rule.dependent.variable:
    value: reasonCode
    index: 0
  structure map.group.rule.dependent.variable:
    value: observation
    index: 1

index: 16
structure map.group.rule.name:
  value: MTP-Reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: url = 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: REFR
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: substanceAdministration
  structure map.group.rule.target.variable:
    value: substanceAdministration
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MTPReferenceEntryContentModule
  structure map.group.rule.dependent.variable:
    value: extension
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1

index: 17
structure map.group.rule.name:
  value: repeatNumberDefault
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: repeatNumber
  structure map.group.rule.target.variable:
    value: repeatNumber
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: repeatNumber
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: nullFlavor
  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: NI
structure map.group.rule.documentation:
  value: https://github.com/ehealthsuisse/ch-emed/issues/56

index: 18
structure map.group.rule.name:
  value: DosageInstructionsNonStructuredEntryContentModule
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: dosage
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured')
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: substanceAdministration
  structure map.group.rule.target.variable:
    value: substanceAdministration
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsNonStructuredEntryContentModule
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
structure map.group.rule.documentation:
  value: TODO: Patient Medication Instructions Contains 1.3.6.1.4.1.19376.1.5.3.1.4.3 IHE Patient Medication Instructions (DYNAMIC)

index: 19
structure map.group.rule.name:
  value: AnnotationComment
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: note
  structure map.group.rule.source.variable:
    value: note
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: act
  structure map.group.rule.target.variable:
    value: act
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: AnnotationComment
  structure map.group.rule.dependent.variable:
    value: note
    index: 0
  structure map.group.rule.dependent.variable:
    value: act
    index: 1

index: 20
structure map.group.rule.name:
  value: Substitution
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationStatement
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: act
  structure map.group.rule.target.variable:
    value: act
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: SubstitutionStatement
  structure map.group.rule.dependent.variable:
    value: extension
    index: 0
  structure map.group.rule.dependent.variable:
    value: act
    index: 1

index: 3
structure map.group.name:
  value: DosageInstructionsStartStopFrequencySubstanceAdministration
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: TODO: Tapered Dose medicationStatement -> substanceAdministration.templateId as templateId, templateId.root = '1.3.6.1.4.1.19376.1.5.3.1.4.8' "taperedDose"; source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-normal target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.35 dosage for normal dosing (without sequences) (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: normalDose
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.1
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: dosage
    structure map.group.rule.source.variable:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: substanceAdministration
    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: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeStartEnd
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      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: dosage
    structure map.group.rule.source.variable:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: substanceAdministration
    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: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeWhenNormal
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: route
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: route
    structure map.group.rule.source.variable:
      value: route
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: routeCode
    structure map.group.rule.target.variable:
      value: routeCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodeableConceptCE
    structure map.group.rule.dependent.variable:
      value: route
      index: 0
    structure map.group.rule.dependent.variable:
      value: routeCode
      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: dosage
    structure map.group.rule.source.variable:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: substanceAdministration
    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: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: DoseQuantity
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      index: 1

index: 4
structure map.group.name:
  value: DosageInstructionsEntryStartStopRoute
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.36 dosage for split dosing: effectiveTime (start/stop) & routeCode (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: entry
  structure map.group.input.type:
    value: entryRelationship
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: splitDose
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.9
  structure map.group.rule.documentation:
    value: if the FHIR doucment has no dosage templateId -> create templateId for split dose
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: dosage
    structure map.group.rule.source.variable:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: substanceAdministration
    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: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeStartEnd
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: route
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: route
    structure map.group.rule.source.variable:
      value: route
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: routeCode
    structure map.group.rule.target.variable:
      value: routeCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodeableConceptCE
    structure map.group.rule.dependent.variable:
      value: route
      index: 0
    structure map.group.rule.dependent.variable:
      value: routeCode
      index: 1

index: 5
structure map.group.name:
  value: DosageInstructionsEntryDosageChangeSubstanceAdministration
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.36 dosage for split dosing: sequence number, effectiveTime (when), dose quantity, consumable (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: substanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: entry
  structure map.group.input.type:
    value: entryRelationship
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: sequence
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: sequence
    structure map.group.rule.source.variable:
      value: sequence
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entry
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: sequenceNumber
    structure map.group.rule.target.variable:
      value: sequenceNumber
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: sequenceNumber
    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: sequence
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: dosage
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entry
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: substanceAdministration
    structure map.group.rule.target.variable:
      value: substanceAdministration
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: effectiveTimeWhen
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.variable:
        value: substanceAdministration
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: EffectiveTimeWhenSplit
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 1
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: doseQuantity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.variable:
        value: substanceAdministration
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DoseQuantity
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 1
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: consumable
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.variable:
        value: substanceAdministration
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: substanceAdministration
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: consumable
      structure map.group.rule.target.variable:
        value: consumable

value: substanceAdministration

value: substanceAdministration

value: substanceAdministration

index: 2
structure map.group.rule.target.context:
  value: consumable
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: manufacturedProduct
structure map.group.rule.target.variable:
  value: manufacturedProduct

index: 3
structure map.group.rule.target.context:
  value: manufacturedProduct
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: manufacturedMaterial
structure map.group.rule.target.variable:
  value: manufacturedMaterial

index: 4
structure map.group.rule.target.context:
  value: manufacturedMaterial
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: nullFlavor
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: NA

index: 6
structure map.group.name:
  value: EffectiveTimeStartEnd
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: effective time low and high for dosage (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: timing
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: timing
    structure map.group.rule.source.variable:
      value: timing
  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: timing
      structure map.group.rule.source.element:
        value: repeat
      structure map.group.rule.source.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: bounds
      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
      structure map.group.rule.rule:
        index: 2
      structure map.group.rule.rule:
        index: 3

value: repeat

value: Period

value: bounds

value: bounds

value: substanceAdministration

value: variable

value: effectiveTime

value: effectiveTime

value: create

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

value: low

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

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

index: 0
structure map.group.rule.dependent.name:
  value: DateTS
structure map.group.rule.dependent.variable:
  value: start
  index: 0
structure map.group.rule.dependent.variable:
  value: low
  index: 1

value: NullFlavorLow

index: 0
structure map.group.rule.source.context:
  value: bounds
structure map.group.rule.source.condition:
  value: start.exists().not()

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

index: 1
structure map.group.rule.target.context:
  value: low
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: nullFlavor
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: UNK

value: high

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

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

index: 0
structure map.group.rule.dependent.name:
  value: DateTS
structure map.group.rule.dependent.variable:
  value: end
  index: 0
structure map.group.rule.dependent.variable:
  value: high
  index: 1

value: NullFlavorhigh

index: 0
structure map.group.rule.source.context:
  value: bounds
structure map.group.rule.source.condition:
  value: end.exists().not()

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

index: 1
structure map.group.rule.target.context:
  value: high
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: nullFlavor
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: UNK

index: 7
structure map.group.name:
  value: DoseQuantity
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: dose quantity for dosage (application schema) (Statement)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  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: dosage
    structure map.group.rule.source.element:
      value: doseAndRate
    structure map.group.rule.source.variable:
      value: doseAndRate
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: doseQuantity
    structure map.group.rule.target.variable:
      value: doseQuantity
  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: doseAndRate
      structure map.group.rule.source.type:
        value: Quantity
      structure map.group.rule.source.element:
        value: dose
      structure map.group.rule.source.variable:
        value: quantity
    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: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0

value: quantity

value: value

value: value

value: doseQuantity

value: variable

value: value

value: copy

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

value: quantity

value: code

value: code

value: doseQuantity

value: variable

value: unit

value: copy

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

index: 8
structure map.group.name:
  value: TreatmentReasonEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: reasonCode Coding (e.g. http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement) target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.41 Treatment Reason (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: reasonCode
  structure map.group.input.type:
    value: Coding
  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: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: OBS
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: reasonCode
  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: classCode
    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: OBS
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: EVN
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: reasonCode
  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: moodCode
    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: EVN
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: TreatmentReasonEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: reasonCode
  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: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.41
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: reasonCode
  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: code
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: code
    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: 75326-9
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: codeSystem
    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: 2.16.840.1.113883.6.1
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: displayName
    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: Problem
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: codeSystemName
    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: LOINC
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: reasonCode
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: reasonText
  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: text
    structure map.group.rule.target.variable:
      value: text
  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: reasonText

index: 0
structure map.group.rule.target.context:
  value: text
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: data
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: reasonText

index: 1
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: reasonCode
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
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: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      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: 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: valueUrl

index: 2
structure map.group.rule.name:
  value: reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: reasonCode
  structure map.group.rule.source.condition:
    value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    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: 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: #refpdf

index: 5
structure map.group.rule.name:
  value: statusCode
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: reasonCode
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: statusCode
  structure map.group.rule.target.variable:
    value: code
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: code
  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: completed

index: 9
structure map.group.name:
  value: MTPReferenceEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-ext-treatmentplan.html target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?section=templates&id=2.16.756.5.30.1.1.10.4.45&effectiveDate=2017-01-10T15:34:25&language=en-US
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SBADM
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: INT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: referenceTo-MTP-PlanItemGeneralSpecificationTemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.10
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: CH-PHARM-templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.45
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
    structure map.group.rule.source.element:
      value: extension
    structure map.group.rule.source.variable:
      value: extension
    structure map.group.rule.source.condition:
      value: $this.url = 'id'
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: id
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: extension
      structure map.group.rule.source.element:
        value: valueIdentifier
      structure map.group.rule.source.variable:
        value: valueIdentifier
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substanceAdministration
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: id
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: IdentifierII
      structure map.group.rule.dependent.variable:
        value: valueIdentifier
        index: 0
      structure map.group.rule.dependent.variable:
        value: id
        index: 1
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ext
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code

value: copy

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

index: 2
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: codeSystem
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.3.6.1.4.1.19376.1.9.2.2

index: 3
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: displayName
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: Medication Treatment Plan Item

index: 4
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: codeSystemName
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: IHE Pharmacy Item Type List

index: 6
structure map.group.rule.name:
  value: consumable
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ext
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: consumable
  structure map.group.rule.target.variable:
    value: consumable
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: consumable
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedProduct
  structure map.group.rule.target.variable:
    value: manufacturedProduct
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: manufacturedProduct
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedMaterial
  structure map.group.rule.target.variable:
    value: manufacturedMaterial
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: nullFlavor
  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: NA

index: 7
structure map.group.rule.name:
  value: externalDocumentId
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: ext
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'externalDocumentId'
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
    structure map.group.rule.source.element:
      value: valueIdentifier
    structure map.group.rule.source.variable:
      value: valueIdentifier
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      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: typeCode
    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: XCRPT
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: externalDocument
    structure map.group.rule.target.variable:
      value: externalDocument
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: externalDocument
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.variable:
      value: id
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: IdentifierII
    structure map.group.rule.dependent.variable:
      value: valueIdentifier
      index: 0
    structure map.group.rule.dependent.variable:
      value: id
      index: 1

index: 10
structure map.group.name:
  value: DosageInstructionsNonStructuredEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-dosage-nonstructured.html target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?section=templates&id=2.16.756.5.30.1.1.10.4.52 Dosage Instruction (Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SBADM
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: INT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.52
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: dosage
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: noteText
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: text
    structure map.group.rule.target.variable:
      value: text
  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: noteText
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: text
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: data
      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: id
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.element:
        value: extension
      structure map.group.rule.source.variable:
        value: extension
      structure map.group.rule.source.condition:
        value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
    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.target:
        index: 0
      structure map.group.rule.target:
        index: 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: dosage
      structure map.group.rule.source.condition:
        value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: text
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.variable:
        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: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: consumable

value: noteText

value: extension

value: valueUrl

value: valueUrl

value: text

value: variable

value: reference

value: reference

value: reference

value: variable

value: value

value: copy

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

value: #refpdf

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

index: 0
structure map.group.rule.target.context:
  value: substanceAdministration
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: consumable
structure map.group.rule.target.variable:
  value: consumable

index: 1
structure map.group.rule.target.context:
  value: consumable
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: manufacturedProduct
structure map.group.rule.target.variable:
  value: manufacturedProduct

index: 2
structure map.group.rule.target.context:
  value: manufacturedProduct
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: manufacturedMaterial
structure map.group.rule.target.variable:
  value: manufacturedMaterial

index: 3
structure map.group.rule.target.context:
  value: manufacturedMaterial
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: nullFlavor
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: NA

index: 11
structure map.group.name:
  value: SubstitutionDispense
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationdispense.html target: Substitution act Contains 1.3.6.1.4.1.19376.1.9.1.3.9.2 IHE Substitution Act Content Module Substitution (Dispense)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: substitution
  structure map.group.input.type:
    value: Substitution
  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: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ACT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: ACT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: EVN
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: EVN
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.9.2
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
    structure map.group.rule.source.element:
      value: type
    structure map.group.rule.source.variable:
      value: type
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodeableConceptCE
    structure map.group.rule.dependent.variable:
      value: type
      index: 0
    structure map.group.rule.dependent.variable:
      value: code
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: statusCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: statusCode
    structure map.group.rule.target.variable:
      value: statusCode
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: statusCode
    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: completed

index: 12
structure map.group.name:
  value: ManufacturedMaterialEntryContentModuleDispense
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationdispense.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33&effectiveDate=2019-12-11T11:34:24&language=en-US
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
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: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: manufacturedMaterial
  structure map.group.input.type:
    value: ManufacturedMaterial
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: MMAT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: MMAT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: KIND
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: KIND
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-ManufacturedMaterialContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.33
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: brandname
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: code
      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: manufacturedMaterial
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: code

value: text

value: code

index: 0
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: code
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: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: originalText
    structure map.group.rule.target.variable:
      value: text
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      value: reference
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: reference
    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: valueUrl
structure map.group.rule.documentation:
  value: #dis.no.brandedmedication

index: 1
structure map.group.rule.name:
  value: reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.condition:
    value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: code
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: code
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: originalText
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: reference
  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: #refpdf

index: 2
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: code
  structure map.group.rule.source.element:
    value: coding
  structure map.group.rule.source.variable:
    value: coding
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: ce
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: CodingCE
  structure map.group.rule.dependent.variable:
    value: coding
    index: 0
  structure map.group.rule.dependent.variable:
    value: ce
    index: 1

index: 6
structure map.group.rule.name:
  value: form
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: form
  structure map.group.rule.source.variable:
    value: form
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: formCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: form
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: formCode
    structure map.group.rule.target.variable:
      value: formCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: formCode
      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: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: asContent
  structure map.group.rule.target.variable:
    value: asContent
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: CONT
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: containerPackagedMedicine
  structure map.group.rule.target.variable:
    value: containerPackagedMedicine
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: CONT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: CONT
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: INSTANCE
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: INSTANCE
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: pharm-code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: ce
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: ce
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: pharm-name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: name
    structure map.group.rule.target.variable:
      value: name
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: name
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: other
    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: text
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: form
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: form
    structure map.group.rule.source.variable:
      value: form
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: pharm-formCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: form
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: containerPackagedMedicine
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: formCode
      structure map.group.rule.target.variable:
        value: formCode
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CodingCE
      structure map.group.rule.dependent.variable:
        value: coding
        index: 0
      structure map.group.rule.dependent.variable:
        value: formCode
        index: 1

index: 5
structure map.group.rule.name:
  value: amount
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: amount
  structure map.group.rule.source.variable:
    value: amount
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: numerator
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: amount
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: capacityQuantity
    structure map.group.rule.target.variable:
      value: capacityQuantity
  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: numerator
      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: capacityQuantity
      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: unit
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: numerator
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: unit
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: capacityQuantity
      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.documentation:
  value: Package size

value: value

value: unit

index: 8
structure map.group.rule.name:
  value: ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: ingredient
  structure map.group.rule.target.variable:
    value: ingredient
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: ingredient
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: ACTI
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: PharmSubstance
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ingredient
    structure map.group.rule.source.element:
      value: itemCodeableConcept
    structure map.group.rule.source.variable:
      value: itemCodeableConcept
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: ingredient
    structure map.group.rule.target.variable:
      value: pharmsubstance
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: MMAT
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: classCode
      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: KIND
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: determinerCode
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: name
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      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: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 3
    structure map.group.rule.name:
      value: coding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: formCode
      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.rule:
  index: 1
  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: strength
    structure map.group.rule.source.variable:
      value: strength
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: quantity
    structure map.group.rule.target.variable:
      value: quantity
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: RatioRTOPQPQ
    structure map.group.rule.dependent.variable:
      value: strength
      index: 0
    structure map.group.rule.dependent.variable:
      value: quantity
      index: 1

value: MMAT

value: KIND

value: text

value: coding

value: pharmsubstance

value: variable

value: code

value: ce

value: CodingCE

value: coding
index: 0

value: ce
index: 1

index: 13
structure map.group.name:
  value: DispenseItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationdispense.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.42
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: supply
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SPLY
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SPLY
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: EVN
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: EVN
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-DispenseItemEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.42
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: IHE-PHARM-DIS
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.4
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: supplyEntry
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.3
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: CCD
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.34

index: 6
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: identifier
  structure map.group.rule.source.variable:
    value: identifier
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: id
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: IdentifierII
  structure map.group.rule.dependent.variable:
    value: identifier
    index: 0
  structure map.group.rule.dependent.variable:
    value: id
    index: 1

index: 7
structure map.group.rule.name:
  value: narrativeLink
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: valueUrl
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: reference
    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: valueUrl

index: 8
structure map.group.rule.name:
  value: reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.condition:
    value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: reference
  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: #refpdf

index: 9
structure map.group.rule.name:
  value: contained
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: contained
  structure map.group.rule.source.variable:
    value: medication
  structure map.group.rule.source.condition:
    value: ('#' + $this.id) in %medicationDispense.medicationReference.reference
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: product
  structure map.group.rule.target.variable:
    value: product
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: product
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedProduct
  structure map.group.rule.target.variable:
    value: manufacturedProduct
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: manufacturedProduct
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: MANU
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: MP-TemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.2
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: MP-TemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.53
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: manufacturedMaterial
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedProduct
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: manufacturedMaterial
    structure map.group.rule.target.variable:
      value: manufacturedMaterial
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ManufacturedMaterialEntryContentModuleDispense
    structure map.group.rule.dependent.variable:
      value: bundle
      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.dependent.variable:
      value: manufacturedMaterial
      index: 3

index: 10
structure map.group.rule.name:
  value: MTP-Reference
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: url = 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: REFR
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: substanceAdministration
  structure map.group.rule.target.variable:
    value: substanceAdministration
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MTPReferenceEntryContentModule
  structure map.group.rule.dependent.variable:
    value: extension
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
structure map.group.rule.documentation:
  value: TODO: AUTHOR1 Medication Treatment Plan Author

index: 11
structure map.group.rule.name:
  value: onylonedosage
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.condition:
    value: dosageInstruction.count() = 1
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: normalDose
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationDispense
    structure map.group.rule.source.element:
      value: dosageInstruction
    structure map.group.rule.source.variable:
      value: dosage
    structure map.group.rule.source.condition:
      value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured')
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7.1
structure map.group.rule.documentation:
  value: #24 missing template it if ch-emed-dosage-nonstructured

index: 12
structure map.group.rule.name:
  value: DosageSubstanceAdministration
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: dosageInstruction
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-normal')
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsStartStopFrequencySupply
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: supply
    index: 1
structure map.group.rule.documentation:
  value: dosage for normal dosing, as no sequences are present there

index: 13
structure map.group.rule.name:
  value: entryRelationship
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.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: medicationDispense
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: substanceAdministration
    structure map.group.rule.target.variable:
      value: substanceAdministration
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: DosageSubstanceAdministration
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: medicationDispense
      structure map.group.rule.source.element:
        value: dosageInstruction
      structure map.group.rule.source.list mode:
        value: first
      structure map.group.rule.source.variable:
        value: dosage
      structure map.group.rule.source.condition:
        value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split')
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsEntryStartStopRouteConsumable
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: entryRelationship
        index: 1
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 2
    structure map.group.rule.documentation:
      value: split dosing (with sequences): effectiveTime (start/stop) & routeCode & consumable
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: DosageSubstanceAdministration
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: medicationDispense
      structure map.group.rule.source.element:
        value: dosageInstruction
      structure map.group.rule.source.variable:
        value: dosage
      structure map.group.rule.source.condition:
        value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split')
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substanceAdministration
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entryRelationship
      structure map.group.rule.target.variable:
        value: entryRelationship
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: entryRelationship
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: typeCode
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DosageInstructionsEntryDosageChangeEntryRelationship
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: entryRelationship
        index: 1
    structure map.group.rule.documentation:
      value: split dosing (with sequences): sequence number, effectiveTime (when), dose quantity, consumable
structure map.group.rule.documentation:
  value: dosage for split dosing, as sequences are present there

value: substanceAdministration

value: COMP

index: 14
structure map.group.rule.name:
  value: DosageInstructionsNonStructuredEntryContentModule
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: dosageInstruction
  structure map.group.rule.source.variable:
    value: dosage
  structure map.group.rule.source.condition:
    value: $this.conformsTo('http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-nonstructured')
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: substanceAdministration
  structure map.group.rule.target.variable:
    value: substanceAdministration
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: DosageInstructionsNonStructuredEntryContentModule
  structure map.group.rule.dependent.variable:
    value: dosage
    index: 0
  structure map.group.rule.dependent.variable:
    value: substanceAdministration
    index: 1
structure map.group.rule.documentation:
  value: TODO: Precondition Criterion

index: 15
structure map.group.rule.name:
  value: quantity
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  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: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: quantity
  structure map.group.rule.target.variable:
    value: supplyQuantity
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: supplyQuantity
    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.documentation:
  value: Number of packages

index: 16
structure map.group.rule.name:
  value: AnnotationComment
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: note
  structure map.group.rule.source.variable:
    value: note
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: act
  structure map.group.rule.target.variable:
    value: act
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: AnnotationComment
  structure map.group.rule.dependent.variable:
    value: note
    index: 0
  structure map.group.rule.dependent.variable:
    value: act
    index: 1

index: 17
structure map.group.rule.name:
  value: Substitution
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationDispense
  structure map.group.rule.source.element:
    value: substitution
  structure map.group.rule.source.variable:
    value: substitution
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: supply
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entryRelationship
  structure map.group.rule.target.variable:
    value: entryRelationship
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: typeCode
  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: COMP
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: entryRelationship
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: act
  structure map.group.rule.target.variable:
    value: act
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: SubstitutionDispense
  structure map.group.rule.dependent.variable:
    value: substitution
    index: 0
  structure map.group.rule.dependent.variable:
    value: act
    index: 1

index: 14
structure map.group.name:
  value: DosageInstructionsStartStopFrequencySupply
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-normal target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.35 dosage for normal dosing (without sequences) (Dispense)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: supply
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: entryRelationship
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entryRelationship
    structure map.group.rule.target.variable:
      value: entryRelationship
  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.source.context:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: entryRelationship
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: typeCode
      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: substanceAdministration
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: entryRelationship
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: substanceAdministration
      structure map.group.rule.target.variable:
        value: substanceAdministration
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: SBADM
      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: INT
      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: templateId
      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: 3
      structure map.group.rule.name:
        value: normalDose
      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: 4
      structure map.group.rule.name:
        value: effectiveTimeStartEnd
      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.rule:
      index: 5
      structure map.group.rule.name:
        value: effectiveTimeWhen
      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.rule:
      index: 6
      structure map.group.rule.name:
        value: route
      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.rule:
      index: 7
      structure map.group.rule.name:
        value: doseQuantity
      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.rule:
      index: 8
      structure map.group.rule.name:
        value: consumable
      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.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4

value: COMP

value: dosage

value: substanceAdministration

value: variable

value: classCode

value: copy

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

value: dosage

value: substanceAdministration

value: variable

value: moodCode

value: copy

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

value: dosage

value: substanceAdministration

value: variable

value: templateId

value: templateId

value: templateId

value: variable

value: root

value: copy

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

value: dosage

value: substanceAdministration

value: variable

value: templateId

value: templateId

value: templateId

value: variable

value: root

value: copy

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

value: dosage

value: variable

value: substanceAdministration

value: copy

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

value: EffectiveTimeStartEnd

value: dosage
index: 0

value: substanceAdministration
index: 1

value: dosage

value: variable

value: substanceAdministration

value: copy

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

value: EffectiveTimeWhenNormal

value: dosage
index: 0

value: substanceAdministration
index: 1

value: dosage

value: route

value: route

value: substanceAdministration

value: variable

value: routeCode

value: routeCode

value: CodeableConceptCE

value: route
index: 0

value: routeCode
index: 1

value: dosage

value: variable

value: substanceAdministration

value: copy

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

value: DoseQuantity

value: dosage
index: 0

value: substanceAdministration
index: 1

value: dosage

value: variable

value: substanceAdministration

value: copy

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

value: substanceAdministration

value: variable

value: consumable

value: consumable

value: consumable

value: variable

value: manufacturedProduct

value: manufacturedProduct

value: manufacturedProduct

value: variable

value: manufacturedMaterial

value: manufacturedMaterial

value: manufacturedMaterial

value: variable

value: nullFlavor

value: copy

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

index: 15
structure map.group.name:
  value: DosageInstructionsEntryStartStopRouteConsumable
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.36 dosage for split dosing: effectiveTime (start/stop) & routeCode & consumable (Dispense)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: entryRelationship
  structure map.group.input.type:
    value: entryRelationship
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: COMP
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: typeCode
    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: COMP
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: SBADM
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: INT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.6
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: splitDose
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.9
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: effectiveTimeStartEnd
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.variable:
      value: substanceAdministration
    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: substanceAdministration
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: EffectiveTimeStartEnd
    structure map.group.rule.dependent.variable:
      value: dosage
      index: 0
    structure map.group.rule.dependent.variable:
      value: substanceAdministration
      index: 1
structure map.group.rule:
  index: 6
  structure map.group.rule.name:
    value: route
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: route
    structure map.group.rule.source.variable:
      value: route

index: 0
structure map.group.rule.target.context:
  value: substanceAdministration
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: routeCode
structure map.group.rule.target.variable:
  value: routeCode

index: 0
structure map.group.rule.dependent.name:
  value: CodeableConceptCE
structure map.group.rule.dependent.variable:
  value: route
  index: 0
structure map.group.rule.dependent.variable:
  value: routeCode
  index: 1

index: 7
structure map.group.rule.name:
  value: consumable
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: dosage
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: consumable
  structure map.group.rule.target.variable:
    value: consumable
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: consumable
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedProduct
  structure map.group.rule.target.variable:
    value: manufacturedProduct
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: manufacturedProduct
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: manufacturedMaterial
  structure map.group.rule.target.variable:
    value: manufacturedMaterial
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: nullFlavor
  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: NA

index: 16
structure map.group.name:
  value: DosageInstructionsEntryDosageChangeEntryRelationship
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-structured-split target: https://art-decor.org/art-decor/decor-templates--ch-pharm-?id=2.16.756.5.30.1.1.10.4.36 dosage for split dosing: sequence number, effectiveTime (when), dose quantity, consumable (Dispense)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: entryRelationship
  structure map.group.input.type:
    value: entryRelationship
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: sequence
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: sequence
    structure map.group.rule.source.variable:
      value: sequence
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: sequenceNumber
    structure map.group.rule.target.variable:
      value: sequenceNumber
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: sequenceNumber
    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: sequence
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: dosage
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: substanceAdministration
    structure map.group.rule.target.variable:
      value: substanceAdministration
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: effectiveTimeWhen
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: EffectiveTimeWhenSplit
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 1
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: doseQuantity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: DoseQuantity
      structure map.group.rule.dependent.variable:
        value: dosage
        index: 0
      structure map.group.rule.dependent.variable:
        value: substanceAdministration
        index: 1
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: consumable
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: dosage
      structure map.group.rule.source.variable:
        value: dosage
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: substanceAdministration
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: consumable
      structure map.group.rule.target.variable:
        value: consumable
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: consumable
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: manufacturedProduct
      structure map.group.rule.target.variable:
        value: manufacturedProduct
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: manufacturedProduct
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: manufacturedMaterial
      structure map.group.rule.target.variable:
        value: manufacturedMaterial
    structure map.group.rule.target:
      index: 3

value: substanceAdministration

value: substanceAdministration

value: manufacturedMaterial

value: variable

value: nullFlavor

value: copy

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

index: 17
structure map.group.name:
  value: EffectiveTimeWhenNormal
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: effective time when for normal dosage (Dispense, Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: timing
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: timing
    structure map.group.rule.source.variable:
      value: timing
  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: timing
      structure map.group.rule.source.element:
        value: repeat
      structure map.group.rule.source.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: when
      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.name:
        value: when
      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

value: repeat

value: $this.when.count() = 1

value: substanceAdministration

value: variable

value: effectiveTime

value: effectiveTime

value: create

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

value: effectiveTime

value: variable

value: operator

value: copy

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

value: when

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

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: event
structure map.group.rule.target.variable:
  value: event

index: 1
structure map.group.rule.target.context:
  value: event
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: when

value: repeat

value: $this.when.count() > 1

value: substanceAdministration

value: variable

value: effectiveTime

value: effectiveTime

value: create

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

value: effectiveTime

value: variable

value: operator

value: copy

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

value: comp

index: 0
structure map.group.rule.source.context:
  value: repeat
structure map.group.rule.source.element:
  value: when
structure map.group.rule.source.list mode:
  value: first
structure map.group.rule.source.variable:
  value: when

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: comp
structure map.group.rule.target.variable:
  value: comp
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: EIVL_TS

index: 0
structure map.group.rule.name:
  value: when
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: when
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: event
  structure map.group.rule.target.variable:
    value: event
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: event
  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: when

value: compnotfirst

index: 0
structure map.group.rule.source.context:
  value: repeat
structure map.group.rule.source.element:
  value: when
structure map.group.rule.source.list mode:
  value: not_first
structure map.group.rule.source.variable:
  value: when

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: comp
structure map.group.rule.target.variable:
  value: comp
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: EIVL_TS

index: 1
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: operator
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: I

index: 0
structure map.group.rule.name:
  value: when
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: when
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: event
  structure map.group.rule.target.variable:
    value: event
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: event
  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: when

index: 18
structure map.group.name:
  value: EffectiveTimeWhenSplit
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: effective time when for split dosage (Dispense, Statement, Prescription)
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dosage
  structure map.group.input.type:
    value: Dosage
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: timing
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dosage
    structure map.group.rule.source.element:
      value: timing
    structure map.group.rule.source.variable:
      value: timing
  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: timing
      structure map.group.rule.source.element:
        value: repeat
      structure map.group.rule.source.variable:
        value: repeat
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: when
      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
      structure map.group.rule.name:
        value: when
      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

value: repeat

value: $this.when.count() = 1

value: substanceAdministration

value: variable

value: effectiveTime

value: effectiveTime

value: create

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

value: when

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

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: event
structure map.group.rule.target.variable:
  value: event

index: 1
structure map.group.rule.target.context:
  value: event
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: when

value: repeat

value: $this.when.count() > 1

value: substanceAdministration

value: variable

value: effectiveTime

value: effectiveTime

value: create

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

value: effectiveTime

value: variable

value: operator

value: copy

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

value: comp

index: 0
structure map.group.rule.source.context:
  value: repeat
structure map.group.rule.source.element:
  value: when
structure map.group.rule.source.list mode:
  value: first
structure map.group.rule.source.variable:
  value: when

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: comp
structure map.group.rule.target.variable:
  value: comp
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: EIVL_TS

index: 0
structure map.group.rule.name:
  value: when
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: when
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: event
  structure map.group.rule.target.variable:
    value: event
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: event
  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: when

value: compnotfirst

index: 0
structure map.group.rule.source.context:
  value: repeat
structure map.group.rule.source.element:
  value: when
structure map.group.rule.source.list mode:
  value: not_first
structure map.group.rule.source.variable:
  value: when

index: 0
structure map.group.rule.target.context:
  value: effectiveTime
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: comp
structure map.group.rule.target.variable:
  value: comp
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: EIVL_TS

index: 1
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: operator
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: I

index: 0
structure map.group.rule.name:
  value: when
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: when
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: event
  structure map.group.rule.target.variable:
    value: event
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: event
  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: when

index: 19
structure map.group.name:
  value: SubstitutionRequest
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: Substitution permission Contains 1.3.6.1.4.1.19376.1.9.1.3.9.1 IHE Substitution Permission Content Module
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: substitution
  structure map.group.input.type:
    value: Substitution
  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: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ACT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: ACT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: DEF
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: DEF
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.9.1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: substitution
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
    structure map.group.rule.source.element:
      value: allowedCodeableConcept
    structure map.group.rule.source.variable:
      value: allowedCC
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodeableConceptCE
    structure map.group.rule.dependent.variable:
      value: allowedCC
      index: 0
    structure map.group.rule.dependent.variable:
      value: code
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: statusCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: substitution
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: statusCode
    structure map.group.rule.target.variable:
      value: statusCode
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: statusCode
    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: completed

index: 20
structure map.group.name:
  value: SubstitutionStatement
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: Substitution permission Contains 1.3.6.1.4.1.19376.1.9.1.3.9.1 IHE Substitution Permission Content Module
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: extension
  structure map.group.input.type:
    value: Extension
  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: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ACT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: ACT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: DEF
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: DEF
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.9.1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: extension
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
    structure map.group.rule.source.element:
      value: valueCodeableConcept
    structure map.group.rule.source.variable:
      value: valueCC
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodeableConceptCE
    structure map.group.rule.dependent.variable:
      value: valueCC
      index: 0
    structure map.group.rule.dependent.variable:
      value: code
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: statusCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: act
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: statusCode
    structure map.group.rule.target.variable:
      value: statusCode
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: statusCode
    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: completed

index: 21
structure map.group.name:
  value: PrescribedQuantity
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?id=2.16.756.5.30.1.1.10.4.38
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dispenseRequest
  structure map.group.input.type:
    value: DispenseRequest
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: supply
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SPLY
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SPLY
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: RQO
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: RQO
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.8
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: independentInd
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: independentInd
    structure map.group.rule.target.variable:
      value: independentInd
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: independentInd
    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: false
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: quantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
    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: supply
    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: Number of packages

value: value

index: 22
structure map.group.name:
  value: PrescribedQuantityUnit
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?id=2.16.756.5.30.1.1.10.4.38
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: dispenseRequest
  structure map.group.input.type:
    value: DispenseRequest
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: supply
  structure map.group.input.type:
    value: Supply
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SPLY
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SPLY
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: RQO
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: RQO
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: TemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.8
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: independentInd
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: supply
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: independentInd
    structure map.group.rule.target.variable:
      value: independentInd
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: independentInd
    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: false
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: quantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dispenseRequest
    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: supply
    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.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.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: unit
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: value

value: unit

value: Number of packages

index: 23
structure map.group.name:
  value: ManufacturedMaterialEntryContentModulePrescription
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.33
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
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: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: manufacturedMaterial
  structure map.group.input.type:
    value: ManufacturedMaterial
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: MMAT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: MMAT
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: KIND
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: KIND
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-ManufacturedMaterialContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.33
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: templateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: code
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: brandname
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: code
      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: manufacturedMaterial
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: text

index: 5
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: code
  structure map.group.rule.source.variable:
    value: code
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    structure map.group.rule.source.element:
      value: extension
    structure map.group.rule.source.variable:
      value: extension
    structure map.group.rule.source.condition:
      value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  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: extension
      structure map.group.rule.source.element:
        value: valueUrl
      structure map.group.rule.source.variable:
        value: valueUrl
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: originalText
      structure map.group.rule.target.variable:
        value: text
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: text
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.variable:
        value: reference
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: reference
      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: #pre.no.brandedmedication
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: code
    structure map.group.rule.source.condition:
      value: (extension.where($this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists() = false)
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: originalText
    structure map.group.rule.target.variable:
      value: text
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: text
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.variable:
      value: reference
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: reference
    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: #refpdf
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.source.context:
      value: code
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: ce
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: ce
      index: 1

value: valueUrl

index: 6
structure map.group.rule.name:
  value: form
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: form
  structure map.group.rule.source.variable:
    value: form
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: formCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: form
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: manufacturedMaterial
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: formCode
    structure map.group.rule.target.variable:
      value: formCode
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: formCode
      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: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: asContent
  structure map.group.rule.target.variable:
    value: asContent
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: CONT
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: asContent
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: containerPackagedMedicine
  structure map.group.rule.target.variable:
    value: containerPackagedMedicine
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: CONT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: CONT
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: INSTANCE
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: determinerCode
    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: INSTANCE
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: pharm-code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    structure map.group.rule.source.element:
      value: coding
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: ce
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CodingCE
    structure map.group.rule.dependent.variable:
      value: coding
      index: 0
    structure map.group.rule.dependent.variable:
      value: ce
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: pharm-name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: code
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: name
    structure map.group.rule.target.variable:
      value: name
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: name
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: other
    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: text
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: form
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medication
    structure map.group.rule.source.element:
      value: form
    structure map.group.rule.source.variable:
      value: form
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: pharm-formCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: form
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: containerPackagedMedicine
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: formCode
      structure map.group.rule.target.variable:
        value: formCode
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: CodingCE
      structure map.group.rule.dependent.variable:
        value: coding
        index: 0
      structure map.group.rule.dependent.variable:
        value: formCode
        index: 1

index: 5
structure map.group.rule.name:
  value: amount
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.element:
    value: amount
  structure map.group.rule.source.variable:
    value: amount
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: numerator
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: amount
    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: containerPackagedMedicine
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: capacityQuantity
    structure map.group.rule.target.variable:
      value: capacityQuantity
  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: numerator
      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: capacityQuantity
      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: unit
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: numerator
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: unit
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: capacityQuantity
      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.rule:
  index: 1
  structure map.group.rule.name:
    value: PrescribedQuantity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
    structure map.group.rule.source.element:
      value: dispenseRequest
    structure map.group.rule.source.variable:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entryRelationship
    structure map.group.rule.target.variable:
      value: entryRelationship
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: typeCode
    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: COMP
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: supply
    structure map.group.rule.target.variable:
      value: supply
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: PrescribedQuantity
    structure map.group.rule.dependent.variable:
      value: dispenseRequest
      index: 0
    structure map.group.rule.dependent.variable:
      value: supply
      index: 1
  structure map.group.rule.documentation:
    value: IHE-DIS: Case 1: If the product-element contains package information, the unit attribute is not be present
structure map.group.rule.documentation:
  value: Package size

value: value

value: unit

index: 6
structure map.group.rule.name:
  value: noAmount
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  structure map.group.rule.source.condition:
    value: $this.amount.exists() = false
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: PrescribedQuantityUnit
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
    structure map.group.rule.source.element:
      value: dispenseRequest
    structure map.group.rule.source.variable:
      value: dispenseRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entryRelationship
    structure map.group.rule.target.variable:
      value: entryRelationship
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: typeCode
    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: COMP
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: entryRelationship
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: supply
    structure map.group.rule.target.variable:
      value: supply
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: PrescribedQuantityUnit
    structure map.group.rule.dependent.variable:
      value: dispenseRequest
      index: 0
    structure map.group.rule.dependent.variable:
      value: supply
      index: 1
structure map.group.rule.documentation:
  value: IHE-DIS: Case 2: 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

index: 8
structure map.group.rule.name:
  value: ingredient
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medication
  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: manufacturedMaterial
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: ingredient
  structure map.group.rule.target.variable:
    value: ingredient
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: ingredient
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: classCode
  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: ACTI
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: PharmSubstance
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: ingredient
    structure map.group.rule.source.element:
      value: itemCodeableConcept
    structure map.group.rule.source.variable:
      value: itemCodeableConcept
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: ingredient
    structure map.group.rule.target.variable:
      value: pharmsubstance
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: MMAT
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: classCode
      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: KIND
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: determinerCode
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: name
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      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: pharmsubstance
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: name
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: name
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: other
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 3
    structure map.group.rule.name:
      value: coding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: itemCodeableConcept
      structure map.group.rule.source.element:
        value: coding
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: formCode
      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.rule:
  index: 1
  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: strength
    structure map.group.rule.source.variable:
      value: strength
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ingredient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: quantity
    structure map.group.rule.target.variable:
      value: quantity
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: RatioRTOPQPQ
    structure map.group.rule.dependent.variable:
      value: strength
      index: 0
    structure map.group.rule.dependent.variable:
      value: quantity
      index: 1

value: MMAT

value: KIND

value: text

value: coding

value: pharmsubstance

value: variable

value: code

value: ce

value: CodingCE

value: coding
index: 0

value: ce
index: 1

index: 24
structure map.group.name:
  value: PrescriptionItemEntryContentModule
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: http://build.fhir.org/ig/hl7ch/ch-emed/branches/master/StructureDefinition-ch-emed-medicationrequest.html target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.4.43
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  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: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: substanceAdministration
  structure map.group.input.type:
    value: SubstanceAdministration
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: SBADM
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: classCode
    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: SBADM
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: INT
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: moodCode
    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: INT
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: CH-PHARM-PrescriptionItemEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.756.5.30.1.1.10.4.43
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: PrescriptionItemEntryTemplateId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.9.1.3.2
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: CCD
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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: 2.16.840.1.113883.10.20.1.24
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: PCC-MedicationEntryContentModule
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: substanceAdministration
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: templateId
    structure map.group.rule.target.variable:
      value: templateId
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: templateId
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: root
    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.3.6.1.4.1.19376.1.5.3.1.4.7

index: 6
structure map.group.rule.name:
  value: id
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationRequest
  structure map.group.rule.source.element:
    value: identifier
  structure map.group.rule.source.variable:
    value: identifier
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: id
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: IdentifierII
  structure map.group.rule.dependent.variable:
    value: identifier
    index: 0
  structure map.group.rule.dependent.variable:
    value: id
    index: 1

index: 7
structure map.group.rule.name:
  value: narrativeLink
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationRequest
  structure map.group.rule.source.element:
    value: extension
  structure map.group.rule.source.variable:
    value: extension
  structure map.group.rule.source.condition:
    value: $this.url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: valueUrl
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: extension
    structure map.group.rule.source.element:
      value: valueUrl
    structure map.group.rule.source.variable:
      value: valueUrl
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: reference
    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: valueUrl

index: 8
structure map.group.rule.name:
  value: cat1narrativelink
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationRequest
  structure map.group.rule.source.condition:
    value: extension.where(url = 'http://hl7.org/fhir/StructureDefinition/narrativeLink').exists().not()
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: text
  structure map.group.rule.target.variable:
    value: text
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: text
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.variable:
    value: reference
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: referencetopdf
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: medicationRequest
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: reference
    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: #refpdf

index: 9
structure map.group.rule.name:
  value: code
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationRequest
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: statusCode
  structure map.group.rule.target.variable:
    value: statusCode
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: statusCode
  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: completed

index: 10
structure map.group.rule.name:
  value: dispenseRequest
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: medicationRequest
  structure map.group.rule.source.element:
    value: dispenseRequest
  structure map.group.rule.source.variable:
    value: dispenseRequest
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: substanceAdministration
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: repeatNumber
  structure map.group.rule.target.variable:
    value: repeatNumber
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: repeatNumber
  structure map.group.rule.source:
    index: 0