CdaToBundle
type: StructureMap
node role: treeRoot
resource.id:
  value: CdaToBundle
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: map "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle" = "CdaToBundle" // CDA document // 2020-01-16 Oliver Egger, copyright ahdis ag, Apache License // CDA: http://build.fhir.org/ig/ahdis/cda-core-2.0/branches/master/index.html // FHIR: http://hl7.org/fhir/r4/ conceptmap "cm-v3-administrative-gender" { prefix s = "http://terminology.hl7.org/ValueSet/v3-AdministrativeGender" prefix t = "http://hl7.org/fhir/ValueSet/administrative-gender" s:M == t:male s:F == t:female } uses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as queried uses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as queried uses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as queried 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/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 Patient as produced uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as produced uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as produced imports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToFhirTypes" group CdaToBundle(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:', uui…
domain resource.contained: ConceptMap
  index: 0
  resource.id:
    value: cm-v3-administrative-gender
  concept map.status:
    value: draft
  concept map.group:
    index: 0
    concept map.group.source:
      value: http://terminology.hl7.org/ValueSet/v3-AdministrativeGender
    concept map.group.target:
      value: http://hl7.org/fhir/ValueSet/administrative-gender
    concept map.group.element:
      index: 0
      concept map.group.element.code:
        value: M
      concept map.group.element.target:
        index: 0
    concept map.group.element:
      index: 1
      concept map.group.element.code:
        value: F
      concept map.group.element.target:
        index: 0
domain resource.extension:
  index: 0
  extension.url:
    value: http://fhir.ch/reference
  extension.value reference:
    reference.reference:
      value: #cm-v3-administrative-gender
structure map.url:
  value: http://fhir.ch/ig/cda-fhir-maps/StructureMap/CdaToBundle
structure map.version:
  value: 0.3.0
structure map.name:
  value: CdaToBundle
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 document 2020-01-16 Oliver Egger, copyright ahdis ag, Apache License CDA: http://build.fhir.org/ig/ahdis/cda-core-2.0/branches/master/index.html FHIR: http://hl7.org/fhir/r4/
structure map.copyright:
  value: CC-BY-SA-4.0
structure map.structure:
  index: 0
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
    link: http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: ClinicalDocument
structure map.structure:
  index: 1
  structure map.structure.url:
    value: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
    link: http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor
  structure map.structure.mode:
    value: queried
  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: queried
  structure map.structure.alias:
    value: AssignedEntity
structure map.structure:
  index: 3
  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: queried
  structure map.structure.alias:
    value: CustodianOrganization
structure map.structure:
  index: 4
  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: 5
  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: 6
  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: 7
  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: 8
  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: 9
  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: Patient
structure map.structure:
  index: 10
  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: 11
  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.group:
  index: 0
  structure map.group.name:
    value: CdaToBundle
  structure map.group.type mode:
    value: none
  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

value: male

value: equivalent

value: female

value: equivalent

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

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

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
  structure map.group.rule.target.parameter.value string:
    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.name:
  value: cdatobundle
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: ClinicalDocumentToBundle
  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: ClinicalDocumentToBundle
structure map.group.type mode:
  value: none
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: id
  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: id
    structure map.group.rule.target.transform:
      value: uuid
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: identifier
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: cda
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: bundle
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: type
  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: type
    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: document
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: effectiveTime
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: cda
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: vvv
  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: timestamp
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 4
  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: ClinicalDocumentComposition
    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: 5
  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

value: body

value: component

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: $this.code.empty()

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

index: 2
structure map.group.name:
  value: ClinicalDocumentSection
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Section Level Templates _________________________
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: sectionId
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: id
    structure map.group.rule.source.condition:
      value: ($this.root = %cda.id.root) = false
  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: ext
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ChExtEprSectionId
    structure map.group.rule.dependent.variable:
      value: id
      index: 0
    structure map.group.rule.dependent.variable:
      value: ext
      index: 1
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: title
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: title
    structure map.group.rule.source.variable:
      value: t
  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: title
    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: t.dataString
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: cdaText
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: text
    structure map.group.rule.source.variable:
      value: cdaText
  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: text
    structure map.group.rule.target.variable:
      value: fhirText
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: narrativeStatus
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: cdaText
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: fhirText
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: status
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: narrativeText
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: cdaText
      structure map.group.rule.source.variable:
        value: t
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: fhirText
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: div
      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: section
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: section

value: generated

value: t

value: srcSection

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: 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

index: 3
structure map.group.name:
  value: ClinicalDocumentComposition
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Entry Level Templates ________________________ _________________________ Header Level Templates _________________________
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: languageCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: languageCode
    structure map.group.rule.source.variable:
      value: vvv
  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: language
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: identifier
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
    structure map.group.rule.source.condition:
      value: src.setId.exists().not()
  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: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: identifier
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: setId
    structure map.group.rule.source.variable:
      value: vvv
  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: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: status
  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: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: final
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: type
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: title
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: title
    structure map.group.rule.source.variable:
      value: t
  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: title
    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: t.dataString
structure map.group.rule:
  index: 6
  structure map.group.rule.name:
    value: patientRole
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: recordTarget
    structure map.group.rule.source.variable:
      value: recordTarget
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: subject
    structure map.group.rule.source:
      index: 0

value: recordTarget

value: patientRole

value: patient

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: subject
structure map.group.rule.target.variable:
  value: reference
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Reference

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:' + %patientResource.id

index: 0
structure map.group.rule.dependent.name:
  value: ClinicalDocumentPatientRole
structure map.group.rule.dependent.variable:
  value: patient
  index: 0
structure map.group.rule.dependent.variable:
  value: patientResource
  index: 1
structure map.group.rule.dependent.variable:
  value: bundle
  index: 2

index: 7
structure map.group.rule.name:
  value: encompassingEncounter
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: componentOf
  structure map.group.rule.source.variable:
    value: comp
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: encounter
  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: Encounter
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: encounter
  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.rule:
  index: 0
  structure map.group.rule.name:
    value: srcEncounter
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: comp
    structure map.group.rule.source.element:
      value: encompassingEncounter
    structure map.group.rule.source.variable:
      value: srcEnc
  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: encounter
    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:' + %encounter.id
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ClinicalDocumentEncounter
    structure map.group.rule.dependent.variable:
      value: srcEnc
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: encounter
      index: 2

index: 8
structure map.group.rule.name:
  value: effectiveTime
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: effectiveTime
  structure map.group.rule.source.variable:
    value: vvv
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: date
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 9
structure map.group.rule.name:
  value: srcAuthor
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: author
  structure map.group.rule.source.variable:
    value: srcAuthor
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
    structure map.group.rule.target.parameter.value string:
      value: Practitioner
structure map.group.rule.target:
  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: 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: tgt
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: author
  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: evaluate
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: 'urn:uuid:' + %practitioner.id
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: time
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: srcAuthor
    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: reference
    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.rule:
  index: 1
  structure map.group.rule.name:
    value: author
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: srcAuthor
    structure map.group.rule.source.element:
      value: assignedAuthor
    structure map.group.rule.source.variable:
      value: assignedAuthor
  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: assignedAuthor
      structure map.group.rule.source.element:
        value: id
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: practitioner
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: identifier
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: addr
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: assignedAuthor
      structure map.group.rule.source.element:
        value: addr
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: practitioner
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: address
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: telecom
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: assignedAuthor
      structure map.group.rule.source.element:
        value: telecom
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0

value: practitioner

value: variable

value: telecom

value: vvv

value: create

index: 3
structure map.group.rule.name:
  value: name
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: assignedAuthor
  structure map.group.rule.source.element:
    value: assignedPerson
  structure map.group.rule.source.variable:
    value: person
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: person
    structure map.group.rule.source.element:
      value: name
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: practitioner
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: name
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create

index: 4
structure map.group.rule.name:
  value: representedOrganization
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: assignedAuthor
  structure map.group.rule.source.element:
    value: representedOrganization
  structure map.group.rule.source.variable:
    value: srcOrg
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: e2
structure map.group.rule.target:
  index: 1
  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: 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: uuid3
  structure map.group.rule.target.transform:
    value: uuid
structure map.group.rule.target:
  index: 3
  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: uuid3
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: author
  structure map.group.rule.target.variable:
    value: reference2
  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: reference2
  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.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: ClinicalDocumentOrganization
  structure map.group.rule.dependent.variable:
    value: srcOrg
    index: 0
  structure map.group.rule.dependent.variable:
    value: organization
    index: 1

index: 10
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: vvv
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: vvv
  structure map.group.rule.target.transform:
    value: create

index: 11
structure map.group.rule.name:
  value: legalAuth
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: legalAuthenticator
  structure map.group.rule.source.variable:
    value: legalAuth
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
    structure map.group.rule.target.parameter.value string:
      value: Practitioner
structure map.group.rule.target:
  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: 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.rule:
  index: 0
  structure map.group.rule.name:
    value: attester
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: legalAuth
  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: attester
    structure map.group.rule.target.variable:
      value: attester
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: mode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: legalAuth
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: mode
      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: time
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: legalAuth
      structure map.group.rule.source.element:
        value: time
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: time
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: entity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: legalAuth
      structure map.group.rule.source.element:
        value: assignedEntity
      structure map.group.rule.source.variable:
        value: entity
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: party
      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:
      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.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ClinicalDocumentEntityPractitioner
      structure map.group.rule.dependent.variable:
        value: entity
        index: 0
      structure map.group.rule.dependent.variable:
        value: practitioner
        index: 1

value: legal

value: Reference

value: 'urn:uuid:' + %practitioner.id

index: 12
structure map.group.rule.name:
  value: auth
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: authenticator
  structure map.group.rule.source.variable:
    value: auth
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
    structure map.group.rule.target.parameter.value string:
      value: Practitioner
structure map.group.rule.target:
  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: 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.rule:
  index: 0
  structure map.group.rule.name:
    value: attester
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: auth
  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: attester
    structure map.group.rule.target.variable:
      value: attester
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: mode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: auth
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: mode
      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: time
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: auth
      structure map.group.rule.source.element:
        value: time
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: time
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 2
    structure map.group.rule.name:
      value: entity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: auth
      structure map.group.rule.source.element:
        value: assignedEntity
      structure map.group.rule.source.variable:
        value: entity
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: attester
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: party
      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:
      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.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ClinicalDocumentEntityPractitioner
      structure map.group.rule.dependent.variable:
        value: entity
        index: 0
      structure map.group.rule.dependent.variable:
        value: practitioner
        index: 1

value: official

value: Reference

value: 'urn:uuid:' + %practitioner.id

index: 13
structure map.group.rule.name:
  value: cust
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: custodian
  structure map.group.rule.source.variable:
    value: custodian
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: custodian
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: custodian
    structure map.group.rule.source.element:
      value: assignedCustodian
    structure map.group.rule.source.variable:
      value: assignedCustodian
  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: 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: 1
    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: uuid3
    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: uuid3
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: assignedCustodian
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: assignedCustodian
      structure map.group.rule.source.element:
        value: representedCustodianOrganization
      structure map.group.rule.source.variable:
        value: srcOrg
    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: custodian
      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:
      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.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ClinicalDocumentOrganization
      structure map.group.rule.dependent.variable:
        value: srcOrg
        index: 0
      structure map.group.rule.dependent.variable:
        value: organization
        index: 1

value: Reference

value: 'urn:uuid:' + %organization.id

index: 14
structure map.group.rule.name:
  value: documentationOf
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: documentationOf
  structure map.group.rule.source.variable:
    value: docOf
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: docOf
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: docOf
    structure map.group.rule.source.element:
      value: serviceEvent
    structure map.group.rule.source.variable:
      value: serviceEvent
  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: event
    structure map.group.rule.target.variable:
      value: event
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: eventCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: serviceEvent
      structure map.group.rule.source.element:
        value: code
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: event
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: eventTime
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: serviceEvent
      structure map.group.rule.source.element:
        value: effectiveTime
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: event
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: period
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create

index: 15
structure map.group.rule.name:
  value: relatedDoc
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: relatedDocument
  structure map.group.rule.source.variable:
    value: relatedDoc
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: relatesTo
  structure map.group.rule.target.variable:
    value: relates
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: typeCode
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: relatedDoc
    structure map.group.rule.source.element:
      value: typeCode
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: relates
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: parentDoc
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: relatedDoc
    structure map.group.rule.source.element:
      value: parentDocument
    structure map.group.rule.source.variable:
      value: parentDoc
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: setId
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: parentDoc
      structure map.group.rule.source.element:
        value: setId
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: relates
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: targetIdentifier
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create

index: 4
structure map.group.name:
  value: ClinicalDocumentEntityPractitioner
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: AssignedEntity
  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: Practitioner
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: addr
  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: vvv
  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: address
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: telecom
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: telecom
    structure map.group.rule.source.variable:
      value: vvv
  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: telecom
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: assignedPerson
    structure map.group.rule.source.variable:
      value: person
  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: person
      structure map.group.rule.source.element:
        value: name
      structure map.group.rule.source.variable:
        value: vvv
    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: name
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create

index: 5
structure map.group.name:
  value: ClinicalDocumentOrganization
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: CustodianOrganization
  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: Organization
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: name
    structure map.group.rule.source.variable:
      value: v
  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: name
    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: v.other
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: telecom
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: telecom
    structure map.group.rule.source.variable:
      value: vvv
  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: telecom
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: addr
  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: vvv
  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: address
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create

index: 6
structure map.group.name:
  value: ClinicalDocumentPatientRole
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: PatientRole
  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: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  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: identifier
  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: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: identifier
  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: src
      structure map.group.rule.source.element:
        value: id
      structure map.group.rule.source.variable:
        value: id
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: identifier
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: type
      structure map.group.rule.target.variable:
        value: type
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: type
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.variable:
        value: system
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: system
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 1
      structure map.group.rule.name:
        value: code
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
    structure map.group.rule.rule:
      index: 2
      structure map.group.rule.name:
        value: extension
      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: root
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
  structure map.group.rule.documentation:
    value: src.id -> tgt.identifier;
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: addr
  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: vvv
  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: address
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: telecom
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: telecom
    structure map.group.rule.source.variable:
      value: vvv
  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: telecom
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: patient
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: patient
    structure map.group.rule.source.variable:
      value: patient
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: name
    structure map.group.rule.source:
      index: 0

value: src

value: system

value: variable

value: value

value: copy

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

value: src

value: code

value: variable

value: value

value: copy

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

value: id

value: extension

value: extension

value: identifier

value: variable

value: value

value: value

value: value

value: variable

value: value

value: copy

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

value: id

value: root

value: root

value: identifier

value: variable

value: system

value: system

value: system

value: variable

value: value

value: append

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

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

value: patient

value: name

value: vvv

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: name
structure map.group.rule.target.variable:
  value: vvv
structure map.group.rule.target.transform:
  value: create

index: 1
structure map.group.rule.name:
  value: gender
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: administrativeGenderCode
  structure map.group.rule.source.variable:
    value: gender
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: gender
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: gender
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: v
  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: gender
    structure map.group.rule.target.transform:
      value: translate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: v
    structure map.group.rule.target.parameter:
      index: 1
      structure map.group.rule.target.parameter.value string:
        value: #cm-v3-administrative-gender
    structure map.group.rule.target.parameter:
      index: 2
      structure map.group.rule.target.parameter.value string:
        value: code

index: 2
structure map.group.rule.name:
  value: birthDate
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: birthTime
  structure map.group.rule.source.variable:
    value: vvv
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: birthDate
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 3
structure map.group.rule.name:
  value: deceasedBL
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: deceasedInd
  structure map.group.rule.source.variable:
    value: indicator
  structure map.group.rule.source.condition:
    value: patient.deceasedTime.empty()
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: deceased
  structure map.group.rule.target.variable:
    value: bool
  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: boolean
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: boolean
  structure map.group.rule.dependent.variable:
    value: indicator
    index: 0
  structure map.group.rule.dependent.variable:
    value: bool
    index: 1

index: 4
structure map.group.rule.name:
  value: deceasedTime
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: deceasedTime
  structure map.group.rule.source.variable:
    value: vvv
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: deceased
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 5
structure map.group.rule.name:
  value: maritalStatus
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: maritalStatusCode
  structure map.group.rule.source.variable:
    value: vvv
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: maritalStatus
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 6
structure map.group.rule.name:
  value: language
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: patient
  structure map.group.rule.source.element:
    value: languageCommunication
  structure map.group.rule.source.variable:
    value: language
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: communication
  structure map.group.rule.target.variable:
    value: communication
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: communication
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: language
    structure map.group.rule.source.element:
      value: languageCode
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: communication
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: language
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create

index: 4
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: providerOrganization
  structure map.group.rule.source.variable:
    value: org
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: uuid3
  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: uuid3
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: org
  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: managingOrganization
    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.rule:
  index: 1
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: org
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: organization
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: name
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: org
    structure map.group.rule.source.element:
      value: name
    structure map.group.rule.source.variable:
      value: v
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: organization
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: name
    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: v.other
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: telecom
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: org
    structure map.group.rule.source.element:
      value: telecom
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: organization
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: telecom
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: addr
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: org
    structure map.group.rule.source.element:
      value: addr
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: organization
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: address
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create

index: 7
structure map.group.name:
  value: ClinicalDocumentEncounter
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: EncompassingEncounter
  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: tgt
  structure map.group.input.type:
    value: Encounter
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: type
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: effectiveTime
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: effectiveTime
    structure map.group.rule.source.variable:
      value: vvv
  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: period
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: hospitalization
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.condition:
      value: admissionReferralSourceCode.exists() or dischargeDispositionCode.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: hospitalization
    structure map.group.rule.target.variable:
      value: hosp
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: adminReferral
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
      structure map.group.rule.source.element:
        value: admissionReferralSourceCode
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: hosp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: admitSource
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: discDisposition
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
      structure map.group.rule.source.element:
        value: dischargeDispositionCode
      structure map.group.rule.source.variable:
        value: vvv
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: hosp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: dischargeDisposition
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: participant
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: encounterParticipant
    structure map.group.rule.source.variable:
      value: srcPart
  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: participant
    structure map.group.rule.target.variable:
      value: tgtPart
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: typeCode
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: srcPart
      structure map.group.rule.source.element:
        value: typeCode
      structure map.group.rule.source.variable:
        value: code

index: 0
structure map.group.rule.target.context:
  value: tgtPart
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: type
structure map.group.rule.target.transform:
  value: cc
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: http://terminology.hl7.org/CodeSystem/v3-ParticipationType
structure map.group.rule.target.parameter:
  index: 1
  structure map.group.rule.target.parameter.value id:
    value: code

index: 1
structure map.group.rule.name:
  value: time
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: srcPart
  structure map.group.rule.source.element:
    value: time
  structure map.group.rule.source.variable:
    value: vvv
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: tgtPart
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: period
  structure map.group.rule.target.variable:
    value: vvv
  structure map.group.rule.target.transform:
    value: create

index: 2
structure map.group.rule.name:
  value: entity
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: srcPart
  structure map.group.rule.source.element:
    value: assignedEntity
  structure map.group.rule.source.variable:
    value: entity
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
    structure map.group.rule.target.parameter.value string:
      value: Practitioner
structure map.group.rule.target:
  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: 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.rule:
  index: 0
  structure map.group.rule.name:
    value: entry
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: entity
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgtPart
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: individual
    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:' + %practitioner.id
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ClinicalDocumentEntityPractitioner
    structure map.group.rule.dependent.variable:
      value: entity
      index: 0
    structure map.group.rule.dependent.variable:
      value: practitioner
      index: 1

index: 5
structure map.group.rule.name:
  value: location
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: location
  structure map.group.rule.source.variable:
    value: srcLocation
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: facility
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: srcLocation
    structure map.group.rule.source.element:
      value: healthCareFacility
    structure map.group.rule.source.variable:
      value: facility
  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: location
    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: Location
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: location
    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.rule:
    index: 0
    structure map.group.rule.name:
      value: facLocation
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: facility
    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: location
      structure map.group.rule.target.variable:
        value: tgtLocation
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: tgtLocation
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: location
      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:
      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: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: ClinicalDocumentLocation
      structure map.group.rule.dependent.variable:
        value: facility
        index: 0
      structure map.group.rule.dependent.variable:
        value: bundle
        index: 1
      structure map.group.rule.dependent.variable:
        value: location
        index: 2

value: Reference

value: 'urn:uuid:' + %location.id

index: 8
structure map.group.name:
  value: ClinicalDocumentLocation
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: HealthCareFacility
  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: tgt
  structure map.group.input.type:
    value: Location
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: id
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: id
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: identifier
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: code
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: code
    structure map.group.rule.source.variable:
      value: vvv
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: tgt
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: type
    structure map.group.rule.target.variable:
      value: vvv
    structure map.group.rule.target.transform:
      value: create
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: location
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: location
    structure map.group.rule.source.variable:
      value: location
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: addr
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: location
      structure map.group.rule.source.element:
        value: addr
      structure map.group.rule.source.variable:
        value: vvv
    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: address
      structure map.group.rule.target.variable:
        value: vvv
      structure map.group.rule.target.transform:
        value: create
    structure map.group.rule.documentation:
      value: place names are usually stored with no parts location.name as srcName -> tgt.name = cast(srcName, 'string');
  structure map.group.rule.rule:
    index: 1
    structure map.group.rule.name:
      value: org
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: location
      structure map.group.rule.source.element:
        value: serviceProviderOrganization
      structure map.group.rule.source.variable:
        value: srcOrg
    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:
      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: uuid3
      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:
        index: 1
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: organization
      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.dependent:
        index: 0

value: Organization

value: urn:uuid:

value: uuid3

value: srcOrg

value: tgt

value: variable

value: managingOrganization

value: reference

value: create

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

value: reference

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + %organization.id

value: ClinicalDocumentOrganization

value: srcOrg
index: 0

value: organization
index: 1

index: 9
structure map.group.name:
  value: ChExtEprTime
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: source dataEnterer: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.2.7 source author: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.840.1.113883.10.12.102 target: https://build.fhir.org/ig/hl7ch/ch-core//StructureDefinition-ch-ext-epr-time.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: TSDateTime
  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-time
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: dateTime
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: TSDateTime
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: value
      index: 1

index: 10
structure map.group.name:
  value: ChExtEprSectionId
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: https://art-decor.org/art-decor/decor-templates--hl7chcda-?id=2.16.756.5.30.1.1.10.3.45 target: http://build.fhir.org/ig/hl7ch/ch-core/branches/master/StructureDefinition-ch-ext-epr-sectionid.html
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: II
  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-sectionid
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: Identifier
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: II
    structure map.group.rule.dependent.variable:
      value: src
      index: 0
    structure map.group.rule.dependent.variable:
      value: value
      index: 1

index: 11
structure map.group.name:
  value: NarrativeLink
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: _________________________ Template Type not specified ___________________
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: url
  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: url
  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://hl7.org/fhir/StructureDefinition/narrativeLink
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: url
  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: url
  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 id:
        value: url