PreNUDGE FHIR® IG for Data Provider / Data from Apps (R4)
0.1.0 - ci-build

PreNUDGE FHIR® IG for Data Provider / Data from Apps (R4) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

StructureMap: Highest Completed Education Q to O

Official URL: https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation Version: 0.1.0
Active as of 2026-08-13 Responsible: The PreNUDGE Consortium Computable Name: EducationQuestionnaireResponseToObservation

Highest Completed Education Q to O

map "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/EducationQuestionnaireResponseToObservation" = "EducationQuestionnaireResponseToObservation"

// Highest Completed Education Q to O

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QR as source
uses "http://hl7.org/fhir/StructureDefinition/Observation" alias Obs as target

group EducationQuestionnaireResponseToObservation(source src : QR, target tgt : Obs) {
  src -> tgt.status = 'final' "setFinalStatus";
  src.identifier as identifier -> tgt.identifier = identifier "copyIdentifier";
  src.subject as subject -> tgt.subject = subject "copySubject";
  src.authored as authored -> tgt.effective = authored "copyAuthoredToEffective";
  src.authored as authored -> tgt.issued = authored "copyAuthoredToIssued";
  src -> tgt.code = cc('http://loinc.org', '82589-3', 'Highest level of education') "setEducationCode";
  src -> tgt.method = cc('http://snomed.info/sct', '87982008', 'Manual') "setManualMethod";
  src.id as id -> tgt.derivedFrom = create('Reference') as reference then {
    id -> reference.reference = append('QuestionnaireResponse/', id) "setDerivedFromReference";
  } "setDerivedFrom";
  src.item as educationItem where (educationItem.linkId = 'highest-completed-education') then {
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-1') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-1', 'ISCED 1: Volksschule') "mapIsced1";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-2') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-2', 'ISCED 2: Hauptschule, Mittelschulen, Unterstufen von AHS') "mapIsced2";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-3a') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-3a', 'ISCED 3a: Polytechnische Schule') "mapIsced3a";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-3b') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-3b', 'ISCED 3b: Berufsbildende mittlere Schulen (HASCH, Fachschulen)') "mapIsced3b";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-3c') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-3c', 'ISCED 3c: Berufsbildende höhere Schulen (HAK, HBLA, HTL) und AHS-Oberstufe') "mapIsced3c";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-4') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-4', 'ISCED 4: Lehre mit Matura, Gesundheits- und Krankenpflegeschule (nicht-tertiär), Meister- oder Diplomprüfung') "mapIsced4";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-5') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-5', 'ISCED 5: Kolleg, tertiäre Hebammenakademien bzw. medizinisch-technische Ausbildungen im Kurzzyklus') "mapIsced5";
    educationItem.answer as answer where (answer.valueCoding.code = 'isced-6-8') -> tgt.valueCodeableConcept = cc('https://fhir.hl7.at/prenudge/appdata/r4/CodeSystem/prenudge-isced-2011-education-level', 'isced-6-8', 'ISCED 6–8: Hochschulabschlüsse (Bachelor, Master, Doktor)') "mapIsced6To8";
  } "mapEducationItem";
}