map-upper-arm-injection
type: StructureMap
node role: treeRoot
resource.id:
  value: map-upper-arm-injection
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: StructureMap map-upper-arm-injection #xD; map "https://fhir.cognovis.de/praxis/StructureMap/map-upper-arm-injection" = "MapUpperArmInjection"#xD; #xD; // EXAMPLE-ONLY worked StructureMap for the upper-arm injection Job (GOÄ 252). Not a curated production binding discovery artifact. Executed by the bounded R4 StructureMap rule-tree interpreter. Composition/Condition/Observation/Procedure/ChargeItem candidates. QR.subject/.encounter/.author/.authored supply Composition context (never fabricated). ChargeItem.code is Job-fixed GOÄ 252 (http://fhir.de/CodeSystem/bäk/goä#252); definitionCanonical from cid.primary answer.valueUri only. Procedure carries instantiatesCanonical to the Job; basedOn only when a real ServiceRequest exists (separate fixture, not this map). Binding identity: (job-upper-arm-injection|0.90.0, q-upper-arm-injection|0.90.0, map-upper-arm-injection|0.90.0).#xD; #xD; uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias qr as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias bundle as target#xD; #xD; // Bind QuestionnaireResponse.subject/.encounter/.author/.authored (standard QR fields; not duplicated Questionnaire items), then invoke fillCondition / fillDocumentation / fillProcedure / fillChargeItems / fillComposition.#xD; group main(source qr : QuestionnaireResponse, target bundle : Bundle) {#xD; qr -> bundle.type = 'collection' "bundleType";#xD; qr.subject as subjectRef then {#xD; qr.encounter as encRef then {#xD; qr.author as authorRef then {#xD; qr.authored as authoredDt then {#xD; qr.item as diagCodingItem where (linkId = 'diag.icd') then fillCondition(diagCodingItem, bundle, subjectRef) "invokeFillCondition";#xD; qr.item as noteItem where (linkId = 'doc.note') then fillDocumentation(noteItem, bundle, subjectRef) "invokeFillDocumentation";#xD; qr.item as perfItem where (linkId = 'svc.performed' and answer.valueBoolean = true) then fillProcedure(qr, bundle, subjectRef) "invokeFillProced…
structure map.url:
  value: https://fhir.cognovis.de/praxis/StructureMap/map-upper-arm-injection
structure map.identifier:
  index: 0
  identifier.system:
    value: urn:ietf:rfc:3986
  identifier.value:
    value: urn:oid:2.16.840.1.113883.3.7985.43.1
structure map.version:
  value: 0.90.0
structure map.name:
  value: MapUpperArmInjection
structure map.title:
  value: Upper-arm injection Job — QuestionnaireResponse to pre-approval candidate Bundle
structure map.status:
  value: active
structure map.experimental:
  value: true
structure map.date:
  value: 2026-07-29T13:00:36+02:00
structure map.publisher:
  value: cognovis GmbH
structure map.contact:
  index: 0
  contact detail.name:
    value: cognovis GmbH
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.cognovis.de
  contact detail.telecom:
    index: 1
    contact point.system:
      value: email
structure map.description:
  value: EXAMPLE-ONLY worked StructureMap for the upper-arm injection Job (GOÄ 252). Not a curated production binding discovery artifact. Executed by the bounded R4 StructureMap rule-tree interpreter. Composition/Condition/Observation/Procedure/ChargeItem candidates. QR.subject/.encounter/.author/.authored supply Composition context (never fabricated). ChargeItem.code is Job-fixed GOÄ 252 (http://fhir.de/CodeSystem/bäk/goä#252); definitionCanonical from cid.primary answer.valueUri only. Procedure carries instantiatesCanonical to the Job; basedOn only when a real ServiceRequest exists (separate fixture, not this map). Binding identity: (job-upper-arm-injection|0.90.0, q-upper-arm-injection|0.90.0, map-upper-arm-injection|0.90.0).
structure map.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: DE
    coding.display:
      value: Germany
structure map.structure:
  index: 0
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    link: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: qr
structure map.structure:
  index: 1
  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.group:
  index: 0
  structure map.group.name:
    value: main
  structure map.group.type mode:
    value: none
  structure map.group.documentation:
    value: Bind QuestionnaireResponse.subject/.encounter/.author/.authored (standard QR fields; not duplicated Questionnaire items), then invoke fillCondition / fillDocumentation / fillProcedure / fillChargeItems / fillComposition.
  structure map.group.input:
    index: 0
    structure map.group.input.name:
      value: qr
    structure map.group.input.type:
      value: QuestionnaireResponse
    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: bundleType
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: qr
    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:
    index: 1
    structure map.group.rule.name:
      value: bindSubjectFromQr
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: qr
      structure map.group.rule.source.element:
        value: subject
      structure map.group.rule.source.variable:
        value: subjectRef
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: bindEncounterFromQr
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0
structure map.group:
  index: 1
  structure map.group.name:
    value: fillCondition
  structure map.group.type mode:
    value: none
  structure map.group.documentation:
    value: diag.icd answer.valueCoding -> Condition; verificationStatus=unconfirmed; subject from QR.subject.
  structure map.group.input:
    index: 0
    structure map.group.input.name:
      value: diagItem
    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: subjectRef
    structure map.group.input.mode:
      value: source
  structure map.group.rule:
    index: 0
    structure map.group.rule.name:
      value: conditionFromValueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: diagItem
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: ans
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: codingValue
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
      structure map.group.rule.target:
        index: 7
      structure map.group.rule.target:
        index: 8
      structure map.group.rule.target:
        index: 9

value: collection

value: qr

value: encounter

value: encRef

value: bindAuthorFromQr

index: 0
structure map.group.rule.source.context:
  value: qr
structure map.group.rule.source.element:
  value: author
structure map.group.rule.source.variable:
  value: authorRef

index: 0
structure map.group.rule.name:
  value: bindAuthoredFromQr
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
  structure map.group.rule.source.element:
    value: authored
  structure map.group.rule.source.variable:
    value: authoredDt
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: invokeFillCondition
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: diagCodingItem
    structure map.group.rule.source.condition:
      value: linkId = 'diag.icd'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: fillCondition
    structure map.group.rule.dependent.variable:
      value: diagCodingItem
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: subjectRef
      index: 2
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: invokeFillDocumentation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: noteItem
    structure map.group.rule.source.condition:
      value: linkId = 'doc.note'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: fillDocumentation
    structure map.group.rule.dependent.variable:
      value: noteItem
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: subjectRef
      index: 2
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: invokeFillProcedure
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: perfItem
    structure map.group.rule.source.condition:
      value: linkId = 'svc.performed' and answer.valueBoolean = true
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: fillProcedure
    structure map.group.rule.dependent.variable:
      value: qr
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: subjectRef
      index: 2
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: invokeFillChargeItems
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.variable:
      value: qrForCharges
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: fillChargeItems
    structure map.group.rule.dependent.variable:
      value: qrForCharges
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: subjectRef
      index: 2
    structure map.group.rule.dependent.variable:
      value: encRef
      index: 3
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: invokeFillComposition
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.variable:
      value: qrForComp
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: fillComposition
    structure map.group.rule.dependent.variable:
      value: qrForComp
      index: 0
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 1
    structure map.group.rule.dependent.variable:
      value: subjectRef
      index: 2
    structure map.group.rule.dependent.variable:
      value: encRef
      index: 3
    structure map.group.rule.dependent.variable:
      value: authorRef
      index: 4
    structure map.group.rule.dependent.variable:
      value: authoredDt
      index: 5

value: ans

value: Coding

value: value

value: coding

value: bundle

value: variable

value: entry

value: condEntry

value: create

value: condEntry

value: variable

value: fullUrl

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: urn:uuid:00000000-0000-4000-8000-000000000001

value: condEntry

value: variable

value: resource

value: cond

value: create

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

value: cond

value: variable

value: code

value: condCode

value: create

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

value: condCode

value: variable

value: coding

value: copy

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

value: cond

value: variable

value: verificationStatus

value: ver

value: create

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

value: ver

value: variable

value: coding

value: verCoding

value: create

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

value: verCoding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/condition-ver-status

value: verCoding

value: variable

value: code

value: copy

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

value: cond

value: variable

value: clinicalStatus

value: clin

value: create

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

index: 10
structure map.group.rule.target.context:
  value: clin
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: coding
structure map.group.rule.target.variable:
  value: clinCoding
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: Coding

index: 11
structure map.group.rule.target.context:
  value: clinCoding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: system
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: http://terminology.hl7.org/CodeSystem/condition-clinical

index: 12
structure map.group.rule.target.context:
  value: clinCoding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: active

index: 13
structure map.group.rule.target.context:
  value: cond
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
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: subjectRef

index: 2
structure map.group.name:
  value: fillDocumentation
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: doc.note answer.valueString -> Observation.value (serialized as valueString) status=preliminary.
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: noteItem
  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: subjectRef
  structure map.group.input.mode:
    value: source
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: obsFromValueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: noteItem
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: ans
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: stringValue
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: ans
      structure map.group.rule.source.type:
        value: string
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: text
    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: obsEntry
      structure map.group.rule.target.transform:
        value: create
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: obsEntry
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: obsEntry
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: obs
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: obs
      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:
      index: 4
      structure map.group.rule.target.context:
        value: obs
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: obsCode
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: obsCode
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: obsCoding
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: obsCoding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: obsCoding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: obs
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: obs
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: subject
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: urn:uuid:00000000-0000-4000-8000-000000000002

value: Observation

value: preliminary

value: CodeableConcept

value: Coding

value: 371524004

value: text

value: subjectRef

index: 3
structure map.group.name:
  value: fillProcedure
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: bodySiteFromValueCoding + SNOMED laterality; status=preparation; reasonReference from diag.condition.
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: qr
  structure map.group.input.type:
    value: QuestionnaireResponse
  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: subjectRef
  structure map.group.input.mode:
    value: source
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: bodySiteFromValueCoding
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: siteItem
    structure map.group.rule.source.condition:
      value: linkId = 'site.bodySite'
  structure map.group.rule.source:
    index: 1
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: latItem
    structure map.group.rule.source.condition:
      value: linkId = 'site.laterality'
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: siteAnswer
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: siteItem
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: siteAns
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: siteValue
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0

value: siteAns

value: Coding

value: value

value: siteCoding

value: latAnswer

index: 0
structure map.group.rule.source.context:
  value: latItem
structure map.group.rule.source.element:
  value: answer
structure map.group.rule.source.variable:
  value: latAns

index: 0
structure map.group.rule.name:
  value: latValue
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: latAns
  structure map.group.rule.source.type:
    value: Coding
  structure map.group.rule.source.element:
    value: value
  structure map.group.rule.source.variable:
    value: latCoding
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: procEntry
  structure map.group.rule.target.transform:
    value: create
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: procEntry
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: fullUrl
  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: urn:uuid:00000000-0000-4000-8000-000000000003
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: procEntry
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: resource
  structure map.group.rule.target.variable:
    value: proc
  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: Procedure
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: proc
  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: preparation
structure map.group.rule.target:
  index: 4
  structure map.group.rule.target.context:
    value: proc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.variable:
    value: procCode
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: CodeableConcept
structure map.group.rule.target:
  index: 5
  structure map.group.rule.target.context:
    value: procCode
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: coding
  structure map.group.rule.target.variable:
    value: procCoding
  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: Coding
structure map.group.rule.target:
  index: 6
  structure map.group.rule.target.context:
    value: procCoding
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: system
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: http://snomed.info/sct
structure map.group.rule.target:
  index: 7
  structure map.group.rule.target.context:
    value: procCoding
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: code
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: 59108006
structure map.group.rule.target:
  index: 8
  structure map.group.rule.target.context:
    value: proc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: subject
  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: subjectRef
structure map.group.rule.target:
  index: 9
  structure map.group.rule.target.context:
    value: proc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: instantiatesCanonical
  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: https://fhir.cognovis.de/praxis/PlanDefinition/job-upper-arm-injection|0.90.0
structure map.group.rule.target:
  index: 10
  structure map.group.rule.target.context:
    value: proc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: bodySite
  structure map.group.rule.target.variable:
    value: bs
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: CodeableConcept
structure map.group.rule.target:
  index: 11
  structure map.group.rule.target.context:
    value: bs
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: coding
  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: siteCoding
structure map.group.rule.target:
  index: 12
  structure map.group.rule.target.context:
    value: bs
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: coding
  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: latCoding

index: 0
structure map.group.rule.name:
  value: reasonFromConditionRef
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: diagRefItem
  structure map.group.rule.source.condition:
    value: linkId = 'diag.condition'
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: diagRefAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: diagRefItem
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: drAns
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: diagRefValue
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: drAns
      structure map.group.rule.source.type:
        value: Reference
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: reasonRef
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: proc
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reasonReference
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: reasonRef

index: 4
structure map.group.name:
  value: fillChargeItems
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: One ChargeItem per runtime contract (cid.primary answer.valueUri). ChargeItem.code is the Job-fixed GOÄ 252 Coding (http://fhir.de/CodeSystem/bäk/goä), never derived from CID identity or service codes. context from QR.encounter; subject from QR.subject; 1:n service lineage when performed; supportingInformation from diag.condition.
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: qr
  structure map.group.input.type:
    value: QuestionnaireResponse
  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: subjectRef
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: encRef
  structure map.group.input.mode:
    value: source
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: primaryFromValueUri
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: cidItem
    structure map.group.rule.source.condition:
      value: linkId = 'cid.primary'
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: cidAnswer
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: cidItem
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: cidAns
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: cidValue
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
      structure map.group.rule.target:
        index: 7
      structure map.group.rule.target:
        index: 8
      structure map.group.rule.target:
        index: 9
      structure map.group.rule.target:
        index: 10
      structure map.group.rule.target:
        index: 11
      structure map.group.rule.target:
        index: 12
      structure map.group.rule.target:
        index: 13
      structure map.group.rule.rule:
        index: 0
      structure map.group.rule.rule:
        index: 1
      structure map.group.rule.rule:
        index: 2

value: cidAns

value: uri

value: value

value: primaryCid

value: bundle

value: variable

value: entry

value: chg1Entry

value: create

value: chg1Entry

value: variable

value: fullUrl

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: urn:uuid:00000000-0000-4000-8000-000000000004

value: chg1Entry

value: variable

value: resource

value: chg1

value: create

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

value: chg1

value: variable

value: status

value: copy

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

value: chg1

value: variable

value: subject

value: copy

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

value: chg1

value: variable

value: context

value: copy

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

value: chg1

value: variable

value: code

value: chgCode

value: create

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

value: chgCode

value: variable

value: coding

value: fixedCoding

value: create

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

value: fixedCoding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.de/CodeSystem/bäk/goä

value: fixedCoding

value: variable

value: code

value: copy

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

value: fixedCoding

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Injektion, s.c./s.m./i.c./i.m.

value: chg1

value: variable

value: definitionCanonical

value: copy

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

value: chg1

value: variable

value: quantity

value: qty

value: create

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

value: qty

value: variable

value: value

value: copy

index: 0
structure map.group.rule.target.parameter.value decimal:
  value: 1

value: moneyFromParts

index: 0
structure map.group.rule.source.context:
  value: qr
structure map.group.rule.source.element:
  value: item
structure map.group.rule.source.variable:
  value: amtItem
structure map.group.rule.source.condition:
  value: linkId = 'fee.amount'

index: 1
structure map.group.rule.source.context:
  value: qr
structure map.group.rule.source.element:
  value: item
structure map.group.rule.source.variable:
  value: curItem
structure map.group.rule.source.condition:
  value: linkId = 'fee.currency'

index: 0
structure map.group.rule.name:
  value: amountAnswer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: amtItem
  structure map.group.rule.source.element:
    value: answer
  structure map.group.rule.source.variable:
    value: amtAns
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: amountValue
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: amtAns
    structure map.group.rule.source.type:
      value: decimal
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: amount
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: currencyAnswer
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: curItem
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: curAns
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: currencyValue
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.rule:
        index: 0

value: curAns

value: Coding

value: value

value: curCoding

value: currencyCode

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

index: 0
structure map.group.rule.target.context:
  value: chg1
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: priceOverride
structure map.group.rule.target.variable:
  value: money
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: Money

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

index: 2
structure map.group.rule.target.context:
  value: money
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: currency
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: currencyCode

value: serviceWhenPerformedPrimary

index: 0
structure map.group.rule.source.context:
  value: qr
structure map.group.rule.source.element:
  value: item
structure map.group.rule.source.variable:
  value: perfItem
structure map.group.rule.source.condition:
  value: linkId = 'svc.performed' and answer.valueBoolean = true

index: 0
structure map.group.rule.target.context:
  value: chg1
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: service
structure map.group.rule.target.variable:
  value: svcProc
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: svcProc
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:00000000-0000-4000-8000-000000000003

index: 2
structure map.group.rule.target.context:
  value: chg1
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: service
structure map.group.rule.target.variable:
  value: svcObs
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: 3
structure map.group.rule.target.context:
  value: svcObs
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:00000000-0000-4000-8000-000000000002

value: supportingInfoFromConditionRef

index: 0
structure map.group.rule.source.context:
  value: qr
structure map.group.rule.source.element:
  value: item
structure map.group.rule.source.variable:
  value: diagRefItem2
structure map.group.rule.source.condition:
  value: linkId = 'diag.condition'

index: 0
structure map.group.rule.name:
  value: dr2Answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: diagRefItem2
  structure map.group.rule.source.element:
    value: answer
  structure map.group.rule.source.variable:
    value: dr2Ans
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: dr2Value
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: dr2Ans
    structure map.group.rule.source.type:
      value: Reference
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: reasonRef2
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: chg1
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: supportingInformation
    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: reasonRef2

index: 5
structure map.group.name:
  value: fillComposition
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: Composition proposal (status=preliminary). subject/encounter/author/date from QR.subject/.encounter/.author/.authored only — never fabricated. Sections Reference generated Observation/ChargeItem UUIDs; optional Procedure/Condition sections when those outputs are produced.
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: qr
  structure map.group.input.type:
    value: QuestionnaireResponse
  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: subjectRef
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: encRef
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: authorRef
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 5
  structure map.group.input.name:
    value: authoredDt
  structure map.group.input.mode:
    value: source
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: compositionShell
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
  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: compEntry
    structure map.group.rule.target.transform:
      value: create
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: compEntry
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: fullUrl
    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: urn:uuid:00000000-0000-4000-8000-000000000006
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: compEntry
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: resource
    structure map.group.rule.target.variable:
      value: comp
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Composition
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: comp
    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: preliminary
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: comp
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: type
    structure map.group.rule.target.variable:
      value: compType
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: CodeableConcept
  structure map.group.rule.target:
    index: 5
    structure map.group.rule.target.context:
      value: compType
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: coding
    structure map.group.rule.target.variable:
      value: compTypeCoding
    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: Coding
  structure map.group.rule.target:
    index: 6
    structure map.group.rule.target.context:
      value: compTypeCoding
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: system
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://loinc.org
  structure map.group.rule.target:
    index: 7
    structure map.group.rule.target.context:
      value: compTypeCoding
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 11506-3
  structure map.group.rule.target:
    index: 8
    structure map.group.rule.target.context:
      value: compTypeCoding
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: display
    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: Progress note
  structure map.group.rule.target:
    index: 9
    structure map.group.rule.target.context:
      value: comp
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: title
    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: Upper-arm injection visit - pre-approval proposal
  structure map.group.rule.target:
    index: 10
    structure map.group.rule.target.context:
      value: comp

value: variable

value: subject

value: copy

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

index: 11
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: encounter
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: encRef

index: 12
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: author
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: authorRef

index: 13
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: date
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: authoredDt

index: 14
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: section
structure map.group.rule.target.variable:
  value: secDoc
structure map.group.rule.target.transform:
  value: create

index: 15
structure map.group.rule.target.context:
  value: secDoc
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: title
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: Documentation

index: 16
structure map.group.rule.target.context:
  value: secDoc
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: docEntry
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: 17
structure map.group.rule.target.context:
  value: docEntry
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:00000000-0000-4000-8000-000000000002

index: 18
structure map.group.rule.target.context:
  value: comp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: section
structure map.group.rule.target.variable:
  value: secBill
structure map.group.rule.target.transform:
  value: create

index: 19
structure map.group.rule.target.context:
  value: secBill
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: title
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: Billing proposal

index: 20
structure map.group.rule.target.context:
  value: secBill
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: billEntry
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: 21
structure map.group.rule.target.context:
  value: billEntry
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: urn:uuid:00000000-0000-4000-8000-000000000004

index: 0
structure map.group.rule.name:
  value: sectionProcedureWhenPerformed
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: perfItem
  structure map.group.rule.source.condition:
    value: linkId = 'svc.performed' and answer.valueBoolean = true
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: section
  structure map.group.rule.target.variable:
    value: secProc
  structure map.group.rule.target.transform:
    value: create
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: secProc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: title
  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: Procedure proposal
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: secProc
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: procEntryRef
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Reference
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: procEntryRef
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:00000000-0000-4000-8000-000000000003

index: 1
structure map.group.rule.name:
  value: sectionDiagnosisWhenCoding
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: diagCodingItem
  structure map.group.rule.source.condition:
    value: linkId = 'diag.icd'
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: comp
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: section
  structure map.group.rule.target.variable:
    value: secDx
  structure map.group.rule.target.transform:
    value: create
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: secDx
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: title
  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: Diagnosis proposal
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: secDx
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: dxEntry
  structure map.group.rule.target.transform:
    value: create
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: Reference
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: dxEntry
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: reference
  structure map.group.rule.target.transform:
    value: copy
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:00000000-0000-4000-8000-000000000001