CdaChToBundle
type: StructureMap
node role: treeRoot
resource.id:
  value: CdaChToBundle
resource.meta:
  meta.version id:
    value: 3
  meta.last updated:
    value: 2022-01-12T15:16:01.097+01:00
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: map "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChToBundle" = "CdaChToBundle" // CDA-CH document, 2.16.756.5.30.1.1.10.1.14 // 2020-01-16 Oliver Egger, copyright ahdis ag, Apache License // CDA-CH: https://art-decor.org/art-decor/decor-templates--hl7chcda- // FHIR CH-Core: http://fhir.ch/ig/ch-core/index.html uses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source uses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as queried uses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as queried uses "http://hl7.org/fhir/cda/StructureDefinition/DataEnterer" alias DataEnterer as queried uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as produced uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Person" alias Person as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias PractitionerRole as produced uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced imports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes" imports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle" // source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 // target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html group CdaChToBundle(source cda : ClinicalDocument, target bundle : Bundle) { cda -> bundle.entry as e, e.resource = create('Composition') as composition, composition.id = uuid() as uuid, e.fullUrl = append('urn:uuid:', uuid), bundle.entry as e2, e2.resource = create('Patient') as patient, patient.id = uuid() as uuid2, e2.fullUrl = append('urn:uuid:', uuid2) then Cli…
structure map.url:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaChToBundle
structure map.version:
  value: 0.3.0
structure map.name:
  value: CdaChToBundle
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: CDA-CH document, 2.16.756.5.30.1.1.10.1.14 2020-01-16 Oliver Egger, copyright ahdis ag, Apache License CDA-CH: https://art-decor.org/art-decor/decor-templates--hl7chcda- FHIR CH-Core: http://fhir.ch/ig/ch-core/index.html
structure map.copyright:
  value: CC-BY-SA-4.0
structure map.structure:
  index: 0
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
    link: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: ClinicalDocument
structure map.structure:
  index: 1
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/Section
    link: http://hl7.org/fhir/cda/StructureDefinition/Section
  structure map.structure.mode:
    value: queried
  structure map.structure.alias:
    value: Section
structure map.structure:
  index: 2
  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: queried
  structure map.structure.alias:
    value: PatientRole
structure map.structure:
  index: 3
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/DataEnterer
    link: http://hl7.org/fhir/cda/StructureDefinition/DataEnterer
  structure map.structure.mode:
    value: queried
  structure map.structure.alias:
    value: DataEnterer
structure map.structure:
  index: 4
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Bundle
structure map.structure:
  index: 5
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Composition
    link: http://hl7.org/fhir/StructureDefinition/Composition
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Composition
structure map.structure:
  index: 6
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Patient
structure map.structure:
  index: 7
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Person
    link: http://hl7.org/fhir/StructureDefinition/Person
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Person
structure map.structure:
  index: 8
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Practitioner
structure map.structure:
  index: 9
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: PractitionerRole
structure map.structure:
  index: 10
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  structure map.structure.mode:
    value: produced
  structure map.structure.alias:
    value: Organization
structure map.import:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes
  index: 0
  link: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes
structure map.import:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle
  index: 1
  link: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle
structure map.group:
  index: 0
  structure map.group.name:
    value: CdaChToBundle
  structure map.group.type mode:
    value: none
  structure map.group.documentation:
    value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html
  structure map.group.input:
    index: 0
    structure map.group.input.name:
      value: cda
    structure map.group.input.type:
      value: ClinicalDocument
    structure map.group.input.mode:
      value: source
  structure map.group.input:
    index: 1
    structure map.group.input.name:
      value: bundle
    structure map.group.input.type:
      value: Bundle
    structure map.group.input.mode:
      value: target
  structure map.group.rule:
    index: 0
    structure map.group.rule.name:
      value: ClinicalDocumentToBody
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: cda
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: composition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0

value: Composition

index: 2
structure map.group.rule.target.context:
  value: composition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid
structure map.group.rule.target.transform:
  value: uuid

index: 3
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: append
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:
structure map.group.rule.target.parameter:
  index: 1
  structure map.group.rule.target.parameter.value id:
    value: uuid

index: 4
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: e2

index: 5
structure map.group.rule.target.context:
  value: e2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: patient
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: Patient

index: 6
structure map.group.rule.target.context:
  value: patient
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid2
structure map.group.rule.target.transform:
  value: uuid

index: 7
structure map.group.rule.target.context:
  value: e2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: append
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:
structure map.group.rule.target.parameter:
  index: 1
  structure map.group.rule.target.parameter.value id:
    value: uuid2

index: 0
structure map.group.rule.dependent.name:
  value: ClinicalDocumentChToBundle
structure map.group.rule.dependent.variable:
  value: cda
  index: 0
structure map.group.rule.dependent.variable:
  value: patient
  index: 1
structure map.group.rule.dependent.variable:
  value: composition
  index: 2
structure map.group.rule.dependent.variable:
  value: bundle
  index: 3

index: 1
structure map.group.name:
  value: ClinicalDocumentChToBundle
structure map.group.extends:
  value: ClinicalDocumentToBundle
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-document.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: cda
  structure map.group.input.type:
    value: ClinicalDocument
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: composition
  structure map.group.input.type:
    value: Composition
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: composition
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: cda
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ClinicalDocumentCompositionCh
    structure map.group.rule.dependent.variable:
      value: cda
      index: 0
    structure map.group.rule.dependent.variable:
      value: composition
      index: 1
    structure map.group.rule.dependent.variable:
      value: patient
      index: 2
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 3
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: component
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: cda
    structure map.group.rule.source.element:
      value: component
    structure map.group.rule.source.variable:
      value: component
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: body
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: component
      structure map.group.rule.source.element:
        value: structuredBody
      structure map.group.rule.source.variable:
        value: body
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: component
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1

value: body

value: component

value: component

value: section

index: 0
structure map.group.rule.source.context:
  value: component
structure map.group.rule.source.element:
  value: section
structure map.group.rule.source.variable:
  value: srcSection
structure map.group.rule.source.condition:
  value: (templateId.where(root = '2.16.756.5.30.1.1.10.3.2'))

index: 0
structure map.group.rule.target.context:
  value: composition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: section
structure map.group.rule.target.variable:
  value: tgtSection

index: 0
structure map.group.rule.dependent.name:
  value: ClinicalDocumentSection
structure map.group.rule.dependent.variable:
  value: cda
  index: 0
structure map.group.rule.dependent.variable:
  value: srcSection
  index: 1
structure map.group.rule.dependent.variable:
  value: patient
  index: 2
structure map.group.rule.dependent.variable:
  value: tgtSection
  index: 3
structure map.group.rule.dependent.variable:
  value: bundle
  index: 4

value: section

index: 0
structure map.group.rule.source.context:
  value: component
structure map.group.rule.source.element:
  value: section
structure map.group.rule.source.variable:
  value: srcSection
structure map.group.rule.source.condition:
  value: (templateId.where(root = '2.16.756.5.30.1.1.10.3.45'))

index: 0
structure map.group.rule.target.context:
  value: composition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: section
structure map.group.rule.target.variable:
  value: tgtSection

index: 0
structure map.group.rule.dependent.name:
  value: SectionOriginalRepresentation
structure map.group.rule.dependent.variable:
  value: cda
  index: 0
structure map.group.rule.dependent.variable:
  value: srcSection
  index: 1
structure map.group.rule.dependent.variable:
  value: patient
  index: 2
structure map.group.rule.dependent.variable:
  value: tgtSection
  index: 3
structure map.group.rule.dependent.variable:
  value: bundle
  index: 4

index: 2
structure map.group.name:
  value: SectionOriginalRepresentation
structure map.group.extends:
  value: ClinicalDocumentSection
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Section Level Templates _________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.1.14 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-composition-definitions.html#Composition.section TODO: not excplicitly modeled in CH-Core
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: cda
  structure map.group.input.type:
    value: ClinicalDocument
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: Section
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: tgt
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: cdaEntry
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: entry
    structure map.group.rule.source.variable:
      value: cdaEntry
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: bundle
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entry
    structure map.group.rule.target.variable:
      value: e
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: resource
    structure map.group.rule.target.variable:
      value: binary
    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: Binary
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: binary
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.variable:
      value: uuid
    structure map.group.rule.target.transform:
      value: uuid
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: fullUrl
    structure map.group.rule.target.variable:
      value: urnuuid
    structure map.group.rule.target.transform:
      value: append
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: urn:uuid:
    structure map.group.rule.target.parameter:
      index: 1
      structure map.group.rule.target.parameter.value id:
        value: uuid
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entry
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 5
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: urnuuid
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: observationMedia
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: cdaEntry
      structure map.group.rule.source.element:
        value: observationMedia
      structure map.group.rule.source.variable:
        value: observationMedia
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: observationMedia
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.dependent:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: narrativeLink
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.dependent:
        index: 0

value: observationMedia

value: ObservationMedia

value: observationMedia
index: 0

value: binary
index: 1

value: observationMedia

value: ID

value: value

value: reference

value: variable

value: extension

value: ext

value: NarrativeLink

value: value
index: 0

value: ext
index: 1

index: 3
structure map.group.name:
  value: ObservationMedia
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Entry Level Templates ________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.4.83 TODO: not excplicitly modeled in CH-Core
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: observationMedia
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: binary
  structure map.group.input.type:
    value: Binary
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: observationMedia
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: value
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: contentType
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: value
      structure map.group.rule.source.element:
        value: mediaType
      structure map.group.rule.source.variable:
        value: mediaType
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: binary
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: contentType
      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: dataString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: binary
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: data
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: languageCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: observationMedia
    structure map.group.rule.source.element:
      value: languageCode
    structure map.group.rule.source.variable:
      value: languageCode
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: lang
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: languageCode
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: lang
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: binary
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: language
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: mediaType

value: value.dataBase64Binary

value: lang

index: 4
structure map.group.name:
  value: ChExtEprConfidentialityCode
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Header Level Templates _________________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-confidentialitycode.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: CE
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: value
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: CodeableConcept
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CECodeableConcept
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: value
      index: 1

index: 5
structure map.group.name:
  value: ChExtEprVersionNumber
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-versionnumber.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: INT
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-versionnumber
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: value
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: unsignedInt
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: INT
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: value
      index: 1

index: 6
structure map.group.name:
  value: ChExtEprVersionNumber1
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-versionnumber
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: value
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: unsignedInt
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: value
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 1

index: 7
structure map.group.name:
  value: ChExtEprInformationRecipient
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-informationrecipient.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: IntendedRecipient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %patient.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: address
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: addr
    structure map.group.rule.source.variable:
      value: addr
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: patient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: address
    structure map.group.rule.target.variable:
      value: address
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ADAddress
    structure map.group.rule.dependent.variable:
      value: addr
      index: 0
    structure map.group.rule.dependent.variable:
      value: address
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: informationRecipient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: informationRecipient
    structure map.group.rule.source.variable:
      value: informationRecipient
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: name
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: informationRecipient
      structure map.group.rule.source.element:
        value: name
      structure map.group.rule.source.variable:
        value: cdaname
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: patient
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: name
      structure map.group.rule.target.variable:
        value: fhirname
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ENHumanName
      structure map.group.rule.dependent.variable:
        value: cdaname
        index: 0
      structure map.group.rule.dependent.variable:
        value: fhirname
        index: 1

index: 8
structure map.group.name:
  value: ChExtEprInformationRecipientOrganization
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-informationrecipient.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: IntendedRecipient
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: organization
  structure map.group.input.type:
    value: Organization
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-informationrecipient
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: reference
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %organization.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: organization
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: receivedOrganization
    structure map.group.rule.source.variable:
      value: receivedOrganization
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ClinicalDocumentOrganization
    structure map.group.rule.dependent.variable:
      value: receivedOrganization
      index: 0
    structure map.group.rule.dependent.variable:
      value: organization
      index: 1

index: 9
structure map.group.name:
  value: ChExtEprDataEnterer
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?section=templates&id=2.16.756.5.30.1.1.10.2.7 target: http://build.fhir.org/ig/hl7ch/ch-core/StructureDefinition-ch-ext-epr-dataenterer.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: DataEnterer
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: practitionerRole
  structure map.group.input.type:
    value: PractitionerRole
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: ext
  structure map.group.input.type:
    value: Extension
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: url
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: PractitionerRole
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: assignedEntity
    structure map.group.rule.source.variable:
      value: assignedEntity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: enterer
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: reference
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Reference
  structure map.group.rule.target:
    index: 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: reference
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + %practitionerRole.id
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: time
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: time
    structure map.group.rule.source.variable:
      value: time
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: exttime
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ChExtEprTime
    structure map.group.rule.dependent.variable:
      value: time
      index: 0
    structure map.group.rule.dependent.variable:
      value: exttime
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: assignedEntity
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: assignedEntity
    structure map.group.rule.source.variable:
      value: assignedEntity
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: Practitioner
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: assignedEntity
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: practitioner
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0

value: Practitioner

index: 2
structure map.group.rule.target.context:
  value: practitioner
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid
structure map.group.rule.target.transform:
  value: uuid

index: 3
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: append
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:
structure map.group.rule.target.parameter:
  index: 1
  structure map.group.rule.target.parameter.value id:
    value: uuid

index: 4
structure map.group.rule.target.context:
  value: practitionerRole
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: practitioner
structure map.group.rule.target.variable:
  value: reference
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Reference

index: 5
structure map.group.rule.target.context:
  value: reference
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: append
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:
structure map.group.rule.target.parameter:
  index: 1
  structure map.group.rule.target.parameter.value id:
    value: uuid

index: 0
structure map.group.rule.dependent.name:
  value: ClinicalDocumentEntityPractitioner
structure map.group.rule.dependent.variable:
  value: assignedEntity
  index: 0
structure map.group.rule.dependent.variable:
  value: practitioner
  index: 1

index: 1
structure map.group.rule.name:
  value: Organization
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: assignedEntity
  structure map.group.rule.source.element:
    value: representedOrganization
  structure map.group.rule.source.variable:
    value: representedOrganization
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: bundle
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: e
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: resource
  structure map.group.rule.target.variable:
    value: organization
  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: Organization
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: organization
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: uuid2
  structure map.group.rule.target.transform:
    value: uuid
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: fullUrl
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid2
structure map.group.rule.target:
  index: 4
  structure map.group.rule.target.context:
    value: practitionerRole
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: organization
  structure map.group.rule.target.variable:
    value: referenceOrg
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Reference
structure map.group.rule.target:
  index: 5
  structure map.group.rule.target.context:
    value: referenceOrg
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid2
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: ClinicalDocumentOrganization
  structure map.group.rule.dependent.variable:
    value: representedOrganization
    index: 0
  structure map.group.rule.dependent.variable:
    value: organization
    index: 1

index: 10
structure map.group.name:
  value: ClinicalDocumentCompositionCh
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Template Type not specified ___________________ source: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.9.36 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-core-composition-epr.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: ClinicalDocument
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: tgt
  structure map.group.input.type:
    value: Composition
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: patientResource
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: confidentialityCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: confidentialityCode
    structure map.group.rule.source.variable:
      value: confidentialityCode
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: confCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: confidentialityCode
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: v
      structure map.group.rule.source.condition:
        value: ('http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.confidentialityCode'.resolve().compose.include.concept.where($this.code = src.confidentialityCode.code).exists())
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: tgt
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: confidentiality
      structure map.group.rule.target.variable:
        value: fhirconf
      structure map.group.rule.target.transform:
        value: translate
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: fhirconf
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: extension
      structure map.group.rule.target.variable:
        value: ext
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ChExtEprConfidentialityCode
      structure map.group.rule.dependent.variable:
        value: confidentialityCode
        index: 0
      structure map.group.rule.dependent.variable:
        value: ext
        index: 1
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: versionNumber
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: versionNumber
    structure map.group.rule.source.variable:
      value: versionNumber
    structure map.group.rule.source.condition:
      value: (versionNumber > 1)
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext2
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ChExtEprVersionNumber
    structure map.group.rule.dependent.variable:
      value: versionNumber
      index: 0
    structure map.group.rule.dependent.variable:
      value: ext2
      index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: entry
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: informationRecipient
    structure map.group.rule.source.variable:
      value: informationRecipient
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: bundle
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entry
    structure map.group.rule.target.variable:
      value: e
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: informationRecipient
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: informationRecipient
      structure map.group.rule.source.element:
        value: intendedRecipient
      structure map.group.rule.source.variable:
        value: intendedRecipient
      structure map.group.rule.source.condition:
        value: $this.receivedOrganization.exists() = false
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: recipient
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: recipient
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: e

value: v

value: code

value: Patient

value: variable

value: fullUrl

value: append

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

index: 1
structure map.group.rule.target.parameter.value id:
  value: uuid

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

index: 0
structure map.group.rule.dependent.name:
  value: ChExtEprInformationRecipient
structure map.group.rule.dependent.variable:
  value: intendedRecipient
  index: 0
structure map.group.rule.dependent.variable:
  value: recipient
  index: 1
structure map.group.rule.dependent.variable:
  value: ext
  index: 2

index: 1
structure map.group.rule.name:
  value: intendedRecipientAsOrganization
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: informationRecipient
  structure map.group.rule.source.element:
    value: intendedRecipient
  structure map.group.rule.source.variable:
    value: intendedRecipient
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: informationRecipientOrganization
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: intendedRecipient
    structure map.group.rule.source.element:
      value: receivedOrganization
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: resource
    structure map.group.rule.target.variable:
      value: recipient
    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: Organization
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: recipient
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.variable:
      value: uuid2
    structure map.group.rule.target.transform:
      value: uuid
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: fullUrl
    structure map.group.rule.target.transform:
      value: append
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: urn:uuid:
    structure map.group.rule.target.parameter:
      index: 1
      structure map.group.rule.target.parameter.value id:
        value: uuid2
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ChExtEprInformationRecipientOrganization
    structure map.group.rule.dependent.variable:
      value: intendedRecipient
      index: 0
    structure map.group.rule.dependent.variable:
      value: recipient
      index: 1
    structure map.group.rule.dependent.variable:
      value: ext
      index: 2

index: 3
structure map.group.rule.name:
  value: dataEnterer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: dataEnterer
  structure map.group.rule.source.variable:
    value: dataEnterer
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: bundle
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: e
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: resource
  structure map.group.rule.target.variable:
    value: practitionerRole
  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: PractitionerRole
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: practitionerRole
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: uuid
  structure map.group.rule.target.transform:
    value: uuid
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: e
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: fullUrl
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid
structure map.group.rule.target:
  index: 4
  structure map.group.rule.target.context:
    value: tgt
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: extension
  structure map.group.rule.target.variable:
    value: ext
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: ChExtEprDataEnterer
  structure map.group.rule.dependent.variable:
    value: dataEnterer
    index: 0
  structure map.group.rule.dependent.variable:
    value: bundle
    index: 1
  structure map.group.rule.dependent.variable:
    value: practitionerRole
    index: 2
  structure map.group.rule.dependent.variable:
    value: ext
    index: 3