SMART ICVP
0.1.0 - ci-build

This page is part of the ICVP (v0.1.0: Releases Draft) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: null - TTL Representation

Draft as of 2024-10-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 -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "DVCQRtoDVCLM"] ; # 
  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 DVCQRtoDVCLM</b></p><a name=\"DVCQRtoDVCLM\"> </a><a name=\"hcDVCQRtoDVCLM\"> </a><a name=\"DVCQRtoDVCLM-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://smart.who.int/icvp/StructureMap/DVCQRtoDVCLM<span style=\"color: navy\">&quot; = &quot;</span>DVCQRtoDVCLM<span style=\"color: navy\">&quot;\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">&quot; </span><b>alias </b>QuestionnaireResponse <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-ModelDVC.html\" title=\"DVC\">http://smart.who.int/icvp/StructureDefinition/ModelDVC</a><span style=\"color: navy\">&quot; </span><b>alias </b>DVCLogicalModel <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-ModelVaccineDetails.html\" title=\"DVC - Vaccine Details\">http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails</a><span style=\"color: navy\">&quot; </span><b>alias </b>ModelVaccineDetails <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DVCPayload.html\" title=\"DVC HCERT Payload\">http://smart.who.int/icvp/StructureDefinition/DVCPayload</a><span style=\"color: navy\">&quot; </span><b>alias </b>DVCClaim <b>as </b><b>target</b>\r\n\r\n<b>group </b>DVCQRtoDVCLM<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>DVCLogicalModel<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule1&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule1a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule1b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule2&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule2a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule2b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule3&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule3a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule3b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule4&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule4a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule4b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule5&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule5a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule5b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule6&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule6a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule6b&quot;</i><span style=\"color: navy\">;</span>\r\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>&quot;rule7&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\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>ModelVaccineDetails<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('doseNumber')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">doseNumber</span><span style=\"color: navy\"><b> -&gt; </b></span>v.doseNumber = <span style=\"color: maroon\">doseNumber</span> <i>&quot;rule7&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule7a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule7b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('disease')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">disease</span><span style=\"color: navy\"><b> -&gt; </b></span>v.disease = <span style=\"color: maroon\">disease</span> <i>&quot;rule8&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule8a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule8b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('vaccineClassification')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">vaccine</span><span style=\"color: navy\"><b> -&gt; </b></span>v.vaccineClassification = <span style=\"color: maroon\">vaccine</span> <i>&quot;rule9&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule9a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule9b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('vaccineTradeItem')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">vaccine</span><span style=\"color: navy\"><b> -&gt; </b></span>v.vaccineTradeItem = <span style=\"color: maroon\">vaccine</span> <i>&quot;rule10&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule10a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule10b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule11&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule11a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule11b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule12&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule12a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule12b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('manufacturerId')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">mid</span><span style=\"color: navy\"><b> -&gt; </b></span>v.manufacturerId = <span style=\"color: maroon\">mid</span> <i>&quot;rule13&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule13a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule13b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('manufacturer')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">manufacturer</span><span style=\"color: navy\"><b> -&gt; </b></span>v.manufacturer = <span style=\"color: maroon\">manufacturer</span> <i>&quot;rule14&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule14a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule14b&quot;</i><span style=\"color: navy\">;</span>\r\n  s.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId.value in ('batchNo')<b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule15&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule15a&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule15b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\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\"> {\r\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\"> {\r\n</span>        item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule16&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;rule16a&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;rule16b&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>        item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\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>&quot;rule17&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;rule17a&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;rule17b&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;rule18&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;rule19&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  ] ; # 
  fhir:url [ fhir:v "http://smart.who.int/icvp/StructureMap/DVCQRtoDVCLM"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "DVCQRtoDVCLM"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2024-10-07T07:31:05+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/ModelDVC"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/ModelDVC>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "DVCLogicalModel" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "ModelVaccineDetails" ]
  ] [
fhir:url [
fhir:v "http://smart.who.int/icvp/StructureDefinition/DVCPayload"^^xsd:anyURI ;
fhir:link <http://smart.who.int/icvp/StructureDefinition/DVCPayload>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "DVCClaim" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "DVCQRtoDVCLM" ] ;
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 "DVCLogicalModel" ] ;
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 [ 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 [ 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 [ 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 [ 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 [ 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 [ 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 "ModelVaccineDetails" ] ;
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 ('doseNumber')" ]       ] ) ;
      ( 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 "doseNumber" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "doseNumber" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "doseNumber" ]             ] )           ] )         ] )       ] )     ] [
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 ('disease')" ]       ] ) ;
      ( 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 "disease" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "disease" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "disease" ]             ] )           ] )         ] )       ] )     ] [
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 ('vaccineClassification')" ]       ] ) ;
      ( 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 "vaccine" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "vaccineClassification" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "vaccine" ]             ] )           ] )         ] )       ] )     ] [
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 ('vaccineTradeItem')" ]       ] ) ;
      ( 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 "vaccine" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "vaccineTradeItem" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "vaccine" ]             ] )           ] )         ] )       ] )     ] [
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 ('date')" ]       ] ) ;
      ( 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 "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 [ fhir:v "date" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule12b" ] ;
      ( 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 "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 "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 [ fhir:v "clinicianName" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule13b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('manufacturerId')" ]       ] ) ;
      ( 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 "value" ] ;
fhir:variable [ fhir:v "mid" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "manufacturerId" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "mid" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule14b" ] ;
      ( fhir:source [
fhir:context [ fhir:v "s" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ] ;
fhir:condition [ fhir:v "linkId.value in ('manufacturer')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule14a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule14" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "manufacturer" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "v" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "manufacturer" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "manufacturer" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule15b" ] ;
      ( 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')" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "rule15a" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "rule15" ] ;
          ( 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 [ fhir:v "batchNo" ]             ] )           ] )         ] )       ] )     ] [
fhir:name [ fhir:v "rule19" ] ;
      ( 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 "rule18" ] ;
        ( 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 "rule16b" ] ;
          ( 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 "rule16a" ] ;
            ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "rule16" ] ;
              ( 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 [ fhir:v "start" ]                 ] )               ] )             ] )           ] )         ] [
fhir:name [ fhir:v "rule17b" ] ;
          ( 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 "rule17a" ] ;
            ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:variable [ fhir:v "answer" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "rule17" ] ;
              ( 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 [ fhir:v "end" ]                 ] )               ] )             ] )           ] )         ] )       ] )     ] )
  ] ) . #