@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "EducationQuestionnaireResponseToObservation"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap EducationQuestionnaireResponseToObservation</b></p><a name=\"EducationQuestionnaireResponseToObservation\"> </a><a name=\"hcEducationQuestionnaireResponseToObservation\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation<span style=\"color: navy\">\" = \"</span>EducationQuestionnaireResponseToObservation<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Highest Completed Education Q to O</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">\" </span><b>alias </b>QR <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">\" </span><b>alias </b>Obs <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>EducationQuestionnaireResponseToObservation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QR, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Obs<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status = <span style=\"color: blue\">'final'</span> <i>\"setFinalStatus\"</i><span style=\"color: navy\">;</span>#xD;\n  src.identifier<b> as </b><span style=\"color: maroon\">identifier</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier = <span style=\"color: maroon\">identifier</span> <i>\"copyIdentifier\"</i><span style=\"color: navy\">;</span>#xD;\n  src.subject<b> as </b><span style=\"color: maroon\">subject</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject = <span style=\"color: maroon\">subject</span> <i>\"copySubject\"</i><span style=\"color: navy\">;</span>#xD;\n  src.authored<b> as </b><span style=\"color: maroon\">authored</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.effective = <span style=\"color: maroon\">authored</span> <i>\"copyAuthoredToEffective\"</i><span style=\"color: navy\">;</span>#xD;\n  src.authored<b> as </b><span style=\"color: maroon\">authored</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.issued = <span style=\"color: maroon\">authored</span> <i>\"copyAuthoredToIssued\"</i><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'82589-3'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Highest level of education'</span><span style=\"color: navy\">)</span> <i>\"setEducationCode\"</i><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.method = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://snomed.info/sct'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'87982008'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Manual'</span><span style=\"color: navy\">)</span> <i>\"setManualMethod\"</i><span style=\"color: navy\">;</span>#xD;\n  src.id<b> as </b><span style=\"color: maroon\">id</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.derivedFrom = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">reference</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    id<span style=\"color: navy\"><b> -&gt; </b></span>reference.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'QuestionnaireResponse/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">id</span><span style=\"color: navy\">)</span> <i>\"setDerivedFromReference\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setDerivedFrom\"</i><span style=\"color: navy\">;</span>#xD;\n  src.item<b> as </b><span style=\"color: maroon\">educationItem</span><b> where </b>educationItem.linkId = 'highest-completed-education'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-0'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-0'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 0 - Elementarbereich'</span><span style=\"color: navy\">)</span> <i>\"mapIsced0\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-1'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-1'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 1 - Primarbereich'</span><span style=\"color: navy\">)</span> <i>\"mapIsced1\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-2'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-2'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 2 - Sekundarbereich I'</span><span style=\"color: navy\">)</span> <i>\"mapIsced2\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-3'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-3'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 3 - Sekundarbereich II'</span><span style=\"color: navy\">)</span> <i>\"mapIsced3\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-4'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-4'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 4 - Postsekundärer, nicht-tertiärer Bereich'</span><span style=\"color: navy\">)</span> <i>\"mapIsced4\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-5'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 5 - Kurzes tertiäres Bildungsprogramm'</span><span style=\"color: navy\">)</span> <i>\"mapIsced5\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-6'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-6'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 6 - Bachelor- bzw. gleichwertiges Bildungsprogramm'</span><span style=\"color: navy\">)</span> <i>\"mapIsced6\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-7'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-7'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 7 - Master- bzw. gleichwertiges Bildungsprogramm'</span><span style=\"color: navy\">)</span> <i>\"mapIsced7\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'isced-8'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'isced-8'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'ISCED 8 - Doktorat oder gleichwertig'</span><span style=\"color: navy\">)</span> <i>\"mapIsced8\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'unknown'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'unknown'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Weiß nicht'</span><span style=\"color: navy\">)</span> <i>\"mapUnknown\"</i><span style=\"color: navy\">;</span>#xD;\n    educationItem.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>answer.valueCoding.code = 'not-stated'<span style=\"color: navy\"><b> -&gt; </b></span>tgt.valueCodeableConcept = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'not-stated'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Keine Angabe'</span><span style=\"color: navy\">)</span> <i>\"mapNotStated\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"mapEducationItem\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:StructureMap.url [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation"] ;
  fhir:StructureMap.version [ fhir:value "0.1.0"] ;
  fhir:StructureMap.name [ fhir:value "EducationQuestionnaireResponseToObservation"] ;
  fhir:StructureMap.title [ fhir:value "Highest Completed Education Q to O"] ;
  fhir:StructureMap.status [ fhir:value "active"] ;
  fhir:StructureMap.date [ fhir:value "2026-07-01T10:20:10+00:00"^^xsd:dateTime] ;
  fhir:StructureMap.publisher [ fhir:value "The PreNUDGE Consortium"] ;
  fhir:StructureMap.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "The PreNUDGE Consortium" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://prenudge.at" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:ContactDetail.name [ fhir:value "The PreNUDGE Consortium" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://prenudge.at" ] ;
       fhir:ContactPoint.use [ fhir:value "work" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir:value "Highest Completed Education Q to O"] ;
  fhir:StructureMap.structure [
     fhir:index 0 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "QR" ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "Obs" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index 0 ;
     fhir:StructureMap.group.name [ fhir:value "EducationQuestionnaireResponseToObservation" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "src" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "QR" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "tgt" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "Obs" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setFinalStatus" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "status" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "final" ]
         ]
       ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "copyIdentifier" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "identifier" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "identifier" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "identifier" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "identifier" ]
         ]
       ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.rule.name [ fhir:value "copySubject" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "subject" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "subject" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "subject" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "subject" ]
         ]
       ]
     ], [
       fhir:index 3 ;
       fhir:StructureMap.group.rule.name [ fhir:value "copyAuthoredToEffective" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "authored" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "authored" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "effective" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "authored" ]
         ]
       ]
     ], [
       fhir:index 4 ;
       fhir:StructureMap.group.rule.name [ fhir:value "copyAuthoredToIssued" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "authored" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "authored" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "issued" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "authored" ]
         ]
       ]
     ], [
       fhir:index 5 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setEducationCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "code" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "http://loinc.org" ]
         ], [
           fhir:index 1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "82589-3" ]
         ], [
           fhir:index 2 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Highest level of education" ]
         ]
       ]
     ], [
       fhir:index 6 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setManualMethod" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "method" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "http://snomed.info/sct" ]
         ], [
           fhir:index 1 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "87982008" ]
         ], [
           fhir:index 2 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Manual" ]
         ]
       ]
     ], [
       fhir:index 7 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setDerivedFrom" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "id" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "id" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "derivedFrom" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "reference" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
         fhir:StructureMap.group.rule.target.parameter [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Reference" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setDerivedFromReference" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "id" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "reference" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "reference" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "append" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "QuestionnaireResponse/" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "id" ]
           ]
         ]
       ]
     ], [
       fhir:index 8 ;
       fhir:StructureMap.group.rule.name [ fhir:value "mapEducationItem" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "src" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "educationItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "educationItem.linkId = 'highest-completed-education'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced0" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-0'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-0" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 0 - Elementarbereich" ]
           ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced1" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-1'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-1" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 1 - Primarbereich" ]
           ]
         ]
       ], [
         fhir:index 2 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced2" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-2'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-2" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 2 - Sekundarbereich I" ]
           ]
         ]
       ], [
         fhir:index 3 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced3" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-3'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-3" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 3 - Sekundarbereich II" ]
           ]
         ]
       ], [
         fhir:index 4 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced4" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-4'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-4" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 4 - Postsekundärer, nicht-tertiärer Bereich" ]
           ]
         ]
       ], [
         fhir:index 5 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced5" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-5'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-5" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 5 - Kurzes tertiäres Bildungsprogramm" ]
           ]
         ]
       ], [
         fhir:index 6 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced6" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-6'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-6" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 6 - Bachelor- bzw. gleichwertiges Bildungsprogramm" ]
           ]
         ]
       ], [
         fhir:index 7 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced7" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-7'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-7" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 7 - Master- bzw. gleichwertiges Bildungsprogramm" ]
           ]
         ]
       ], [
         fhir:index 8 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapIsced8" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'isced-8'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "isced-8" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ISCED 8 - Doktorat oder gleichwertig" ]
           ]
         ]
       ], [
         fhir:index 9 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapUnknown" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'unknown'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "unknown" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Weiß nicht" ]
           ]
         ]
       ], [
         fhir:index 10 ;
         fhir:StructureMap.group.rule.name [ fhir:value "mapNotStated" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "educationItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "answer.valueCoding.code = 'not-stated'" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "tgt" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "valueCodeableConcept" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "cc" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level" ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "not-stated" ]
           ], [
             fhir:index 2 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Keine Angabe" ]
           ]
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

