Pss10QuestionnaireResponseToObservation
type: StructureMap
node role: treeRoot
resource.id:
  value: Pss10QuestionnaireResponseToObservation
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: StructureMap Pss10QuestionnaireResponseToObservation #xD; map "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/Pss10QuestionnaireResponseToObservation" = "Pss10QuestionnaireResponseToObservation"#xD; #xD; // PSS-10 Q score to O score#xD; #xD; uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QR as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Observation" alias Obs as target#xD; #xD; imports "http://hl7.org/fhir/StructureMap/*"#xD; imports "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase"#xD; #xD; group Pss10QuestionnaireResponseToObservation(source src : QR, target tgt : Obs) {#xD; src then SetObservationBase(src, tgt) "Base";#xD; src -> tgt.meta as meta, meta.profile = 'https://fhir.hl7.at/prenudge/appdata/r4/StructureDefinition/at-prenudge-pss10-score-observation' "SetProfile";#xD; // LOINC 106860-0: Perceived stress scale-10 total score [PSS-10]#xD; src -> tgt.code = cc('http://loinc.org', '106860-0', 'Perceived stress scale-10 total score [PSS-10]') "SetCode";#xD; src.authored as authored -> tgt.effectiveDateTime = create('dateTime') as dt, dt.value = authored "SetEffective";#xD; src.item as pss10Group where linkId = 'pss10' then {#xD; // Map individual item codings → Observation components (raw categorical answers)#xD; pss10Group.item as q1 where linkId = 'pss10-q1' then MapPss10Q1(q1, tgt) "MapQ1";#xD; pss10Group.item as q2 where linkId = 'pss10-q2' then MapPss10Q2(q2, tgt) "MapQ2";#xD; pss10Group.item as q3 where linkId = 'pss10-q3' then MapPss10Q3(q3, tgt) "MapQ3";#xD; pss10Group.item as q4 where linkId = 'pss10-q4' then MapPss10Q4(q4, tgt) "MapQ4";#xD; pss10Group.item as q5 where linkId = 'pss10-q5' then MapPss10Q5(q5, tgt) "MapQ5";#xD; pss10Group.item as q6 where linkId = 'pss10-q6' then MapPss10Q6(q6, tgt) "MapQ6";#xD; pss10Group.item as q7 where linkId = 'pss10-q7' then MapPss10Q7(q7, tgt) "MapQ7";#xD; pss10Group.item as q8 where linkId = 'pss10-q8'…
structure map.url:
  value: https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/Pss10QuestionnaireResponseToObservation
structure map.version:
  value: 0.1.0
structure map.name:
  value: Pss10QuestionnaireResponseToObservation
structure map.title:
  value: PSS-10 Q score to O score
structure map.status:
  value: active
structure map.date:
  value: 2026-07-01T10:20:10+00:00
structure map.publisher:
  value: The PreNUDGE Consortium
structure map.contact:
  index: 0
  contact detail.name:
    value: The PreNUDGE Consortium
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://prenudge.at
structure map.contact:
  index: 1
  contact detail.name:
    value: The PreNUDGE Consortium
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://prenudge.at
    contact point.use:
      value: work
structure map.description:
  value: PSS-10 Q score to O score
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/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Obs
structure map.import:
  value: http://hl7.org/fhir/StructureMap/*
  index: 0
  link: http://hl7.org/fhir/StructureMap/*
structure map.import:
  value: https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase
  index: 1
  link: https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase
structure map.group:
  index: 0
  structure map.group.name:
    value: Pss10QuestionnaireResponseToObservation
  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: QR
    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: Obs
    structure map.group.input.mode:
      value: target
  structure map.group.rule:
    index: 0
    structure map.group.rule.name:
      value: Base
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
    structure map.group.rule.dependent:
      index: 0
      structure map.group.rule.dependent.name:
        value: SetObservationBase
      structure map.group.rule.dependent.variable:
        value: src
        index: 0
      structure map.group.rule.dependent.variable:
        value: tgt
        index: 1
  structure map.group.rule:
    index: 1
    structure map.group.rule.name:
      value: SetProfile
    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: meta
      structure map.group.rule.target.variable:
        value: meta
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: meta
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: profile
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule:
    index: 2
    structure map.group.rule.name:
      value: SetCode
    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: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
  structure map.group.rule:
    index: 3
    structure map.group.rule.name:
      value: SetEffective
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: src
      structure map.group.rule.source.element:
        value: authored
      structure map.group.rule.source.variable:
        value: authored
    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: effectiveDateTime
      structure map.group.rule.target.variable:
        value: dt
      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: dt
      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

value: 106860-0

value: Perceived stress scale-10 total score [PSS-10]

value: dateTime

value: authored

index: 4
structure map.group.rule.name:
  value: ProcessPss10
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: pss10Group
  structure map.group.rule.source.condition:
    value: linkId = 'pss10'
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: MapQ1
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q1
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q1'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q1
    structure map.group.rule.dependent.variable:
      value: q1
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 1
  structure map.group.rule.name:
    value: MapQ2
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q2
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q2'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q2
    structure map.group.rule.dependent.variable:
      value: q2
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 2
  structure map.group.rule.name:
    value: MapQ3
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q3
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q3'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q3
    structure map.group.rule.dependent.variable:
      value: q3
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 3
  structure map.group.rule.name:
    value: MapQ4
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q4
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q4'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q4
    structure map.group.rule.dependent.variable:
      value: q4
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 4
  structure map.group.rule.name:
    value: MapQ5
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q5
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q5'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q5
    structure map.group.rule.dependent.variable:
      value: q5
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 5
  structure map.group.rule.name:
    value: MapQ6
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q6
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q6'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q6
    structure map.group.rule.dependent.variable:
      value: q6
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 6
  structure map.group.rule.name:
    value: MapQ7
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q7
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q7'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q7
    structure map.group.rule.dependent.variable:
      value: q7
      index: 0
    structure map.group.rule.dependent.variable:
      value: tgt
      index: 1
structure map.group.rule.rule:
  index: 7
  structure map.group.rule.name:
    value: MapQ8
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: pss10Group
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: q8
    structure map.group.rule.source.condition:
      value: linkId = 'pss10-q8'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: MapPss10Q8
    structure map.group.rule.dependent.variable:
      value: q8
      index: 0

value: tgt
index: 1

index: 8
structure map.group.rule.name:
  value: MapQ9
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: pss10Group
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: q9
  structure map.group.rule.source.condition:
    value: linkId = 'pss10-q9'
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MapPss10Q9
  structure map.group.rule.dependent.variable:
    value: q9
    index: 0
  structure map.group.rule.dependent.variable:
    value: tgt
    index: 1

index: 9
structure map.group.rule.name:
  value: MapQ10
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: pss10Group
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: q10
  structure map.group.rule.source.condition:
    value: linkId = 'pss10-q10'
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MapPss10Q10
  structure map.group.rule.dependent.variable:
    value: q10
    index: 0
  structure map.group.rule.dependent.variable:
    value: tgt
    index: 1

index: 10
structure map.group.rule.name:
  value: MapTotal
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: pss10Group
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: totalItem
  structure map.group.rule.source.condition:
    value: linkId = 'pss10-total-score'
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: MapPss10TotalScore
  structure map.group.rule.dependent.variable:
    value: totalItem
    index: 0
  structure map.group.rule.dependent.variable:
    value: tgt
    index: 1

index: 1
structure map.group.name:
  value: MapPss10Q1
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q1

value: PSS-10 Item 1

value: CodeableConcept

value: vc

index: 2
structure map.group.name:
  value: MapPss10Q2
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q2

value: PSS-10 Item 2

value: CodeableConcept

value: vc

index: 3
structure map.group.name:
  value: MapPss10Q3
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q3

value: PSS-10 Item 3

value: CodeableConcept

value: vc

index: 4
structure map.group.name:
  value: MapPss10Q4
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q4

value: PSS-10 Item 4 (positiv)

value: CodeableConcept

value: vc

index: 5
structure map.group.name:
  value: MapPss10Q5
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q5

value: PSS-10 Item 5 (positiv)

value: CodeableConcept

value: vc

index: 6
structure map.group.name:
  value: MapPss10Q6
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q6

value: PSS-10 Item 6

value: CodeableConcept

value: vc

index: 7
structure map.group.name:
  value: MapPss10Q7
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q7

value: PSS-10 Item 7 (positiv)

value: CodeableConcept

value: vc

index: 8
structure map.group.name:
  value: MapPss10Q8
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q8

value: PSS-10 Item 8 (positiv)

value: CodeableConcept

value: vc

index: 9
structure map.group.name:
  value: MapPss10Q9
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q9

value: PSS-10 Item 9

value: CodeableConcept

value: vc

index: 10
structure map.group.name:
  value: MapPss10Q10
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: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: SetComponent
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueCoding
      structure map.group.rule.source.variable:
        value: vc
    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: component
      structure map.group.rule.target.variable:
        value: comp
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: cc
      structure map.group.rule.target.parameter:
        index: 0
      structure map.group.rule.target.parameter:
        index: 1
      structure map.group.rule.target.parameter:
        index: 2
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: comp
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: cc2
      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: cc2
      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

value: pss10-q10

value: PSS-10 Item 10

value: CodeableConcept

value: vc

index: 11
structure map.group.name:
  value: MapPss10TotalScore
structure map.group.type mode:
  value: none
structure map.group.documentation:
  value: Pre-computed integer total score from the hidden pss10-total-score QR item. Two-level .value unwrap (integer) — MaLaC-HD safe pattern (no evaluate()).
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: QR
  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: Obs
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: ProcessAnswer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: ExtractValue
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.element:
        value: valueInteger
      structure map.group.rule.source.variable:
        value: val
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: SetQuantity
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4

value: val

value: value

value: numVal

value: tgt

value: variable

value: value

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 id:
  value: numVal

value: qty

value: variable

value: unit

value: copy

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

value: qty

value: variable

value: system

value: copy

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

value: qty

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: {score}