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.C4.QRToPatient - TTL Representation

Draft as of 2026-07-07

Raw ttl | Download


@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/IMMZ.C4.QRToPatient> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "IMMZ.C4.QRToPatient"] ;
  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 IMMZ.C4.QRToPatient</b></p><a name=\"IMMZ.C4.QRToPatient\"> </a><a name=\"hcIMMZ.C4.QRToPatient\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://smart.who.int/immunizations/StructureMap/IMMZ.C4.QRToPatient<span style=\"color: navy\">\" = \"</span>IMMZ.C4.QRToPatient<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Immunization Client Registry - Transform QuestionnaireResponse to Patient resources</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-IMMZC4.html\" title=\"IMMZ.C4.Create client record\">http://smart.who.int/immunizations/StructureDefinition/IMMZC4</a><span style=\"color: navy\">\" </span><b>alias </b>IMMZC <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/bundle.html\" title=\"Bundle\">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style=\"color: navy\">\" </span><b>alias </b>Bundle <b>as </b><b>target</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span><a href=\"StructureMap-IMMZ.C4.QRToLM.html\" title=\"IMMZ.C4.QRToLM\">http://smart.who.int/immunizations/StructureMap/IMMZ.C4.QRToLM</a><span style=\"color: navy\">\"#xD;\n</span><b>imports</b><span style=\"color: navy\"> \"</span><a href=\"StructureMap-IMMZ.C4.LMToPatient.html\" title=\"IMMZ.C4.LMToPatient\">http://smart.who.int/immunizations/StructureMap/IMMZ.C4.LMToPatient</a><span style=\"color: navy\">\"#xD;\n</span>#xD;\n<b>group </b>QRespToPatient<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\">bundle</span><span style=\"color: navy\"> : </span>Bundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  qr<span style=\"color: navy\"><b> -&gt; </b></span><b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://smart.who.int/immunizations/StructureDefinition/IMMZC4'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">model</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    <span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// qr -&gt; model then QRespToIMMZC( qr, model) \"QRtoLM\";     qr -&gt; bundle then IMMZCToPatient( model, bundle ) \"LMtoPatient\";</span>#xD;\n    qr<b> then </b>QRespToIMMZC<span style=\"color: navy\">(</span><span style=\"color: maroon\">qr</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">model</span><span style=\"color: navy\">)</span> <i>\"QRtoLM\"</i><span style=\"color: navy\">;</span>#xD;\n    qr<b> then </b>IMMZCToPatient<span style=\"color: navy\">(</span><span style=\"color: maroon\">model</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">bundle</span><span style=\"color: navy\">)</span> <i>\"LMtoPatient\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"QRtoPatient\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:StructureMap.url [ fhir:value "http://smart.who.int/immunizations/StructureMap/IMMZ.C4.QRToPatient"] ;
  fhir:StructureMap.version [ fhir:value "0.2.0"] ;
  fhir:StructureMap.name [ fhir:value "IMMZ.C4.QRToPatient"] ;
  fhir:StructureMap.status [ fhir:value "draft"] ;
  fhir:StructureMap.date [ fhir:value "2026-07-07T22:09:13+00:00"^^xsd:dateTime] ;
  fhir:StructureMap.publisher [ fhir:value "WHO"] ;
  fhir:StructureMap.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "WHO" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://who.int" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir:value "Immunization Client Registry - Transform QuestionnaireResponse to Patient resources"] ;
  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 "QResp" ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://smart.who.int/immunizations/StructureDefinition/IMMZC4" ;
       fhir:link <http://smart.who.int/immunizations/StructureDefinition/IMMZC4>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "IMMZC" ]
  ], [
     fhir:index 2 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "Bundle" ]
  ] ;
  fhir:StructureMap.import [
     fhir:value "http://smart.who.int/immunizations/StructureMap/IMMZ.C4.QRToLM" ;
     fhir:index 0 ;
     fhir:link <http://smart.who.int/immunizations/StructureMap/IMMZ.C4.QRToLM>
  ], [
     fhir:value "http://smart.who.int/immunizations/StructureMap/IMMZ.C4.LMToPatient" ;
     fhir:index 1 ;
     fhir:link <http://smart.who.int/immunizations/StructureMap/IMMZ.C4.LMToPatient>
  ] ;
  fhir:StructureMap.group [
     fhir:index 0 ;
     fhir:StructureMap.group.name [ fhir:value "QRespToPatient" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "qr" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "QResp" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "bundle" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "Bundle" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "QRtoPatient" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "qr" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "model" ] ;
         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 "http://smart.who.int/immunizations/StructureDefinition/IMMZC4" ]
         ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "QRtoLM" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "qr" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "QRespToIMMZC" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "qr" ;
             fhir:index 0
           ], [
             fhir:value "model" ;
             fhir:index 1
           ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "LMtoPatient" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "qr" ]
         ] ;
         fhir:StructureMap.group.rule.dependent [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.dependent.name [ fhir:value "IMMZCToPatient" ] ;
           fhir:StructureMap.group.rule.dependent.variable [
             fhir:value "model" ;
             fhir:index 0
           ], [
             fhir:value "bundle" ;
             fhir:index 1
           ]
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/IMMZ.C4.QRToPatient.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/IMMZ.C4.QRToPatient.ttl> .