SMART ICVP
0.2.0 - ci-build

SMART ICVP, 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-icvp/ and changes regularly. See the Directory of published versions

: ICVPQRtoICVPLM - TTL Representation

Draft as of 2025-09-25

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 "ICVPQRtoICVPLM"] ; # 
  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 ICVPQRtoICVPLM</b></p><a name=\"ICVPQRtoICVPLM\"> </a><a name=\"hcICVPQRtoICVPLM\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://smart.who.int/icvp/StructureMap/ICVPQRtoICVPLM<span style=\"color: navy\">\" = \"</span>ICVPQRtoICVPLM<span style=\"color: navy\">\"#xD;\n#xD;\n</span><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>QuestionnaireResponse <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-ICVP.html\" title=\"ICVP\">http://smart.who.int/icvp/StructureDefinition/ICVP</a><span style=\"color: navy\">\" </span><b>alias </b>ICVPLogicalModel <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-ICVPVaccineDetails.html\" title=\"ICVP - Vaccine Details\">http://smart.who.int/icvp/StructureDefinition/ICVPVaccineDetails</a><span style=\"color: navy\">\" </span><b>alias </b>ICVPVaccineDetails <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-ICVPMin.html\" title=\"ICVP HCERT Payload\">http://smart.who.int/icvp/StructureDefinition/ICVPMin</a><span style=\"color: navy\">\" </span><b>alias </b>ICVPClaim <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>ICVPQRtoICVPLM<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qr</span><span style=\"color: navy\"> : </span>QuestionnaireResponse, <b>target</b> <span style=\"color: maroon\">lm</span><span style=\"color: navy\"> : </span>ICVPLogicalModel<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('name')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">name</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.name = <span style=\"color: maroon\">name</span> <i>\"rule1\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule1a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule1b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('dob')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">dob</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.dob = <span style=\"color: maroon\">dob</span> <i>\"rule2\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule2a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule2b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('sex')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">sex</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.sex = <span style=\"color: maroon\">sex</span> <i>\"rule3\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule3a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule3b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('nationality')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">nationality</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.nationality = <span style=\"color: maroon\">nationality</span> <i>\"rule4\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule4a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule4b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('nid')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">nid</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.nid = <span style=\"color: maroon\">nid</span> <i>\"rule5\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule5a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule5b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('guardian')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">guardian</span><span style=\"color: navy\"><b> -&gt; </b></span>lm.guardian = <span style=\"color: maroon\">guardian</span> <i>\"rule6\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule6a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule6b\"</i><span style=\"color: navy\">;</span>#xD;\n  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('vaccineDetails')<span style=\"color: navy\"><b> -&gt; </b></span>lm.vaccineDetails<b> as </b><span style=\"color: maroon\">v</span><b> then </b>mapVaccineDetails<span style=\"color: navy\">(</span><span style=\"color: maroon\">item</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">v</span><span style=\"color: navy\">)</span> <i>\"rule7\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>mapVaccineDetails<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">s</span><span style=\"color: navy\"> : </span>BackboneElement, <b>target</b> <span style=\"color: maroon\">v</span><span style=\"color: navy\"> : </span>ICVPVaccineDetails<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('productID')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">productID</span><span style=\"color: navy\"><b> -&gt; </b></span>v.productID = <span style=\"color: maroon\">productID</span> <i>\"rule7\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule7a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule7b\"</i><span style=\"color: navy\">;</span>#xD;\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('date')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">date</span><span style=\"color: navy\"><b> -&gt; </b></span>v.date = <span style=\"color: maroon\">date</span> <i>\"rule8\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule8a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule8b\"</i><span style=\"color: navy\">;</span>#xD;\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('clinicianName')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">clinicianName</span><span style=\"color: navy\"><b> -&gt; </b></span>v.clinicianName = <span style=\"color: maroon\">clinicianName</span> <i>\"rule9\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule9a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule9b\"</i><span style=\"color: navy\">;</span>#xD;\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('issuer')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">issuer</span><span style=\"color: navy\"><b> -&gt; </b></span>v.issuer = <span style=\"color: maroon\">issuer</span> <i>\"rule10\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule10a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule10b\"</i><span style=\"color: navy\">;</span>#xD;\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('batchNo.text')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      answer.value<b> as </b><span style=\"color: maroon\">batchNo</span><span style=\"color: navy\"><b> -&gt; </b></span>v.batchNo = <span style=\"color: maroon\">batchNo</span> <i>\"rule11\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule11a\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule11b\"</i><span style=\"color: navy\">;</span>#xD;\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('validityPeriod')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    item<span style=\"color: navy\"><b> -&gt; </b></span>v.validityPeriod<b> as </b><span style=\"color: maroon\">period</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      item.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('startDate')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>        item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>          answer.validityPeriod<b> as </b><span style=\"color: maroon\">start</span><span style=\"color: navy\"><b> -&gt; </b></span>period.start = <span style=\"color: maroon\">start</span> <i>\"rule12\"</i><span style=\"color: navy\">;</span>#xD;\n        <span style=\"color: navy\">}</span> <i>\"rule12a\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"rule12b\"</i><span style=\"color: navy\">;</span>#xD;\n      item.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('endDate')<b> then</b><span style=\"color: navy\"> {#xD;\n</span>        item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>          answer.validityPeriod<b> as </b><span style=\"color: maroon\">end</span><span style=\"color: navy\"><b> -&gt; </b></span>period.end = <span style=\"color: maroon\">end</span> <i>\"rule13\"</i><span style=\"color: navy\">;</span>#xD;\n        <span style=\"color: navy\">}</span> <i>\"rule13a\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"rule13b\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"rule14\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"rule15\"</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/icvp/StructureMap/ICVPQRtoICVPLM"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.2.0"] ; # 
  fhir:name [ fhir:v "ICVPQRtoICVPLM"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2025-09-25T11:44: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: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 "QuestionnaireResponse" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/icvp/StructureDefinition/ICVP"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/ICVP>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "ICVPLogicalModel" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/icvp/StructureDefinition/ICVPVaccineDetails"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/ICVPVaccineDetails>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "ICVPVaccineDetails" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/icvp/StructureDefinition/ICVPMin"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/ICVPMin>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "ICVPClaim" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "ICVPQRtoICVPLM" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "qr" ] ;
fhir:type [ fhir:v "QuestionnaireResponse" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "lm" ] ;
fhir:type [ fhir:v "ICVPLogicalModel" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "rule1b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('name')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule1a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule1" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "name" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "name"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule2b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('dob')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule2a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule2" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "dob" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "dob" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "dob"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule3b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('sex')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule3a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule3" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "sex" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "sex" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "sex"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule4b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('nationality')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule4a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule4" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "nationality" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "nationality" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "nationality"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule5b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('nid')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule5a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule5" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "nid" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "nid" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "nid"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule6b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('guardian')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule6a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule6" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "guardian" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "guardian" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "guardian"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule7" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('vaccineDetails')" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "lm" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "vaccineDetails" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "mapVaccineDetails" ] ;
        ( fhir:variable [ fhir:v "item" ] [ fhir:v "v" ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "mapVaccineDetails" ] ;
fhir:typeMode [ fhir:v "none" ] ;
    ( fhir:input [
fhir:name [ fhir:v "s" ] ;
fhir:type [ fhir:v "BackboneElement" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "v" ] ;
fhir:type [ fhir:v "ICVPVaccineDetails" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "rule7b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('productID')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule7a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule7" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "productID" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "productID" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "productID"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule8b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('date')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule8a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule8" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "date" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "date" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "date"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule9b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('clinicianName')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule9a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule9" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "clinicianName" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "clinicianName" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "clinicianName"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule10b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('issuer')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule10a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule10" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "issuer" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "issuer" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "issuer"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule11b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('batchNo.text')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule11a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule11" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "batchNo" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "batchNo" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "batchNo"               ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule15" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('validityPeriod')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule14" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "validityPeriod" ] ;
fhir:variable [ fhir:v "period" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule12b" ] ;
          ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('startDate')" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "rule12a" ] ;
            ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "rule12" ] ;
              ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "validityPeriod" ] ;
fhir:variable [ fhir:v "start" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "start" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "start"                   ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "rule13b" ] ;
          ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('endDate')" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "rule13a" ] ;
            ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "rule13" ] ;
              ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "validityPeriod" ] ;
fhir:variable [ fhir:v "end" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "period" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "end" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [
a fhir:id ;
fhir:v "end"                   ]                 ] )               ] )             ] )           ] )         ] )       ] )     ] )
  ] ) . #