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
| Active as of 2026-07-23 |
@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 -------------------------------------------------------------------
<http://hl7.org/fhir/StructureMap/QuestionnaireResponseToObservationBase> a fhir:StructureMap ;
fhir:nodeRole fhir:treeRoot ;
fhir:Resource.id [ fhir:value "QuestionnaireResponseToObservationBase"] ;
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 QuestionnaireResponseToObservationBase</b></p><a name=\"QuestionnaireResponseToObservationBase\"> </a><a name=\"hcQuestionnaireResponseToObservationBase\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase<span style=\"color: navy\">\" = \"</span>QuestionnaireResponseToObservationBase<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Shared base for 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>SetObservationBase<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> <span style=\"color: navy\">// </span><span style=\"color: green\">Fixed values</span>#xD;\n src<span style=\"color: navy\"><b> -> </b></span>tgt.status = <span style=\"color: blue\">'final'</span> <i>\"SetStatus\"</i><span style=\"color: navy\">;</span>#xD;\n src<span style=\"color: navy\"><b> -> </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>\"SetMethod\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Copy identifier from QuestionnaireResponse to Observation</span>#xD;\n src.identifier<b> as </b><span style=\"color: maroon\">srcId</span><span style=\"color: navy\"><b> -> </b></span>tgt.identifier = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Identifier'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tgtId</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> srcId.system<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgtId.system = <span style=\"color: maroon\">s</span> <i>\"CopyIdSystem\"</i><span style=\"color: navy\">;</span>#xD;\n srcId.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgtId.value = <span style=\"color: maroon\">v</span> <i>\"CopyIdValue\"</i><span style=\"color: navy\">;</span>#xD;\n srcId.use<b> as </b><span style=\"color: maroon\">u</span><span style=\"color: navy\"><b> -> </b></span>tgtId.use = <span style=\"color: maroon\">u</span> <i>\"CopyIdUse\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"CopyIdentifier\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Set derivedFrom reference back to the QuestionnaireResponse</span>#xD;\n src.id<b> as </b><span style=\"color: maroon\">srcRefId</span><span style=\"color: navy\"><b> -> </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\">ref</span><span style=\"color: navy\">, </span> ref.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'QuestionnaireResponse/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">srcRefId</span><span style=\"color: navy\">)</span> <i>\"SetDerivedFrom\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Subject reference</span>#xD;\n src.subject<b> as </b><span style=\"color: maroon\">subject</span><span style=\"color: navy\"><b> -> </b></span>tgt.subject = <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\">ref</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span> subject.reference<b> as </b><span style=\"color: maroon\">r</span><span style=\"color: navy\"><b> -> </b></span>ref.reference = <span style=\"color: maroon\">r</span> <i>\"CopySubjectRef\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">}</span> <i>\"SetSubject\"</i><span style=\"color: navy\">;</span>#xD;\n <span style=\"color: navy\">// </span><span style=\"color: green\">Instance creation datetime</span>#xD;\n src.authored<b> as </b><span style=\"color: maroon\">authored</span><span style=\"color: navy\"><b> -> </b></span>tgt.issued = <span style=\"color: maroon\">authored</span> <i>\"SetEffective\"</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/QuestionnaireResponseToObservationBase"] ;
fhir:StructureMap.version [ fhir:value "0.1.0"] ;
fhir:StructureMap.name [ fhir:value "QuestionnaireResponseToObservationBase"] ;
fhir:StructureMap.title [ fhir:value "Shared base for Q to O"] ;
fhir:StructureMap.status [ fhir:value "active"] ;
fhir:StructureMap.date [ fhir:value "2026-07-23T14:49:55+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 "Shared base for 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 "SetObservationBase" ] ;
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 "SetStatus" ] ;
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:StructureMap.group.rule.documentation [ fhir:value "Fixed values" ]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.name [ fhir:value "SetMethod" ] ;
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 2 ;
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 "srcId" ]
] ;
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.variable [ fhir:value "tgtId" ] ;
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 "Identifier" ]
]
] ;
fhir:StructureMap.group.rule.rule [
fhir:index 0 ;
fhir:StructureMap.group.rule.name [ fhir:value "CopyIdSystem" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcId" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "system" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "s" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgtId" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "system" ] ;
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 "s" ]
]
]
], [
fhir:index 1 ;
fhir:StructureMap.group.rule.name [ fhir:value "CopyIdValue" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcId" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "v" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgtId" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "value" ] ;
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 "v" ]
]
]
], [
fhir:index 2 ;
fhir:StructureMap.group.rule.name [ fhir:value "CopyIdUse" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "srcId" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "use" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "u" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "tgtId" ] ;
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
fhir:StructureMap.group.rule.target.element [ fhir:value "use" ] ;
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 "u" ]
]
]
] ;
fhir:StructureMap.group.rule.documentation [ fhir:value "Copy identifier from QuestionnaireResponse to Observation" ]
], [
fhir:index 3 ;
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 "srcRefId" ]
] ;
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 "ref" ] ;
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:index 1 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "ref" ] ;
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 "srcRefId" ]
]
] ;
fhir:StructureMap.group.rule.documentation [ fhir:value "Set derivedFrom reference back to the QuestionnaireResponse" ]
], [
fhir:index 4 ;
fhir:StructureMap.group.rule.name [ fhir:value "SetSubject" ] ;
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.variable [ fhir:value "ref" ] ;
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 "CopySubjectRef" ] ;
fhir:StructureMap.group.rule.source [
fhir:index 0 ;
fhir:StructureMap.group.rule.source.context [ fhir:value "subject" ] ;
fhir:StructureMap.group.rule.source.element [ fhir:value "reference" ] ;
fhir:StructureMap.group.rule.source.variable [ fhir:value "r" ]
] ;
fhir:StructureMap.group.rule.target [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.context [ fhir:value "ref" ] ;
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 "copy" ] ;
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0 ;
fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "r" ]
]
]
] ;
fhir:StructureMap.group.rule.documentation [ fhir:value "Subject reference" ]
], [
fhir:index 5 ;
fhir:StructureMap.group.rule.name [ fhir:value "SetEffective" ] ;
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:StructureMap.group.rule.documentation [ fhir:value "Instance creation datetime" ]
]
] .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/StructureMap/QuestionnaireResponseToObservationBase.ttl> a owl:Ontology ;
owl:imports fhir:fhir.ttl ;
owl:versionIRI <http://build.fhir.org/StructureMap/QuestionnaireResponseToObservationBase.ttl> .
IG © 2026+ The PreNUDGE Consortium. Package hl7.at.fhir.prenudge.appdata.r4#0.1.0 based on FHIR® 4.0.1. Generated 2026-07-23
Links: Table of Contents |
QA Report