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

: null - TTL Representation

Draft as of 2024-12-18

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 "IMMZCQRToLM"] ; # 
  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 IMMZCQRToLM</b></p><a name=\"IMMZCQRToLM\"> </a><a name=\"hcIMMZCQRToLM\"> </a><a name=\"IMMZCQRToLM-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://smart.who.int/immunizations/StructureMap/IMMZCQRToLM<span style=\"color: navy\">&quot; = &quot;</span>IMMZCQRToLM<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Immunization Client Registry - Transform QuestionnaireResponse to Logical Model</span>\r\n\r\n<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>QResp <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-IMMZCClientregistration.html\" title=\"IMMZ.C Client registration\">http://smart.who.int/immunizations/StructureDefinition/IMMZCClientregistration</a><span style=\"color: navy\">&quot; </span><b>alias </b>IMMZC <b>as </b><b>target</b>\r\n\r\n<b>group </b>QRespToIMMZC<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\">immzc</span><span style=\"color: navy\"> : </span>IMMZC<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  qr.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'uniqueIdentifier'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.uniqueIdentifier = <span style=\"color: maroon\">content</span> <i>&quot;SetIdentifier&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForIdentifier&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'name'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.name = <span style=\"color: maroon\">content</span> <i>&quot;SetFullName&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFullName&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'firstName'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.firstName = <span style=\"color: maroon\">content</span> <i>&quot;SetFirstName&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFirstName&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'familyName'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.familyName = <span style=\"color: maroon\">content</span> <i>&quot;SetFamilyName&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFamilyName&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'sex'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        coding.code<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.sex = <span style=\"color: maroon\">content</span> <i>&quot;SetSex&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;ProcessCoding&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForIdentifier&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'dateOfBirth'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.dateOfBirth = <span style=\"color: maroon\">content</span> <i>&quot;SetBirthDate&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForBirthDate&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'age'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.age = <span style=\"color: maroon\">content</span> <i>&quot;SetAge&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForAge&quot;</i><span style=\"color: navy\">;</span>\r\n    item<b> as </b><span style=\"color: maroon\">caregiver</span><b> where </b>item.linkId = 'caregiversMultiple'<span style=\"color: navy\"><b> -&gt; </b></span>immzc.caregiversMultiple<b> as </b><span style=\"color: maroon\">caretgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      caregiver.item<b> as </b><span style=\"color: maroon\">cgitem</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFullName'<b> then</b><span style=\"color: navy\"> {\r\n</span>          answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>caretgt.caregiversFullName = <span style=\"color: maroon\">content</span> <i>&quot;SetFullName&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFullName&quot;</i><span style=\"color: navy\">;</span>\r\n        cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFirstName'<b> then</b><span style=\"color: navy\"> {\r\n</span>          answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>caretgt.caregiversFirstName = <span style=\"color: maroon\">content</span> <i>&quot;SetFirstName&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFirstName&quot;</i><span style=\"color: navy\">;</span>\r\n        cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFamilyName'<b> then</b><span style=\"color: navy\"> {\r\n</span>          answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>caretgt.caregiversFamilyName = <span style=\"color: maroon\">content</span> <i>&quot;SetFamilyName&quot;</i><span style=\"color: navy\">;</span>\r\n        <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForFamilyName&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;caregiverItems&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;AnswerForCaregiverMultiple&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'contactPhoneNumber'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.contactPhoneNumber = <span style=\"color: maroon\">content</span> <i>&quot;SetPhone&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForPhone&quot;</i><span style=\"color: navy\">;</span>\r\n    item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'address'<b> then</b><span style=\"color: navy\"> {\r\n</span>      answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -&gt; </b></span>immzc.address = <span style=\"color: maroon\">content</span> <i>&quot;SetAddress&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;FirstAnswerForAddress&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;processItems&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/immunizations/StructureMap/IMMZCQRToLM"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.2.0"] ; # 
  fhir:name [ fhir:v "IMMZCQRToLM"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2024-12-18T23:00:54+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 Client Registry - 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/IMMZCClientregistration"^^xsd:anyURI ;
fhir:link <http://smart.who.int/immunizations/StructureDefinition/IMMZCClientregistration>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "IMMZC" ]
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "QRespToIMMZC" ] ;
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 "immzc" ] ;
fhir:type [ fhir:v "IMMZC" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "processItems" ] ;
      ( fhir:source [
fhir:context [ fhir:v "qr" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "item" ]       ] ) ;
      ( fhir:rule [
fhir:name [ fhir:v "FirstAnswerForIdentifier" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'uniqueIdentifier'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetIdentifier" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "uniqueIdentifier" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForFullName" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'name'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetFullName" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "name" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForFirstName" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'firstName'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetFirstName" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "firstName" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForFamilyName" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'familyName'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetFamilyName" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "familyName" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForIdentifier" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'sex'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "ProcessCoding" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "coding" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "SetSex" ] ;
            ( fhir:source [
fhir:context [ fhir:v "coding" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "content" ]             ] ) ;
            ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "sex" ] ;
fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
fhir:value [ fhir:v "content" ]               ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForBirthDate" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'dateOfBirth'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetBirthDate" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "dateOfBirth" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForAge" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'age'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetAge" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "age" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "AnswerForCaregiverMultiple" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:variable [ fhir:v "caregiver" ] ;
fhir:condition [ fhir:v "item.linkId = 'caregiversMultiple'" ]         ] ) ;
        ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "caregiversMultiple" ] ;
fhir:variable [ fhir:v "caretgt" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "caregiverItems" ] ;
          ( fhir:source [
fhir:context [ fhir:v "caregiver" ] ;
fhir:element [ fhir:v "item" ] ;
fhir:variable [ fhir:v "cgitem" ]           ] ) ;
          ( fhir:rule [
fhir:name [ fhir:v "FirstAnswerForFullName" ] ;
            ( fhir:source [
fhir:context [ fhir:v "cgitem" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "cgitem.linkId = 'caregiversFullName'" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "SetFullName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "caretgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "caregiversFullName" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "content" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "FirstAnswerForFirstName" ] ;
            ( fhir:source [
fhir:context [ fhir:v "cgitem" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "cgitem.linkId = 'caregiversFirstName'" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "SetFirstName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "caretgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "caregiversFirstName" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "content" ]                 ] )               ] )             ] )           ] [
fhir:name [ fhir:v "FirstAnswerForFamilyName" ] ;
            ( fhir:source [
fhir:context [ fhir:v "cgitem" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "cgitem.linkId = 'caregiversFamilyName'" ]             ] ) ;
            ( fhir:rule [
fhir:name [ fhir:v "SetFamilyName" ] ;
              ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]               ] ) ;
              ( fhir:target [
fhir:context [ fhir:v "caretgt" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "caregiversFamilyName" ] ;
fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
fhir:value [ fhir:v "content" ]                 ] )               ] )             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForPhone" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'contactPhoneNumber'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetPhone" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "contactPhoneNumber" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] [
fhir:name [ fhir:v "FirstAnswerForAddress" ] ;
        ( fhir:source [
fhir:context [ fhir:v "item" ] ;
fhir:element [ fhir:v "answer" ] ;
fhir:listMode [ fhir:v "first" ] ;
fhir:variable [ fhir:v "answer" ] ;
fhir:condition [ fhir:v "item.linkId = 'address'" ]         ] ) ;
        ( fhir:rule [
fhir:name [ fhir:v "SetAddress" ] ;
          ( fhir:source [
fhir:context [ fhir:v "answer" ] ;
fhir:element [ fhir:v "value" ] ;
fhir:variable [ fhir:v "content" ]           ] ) ;
          ( fhir:target [
fhir:context [ fhir:v "immzc" ] ;
fhir:contextType [ fhir:v "variable" ] ;
fhir:element [ fhir:v "address" ] ;
fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
fhir:value [ fhir:v "content" ]             ] )           ] )         ] )       ] )     ] )
  ] ) . #