WHO Immunization Implementation Guide
0.2.0 - ci-build

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/ and changes regularly. See the Directory of published versions

: IMMZ.D5.QRToLM - TTL Representation

Draft as of 2025-09-10

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "IMMZ.D5.QRToLM"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap IMMZ.D5.QRToLM</b></p><a name=\"IMMZ.D5.QRToLM\"> </a><a name=\"hcIMMZ.D5.QRToLM\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://smart.who.int/immunizations/StructureMap/IMMZ.D5.QRToLM<span style=\"color: navy\">\" = \"</span>IMMZ.D5.QRToLM<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Immunization Administer Vaccine - Transform QuestionnaireResponse to Logical Model</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>QResp <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-IMMZD5.html\" title=\"IMMZ.D5.Determine vaccine(s) to be administered based on contraindications\">http://smart.who.int/immunizations/StructureDefinition/IMMZD5</a><span style=\"color: navy\">\" </span><b>alias </b>IMMZD5 <b>as </b><b>target</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span><a href=\"StructureMap-IMMZ.Helpers.html\" title=\"IMMZ.Helpers\">http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers</a><span style=\"color: navy\">\"#xD;\n</span>#xD;\n<b>group </b>QRespToIMMZD5<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qr</span><span style=\"color: navy\"> : </span>QResp, <b>target</b> <span style=\"color: maroon\">immz</span><span style=\"color: navy\"> : </span>IMMZD5<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  qr.subject<b> as </b><span style=\"color: maroon\">subject</span><span style=\"color: navy\"><b> -&gt; </b></span>immz.patient = <span style=\"color: maroon\">subject</span> <i>\"setPatient\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'potentialContraindications'<span style=\"color: navy\"><b> -&gt; </b></span>immz.potentialContraindications<b> as </b><span style=\"color: maroon\">field</span><b> then </b>ItemToCoding<span style=\"color: navy\">(</span><span style=\"color: maroon\">item</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">field</span><span style=\"color: navy\">)</span> <i>\"potentialContraindications\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "http://smart.who.int/immunizations/StructureMap/IMMZ.D5.QRToLM"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.2.0"] ; # 
  fhir:name [ fhir:v "IMMZ.D5.QRToLM"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2025-09-10T05:58:29+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "WHO"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "WHO" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://who.int" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Immunization Administer Vaccine - Transform QuestionnaireResponse to Logical Model"] ; # 
  fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "QResp" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/immunizations/StructureDefinition/IMMZD5"^^xsd:anyURI ;
fhir:link <http://smart.who.int/immunizations/StructureDefinition/IMMZD5>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "IMMZD5" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"^^xsd:anyURI ;
fhir:link <http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers>
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "QRespToIMMZD5" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "qr" ] ;
fhir:type [ fhir:v "QResp" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "immz" ] ;
fhir:type [ fhir:v "IMMZD5" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "setPatient" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "subject" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "immz" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "subject"           ]         ] )       ] )     ] [
fhir:name [ fhir:v "potentialContraindications" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId = 'potentialContraindications'" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "immz" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "potentialContraindications" ] ;
fhir:variable [ fhir:v "field" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ItemToCoding" ] ;
        ( fhir:variable [ fhir:v "item" ] [ fhir:v "field" ] )       ] )     ] )
  ] ) . #