WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies
0.1.0 - release

WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-emcare/tree/feature/update-canonical and changes regularly. See the Directory of published versions

## : Ccca.registration.p - JSON Representation

Active as of 2026-04-07

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "Ccca.registration.p",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map &quot;https://smart.who.int/ccc/StructureMap/Ccca.registration.p&quot; = &quot;Ccca.registration.p&quot;\r\n\r\n\r\nuses &quot;http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse&quot; alias 'questionnaireResponse' as source\r\nuses &quot;http://hl7.org/fhir/StructureDefinition/Bundle&quot; alias 'Bundle' as target\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/patient&quot; alias 'Patient' as target\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/relatedperson&quot; alias 'RelatedPerson' as target\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/communicationrequest&quot; alias 'CommunicationRequest' as target\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/Cccpatient&quot; alias 'Ccc Patient' as produced\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/relatedperson&quot; alias 'RelatedPerson' as produced\r\nuses &quot;https://smart.who.int/ccc/StructureDefinition/communicationrequest&quot; alias 'CommunicationRequest' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n  src -&gt; bundle.id = uuid() &quot;id&quot;;\r\n  src -&gt; bundle.type = 'batch' &quot;type&quot;;\r\n  src -&gt; bundle.entry as entry then {\r\n    src.subject as subject then {\r\n      subject.id as idval -&gt;  entry.request as request,  request.method = 'PUT',  request.url = append('/Patient/', idval) &quot;1153aa45&quot;;\r\n    } &quot;cf5b2513&quot;;\r\n    src -&gt; entry.resource = create('Patient') as tgt then {\r\n      src -&gt; tgt then Cccpatient(src, tgt) &quot;77f3ac03&quot;;\r\n    } &quot;75beb242&quot;;\r\n  } &quot;put-Cccpatient&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      src -&gt;  bundle.entry as entry,  entry.request as request,  request.method = 'POST',  entry.resource = create('RelatedPerson') as tgt then {\r\n        src -&gt; tgt then relatedperson(src, tgt) &quot;8f0b9602&quot;;\r\n        item.answer first as a then {\r\n          a.value as val -&gt; request.url = append('/RelatedPerson/', val) &quot;78d8bc69&quot;;\r\n        } &quot;eec70023&quot;;\r\n      } &quot;00574b8e&quot;;\r\n    } &quot;74cc3511&quot;;\r\n  } &quot;54daac33&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE38') and answer.exists() then {\r\n      src -&gt; bundle.entry as entry then {\r\n        src -&gt;  entry.request as request,  request.method = 'POST',  uuid() as uuid,  request.url = append('/CommunicationRequest/', uuid) &quot;e5343f50&quot;;\r\n        src -&gt; entry.resource = create('CommunicationRequest') as tgt then {\r\n          src -&gt; tgt then communicationrequestCccade38(src, tgt) &quot;82d8a873&quot;;\r\n        } &quot;33eeb100&quot;;\r\n      } &quot;d4cd942b&quot;;\r\n    } &quot;5ca7be0f&quot;;\r\n  } &quot;b78fbe33&quot;;\r\n}\r\n\r\ngroup SetOfficalGivenNameCccpatient(source src, target tgt) {\r\n  src -&gt; tgt.use = 'official' then {\r\n    src.item first as item where (linkId = 'Ccc.A.DE06') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt; tgt.family = val &quot;77d1bd4f&quot;;\r\n      } &quot;e0827d5d&quot;;\r\n    } &quot;607c4e16&quot;;\r\n    src.item first as item where (linkId = 'Ccc.A.DE04') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt; tgt.given = val &quot;5d3d44f6&quot;;\r\n      } &quot;18edd234&quot;;\r\n    } &quot;e9deb0f3&quot;;\r\n    src.item first as item where (linkId = 'Ccc.A.DE05') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt; tgt.given = val &quot;5d3d44f6&quot;;\r\n      } &quot;18edd234&quot;;\r\n    } &quot;d95279c0&quot;;\r\n  } &quot;ef0f6810&quot;;\r\n}\r\n\r\ngroup MapValueSetExtCodeCccade16(source src, target tgt) {\r\n  src -&gt; tgt then {\r\n    src -&gt; tgt then {\r\n      src where value.code = 'Ccc.A.DE17' -&gt; tgt.gender = 'female' &quot;368f2e2a&quot;;\r\n      src where value.code = 'Ccc.A.DE18' -&gt; tgt.gender = 'male' &quot;2ae3beca&quot;;\r\n      src where value.code = 'Ccc.A.DE19' -&gt; tgt.gender = 'unknown' &quot;de22e8b7&quot;;\r\n    } &quot;mapbase&quot;;\r\n  } &quot;57676688&quot;;\r\n}\r\n\r\ngroup Cccpatient(source src : questionnaireResponse, target tgt : Patient) {\r\n  src.item first as item where (linkId = 'Ccc.A.DE01') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -&gt; tgt.identifier = create('Identifier') as identifier then {\r\n        val -&gt;  identifier.value = val,  identifier.use = 'official' &quot;id&quot;;\r\n      } &quot;aCccade01&quot;;\r\n    } &quot;aCccade01&quot;;\r\n  } &quot;c243b020&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE03') and answer.exists() then {\r\n    item.answer first as a -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/anonymous',  ext.value = true &quot;aCccade03&quot;;\r\n  } &quot;54d12495&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE06') or (linkId = 'Ccc.A.DE04') or ((linkId = 'Ccc.A.DE05') and answer.exists()) then {\r\n    src -&gt;  tgt as target,  target.name as name then SetOfficalGivenNameCccpatient(src, name) &quot;30643049&quot;;\r\n  } &quot;7483ae2e&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE12') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/birthDateEstimator',  ext.value = val &quot;aCccade12&quot;;\r\n    } &quot;aCccade12&quot;;\r\n  } &quot;c05cf203&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE08') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -&gt; tgt.birthDate = val &quot;aCccade08&quot;;\r\n    } &quot;aCccade08&quot;;\r\n  } &quot;bded6ae8&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE16') and answer.exists() then {\r\n    item.answer first as a then MapValueSetExtCodeCccade16(a, tgt) &quot;225baa79&quot;;\r\n  } &quot;bf4b35f0&quot;;\r\n  src.item first as item where (linkId = 'Ccc.A.DE48') and answer.exists() then {\r\n    item.answer first as a -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/primarycaregiver',  ext.value = create('Reference') as ref,  ref.reference = 'relatated-person-id' &quot;aCccade48&quot;;\r\n  } &quot;04772b09&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE31') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/Extension/motherVitalStatus',  ext.value = val &quot;aCccade31&quot;;\r\n      } &quot;aCccade31&quot;;\r\n    } &quot;7f408694&quot;;\r\n  } &quot;39f45e5d&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE32') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/Extension/fatherVitalStatus',  ext.value = val &quot;aCccade32&quot;;\r\n      } &quot;aCccade32&quot;;\r\n    } &quot;06ec2524&quot;;\r\n  } &quot;f7424037&quot;;\r\n}\r\n\r\ngroup SetOfficalGivenNamerelatedperson(source src, target tgt) {\r\n  src -&gt; tgt.use = 'official' then {\r\n    src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'Ccc.A.DE23') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -&gt; tgt.family = val &quot;77d1bd4f&quot;;\r\n        } &quot;e0827d5d&quot;;\r\n      } &quot;8c426238&quot;;\r\n    } &quot;4cc155ee&quot;;\r\n    src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'Ccc.A.DE21') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -&gt; tgt.given = val &quot;5d3d44f6&quot;;\r\n        } &quot;18edd234&quot;;\r\n      } &quot;ad3fbc15&quot;;\r\n    } &quot;8bc880ed&quot;;\r\n    src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n      itm1.item first as item where (linkId = 'Ccc.A.DE22') and answer.exists() then {\r\n        item.answer first as a then {\r\n          a.value as val -&gt; tgt.given = val &quot;5d3d44f6&quot;;\r\n        } &quot;18edd234&quot;;\r\n      } &quot;e9ba83c8&quot;;\r\n    } &quot;17d8d988&quot;;\r\n  } &quot;f41b9847&quot;;\r\n}\r\n\r\ngroup MapValueSetExtCodeCccade24(source src, target tgt) {\r\n  src -&gt; tgt then {\r\n    src -&gt;  tgt.relationship = create('CodeableConcept') as cc,  cc.coding = create('Coding') as coding then {\r\n      src where value.code = 'Ccc.A.DE25' -&gt;  coding.code = 'MTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' &quot;abd34a78&quot;;\r\n      src where value.code = 'Ccc.A.DE26' -&gt;  coding.code = 'FTH',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' &quot;b53d1d15&quot;;\r\n      src where value.code = 'Ccc.A.DE27' -&gt;  coding.code = 'SIB',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' &quot;949ee35f&quot;;\r\n      src where value.code = 'Ccc.A.DE28' -&gt;  coding.code = 'EXT',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' &quot;7c5a4400&quot;;\r\n      src where value.code = 'Ccc.A.DE29' -&gt;  coding.code = 'PRNINLAW',  coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' &quot;544df0cc&quot;;\r\n      src where value.code = 'Ccc.A.DE30' -&gt;  coding.code = 'U',  coding.system = 'http://terminology.hl7.org/CodeSystem/v2-0131' &quot;8c2d96fc&quot;;\r\n    } &quot;4a251df5&quot;;\r\n  } &quot;1b7b6d7a&quot;;\r\n}\r\n\r\ngroup relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {\r\n  src.item first as item where (linkId = 'Cccrelatedpersoncaregiverid') and answer.exists() then {\r\n    item.answer first as a then {\r\n      a.value as val -&gt;  tgt.extension = create('Extension') as ext,  ext.url = 'https://smart.who.int/ccc/StructureDefinition/primary-caregiver',  ext.value = create('Reference') as ref,  ref.reference = append('/RelatedPerson/', val) &quot;aCccrelatedpersoncaregiverid&quot;;\r\n    } &quot;aCccrelatedpersoncaregiverid&quot;;\r\n  } &quot;04cd0ec2&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE23') or (linkId = 'Ccc.A.DE21') or ((linkId = 'Ccc.A.DE22') and answer.exists()) then {\r\n      src -&gt;  tgt as target,  target.name as name then SetOfficalGivenNamerelatedperson(src, name) &quot;8e1455ea&quot;;\r\n    } &quot;18dc21d5&quot;;\r\n  } &quot;f0e6459e&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE35') and answer.exists() then {\r\n      item.answer first as a then {\r\n        a.value as val -&gt;  tgt.telecom as tel,  tel.system = 'phone',  tel.use = 'mobile',  tel.value = val &quot;aCccade35&quot;;\r\n      } &quot;aCccade35&quot;;\r\n    } &quot;9731ba92&quot;;\r\n  } &quot;30b90d37&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n      item.answer first as a -&gt; tgt then {\r\n        src.subject as subject -&gt; tgt.patient = subject &quot;patient&quot;;\r\n      } &quot;arelatedpersonid&quot;;\r\n    } &quot;d79d72db&quot;;\r\n  } &quot;d50c1aed&quot;;\r\n  src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n    itm1.item first as item where (linkId = 'Ccc.A.DE24') and answer.exists() then {\r\n      item.answer first as a then MapValueSetExtCodeCccade24(a, tgt) &quot;24e5e488&quot;;\r\n    } &quot;6adb811a&quot;;\r\n  } &quot;92a0e955&quot;;\r\n}\r\n\r\ngroup communicationrequestCccade38(source src, target tgt) {\r\n  src -&gt;  tgt.category = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.system = 'http://hl7.org/fhir/ValueSet/communication-category',  c.code = 'notification' &quot;053233cd&quot;;\r\n  src.questionnaire as q -&gt;  tgt.about = create('Reference') as ref,  ref.type = 'Questionnaire',  ref.reference = q &quot;quest&quot;;\r\n  src.subject as subject -&gt; tgt.subject = subject &quot;fe3bec4d&quot;;\r\n  src -&gt; tgt.recipient = create('Reference') as ref then {\r\n    src -&gt; ref.type = 'RelatedPerson' &quot;c26ab31f&quot;;\r\n    src.item first as item where linkId = 'CccrelatedpersonCaregiveruuid' -&gt; tgt then {\r\n      item.answer first as a -&gt; tgt then {\r\n        a.value as val -&gt; ref.reference = append('/RelatedPerson/', val) &quot;25b16148&quot;;\r\n      } &quot;00b2016a&quot;;\r\n    } &quot;3c6c4c80&quot;;\r\n  } &quot;eaa7d3cf&quot;;\r\n}\r\n\r\n</pre></div>"
      },
      "url" : "https://smart.who.int/ccc/StructureMap/Ccca.registration.p",
      "version" : "0.1.0",
      "name" : "Ccca.registration.p",
      "status" : "active",
      "date" : "2026-04-07T13:42:05+00:00",
      "publisher" : "World Health Organization (WHO)",
      "contact" : [
        {
          "name" : "World Health Organization (WHO)",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.who.int"
            }
          ]
        },
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.who.int"
            }
          ]
        }
      ],
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
              "code" : "001"
            }
          ]
        }
      ],
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse",
          "mode" : "source",
          "alias" : "'questionnaireResponse'"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
          "mode" : "target",
          "alias" : "'Bundle'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/patient",
          "mode" : "target",
          "alias" : "'Patient'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/relatedperson",
          "mode" : "target",
          "alias" : "'RelatedPerson'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/communicationrequest",
          "mode" : "target",
          "alias" : "'CommunicationRequest'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/Cccpatient",
          "mode" : "produced",
          "alias" : "'Ccc Patient'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/relatedperson",
          "mode" : "produced",
          "alias" : "'RelatedPerson'"
        },
        {
          "url" : "https://smart.who.int/ccc/StructureDefinition/communicationrequest",
          "mode" : "produced",
          "alias" : "'CommunicationRequest'"
        }
      ],
      "group" : [
        {
          "name" : "bundletrans",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "type" : "questionnaireResponse",
              "mode" : "source"
            },
            {
              "name" : "bundle",
              "type" : "Bundle",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "id",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "id",
                  "transform" : "uuid"
                }
              ]
            },
            {
              "name" : "type",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "type",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "batch"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "put-Cccpatient",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "bundle",
                  "contextType" : "variable",
                  "element" : "entry",
                  "variable" : "entry"
                }
              ],
              "rule" : [
                {
                  "name" : "cf5b2513",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "subject",
                      "variable" : "subject"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "1153aa45",
                      "source" : [
                        {
                          "context" : "subject",
                          "element" : "id",
                          "variable" : "idval"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "PUT"
                            }
                          ]
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/Patient/"
                            },
                            {
                              "valueId" : "idval"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "75beb242",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "entry",
                      "contextType" : "variable",
                      "element" : "resource",
                      "variable" : "tgt",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Patient"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "77f3ac03",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "Cccpatient",
                          "variable" : [
                            "src",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "54daac33",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "74cc3511",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'relatedpersonid') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "00574b8e",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        },
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "request",
                          "variable" : "request"
                        },
                        {
                          "context" : "request",
                          "contextType" : "variable",
                          "element" : "method",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "POST"
                            }
                          ]
                        },
                        {
                          "context" : "entry",
                          "contextType" : "variable",
                          "element" : "resource",
                          "variable" : "tgt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "RelatedPerson"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "8f0b9602",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "contextType" : "variable",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "tgt"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "relatedperson",
                              "variable" : [
                                "src",
                                "tgt"
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "eec70023",
                          "source" : [
                            {
                              "context" : "item",
                              "element" : "answer",
                              "listMode" : "first",
                              "variable" : "a"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "78d8bc69",
                              "source" : [
                                {
                                  "context" : "a",
                                  "element" : "value",
                                  "variable" : "val"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "request",
                                  "contextType" : "variable",
                                  "element" : "url",
                                  "transform" : "append",
                                  "parameter" : [
                                    {
                                      "valueString" : "/RelatedPerson/"
                                    },
                                    {
                                      "valueId" : "val"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "b78fbe33",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "5ca7be0f",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE38') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "d4cd942b",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "bundle",
                          "contextType" : "variable",
                          "element" : "entry",
                          "variable" : "entry"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "e5343f50",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "request",
                              "variable" : "request"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "method",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "POST"
                                }
                              ]
                            },
                            {
                              "contextType" : "variable",
                              "variable" : "uuid",
                              "transform" : "uuid"
                            },
                            {
                              "context" : "request",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/CommunicationRequest/"
                                },
                                {
                                  "valueId" : "uuid"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "33eeb100",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "entry",
                              "contextType" : "variable",
                              "element" : "resource",
                              "variable" : "tgt",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "CommunicationRequest"
                                }
                              ]
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "82d8a873",
                              "source" : [
                                {
                                  "context" : "src"
                                }
                              ],
                              "target" : [
                                {
                                  "contextType" : "variable",
                                  "transform" : "copy",
                                  "parameter" : [
                                    {
                                      "valueId" : "tgt"
                                    }
                                  ]
                                }
                              ],
                              "dependent" : [
                                {
                                  "name" : "communicationrequestCccade38",
                                  "variable" : [
                                    "src",
                                    "tgt"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "SetOfficalGivenNameCccpatient",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "ef0f6810",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "use",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "official"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "607c4e16",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE06') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "e0827d5d",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "77d1bd4f",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "family",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "e9deb0f3",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE04') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "18edd234",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "5d3d44f6",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "given",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "d95279c0",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE05') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "18edd234",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "5d3d44f6",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "given",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "MapValueSetExtCodeCccade16",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "57676688",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "contextType" : "variable",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "tgt"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "mapbase",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "contextType" : "variable",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "tgt"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "368f2e2a",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE17'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "gender",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "female"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "2ae3beca",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE18'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "gender",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "male"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "de22e8b7",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE19'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "gender",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "unknown"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "Cccpatient",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "type" : "questionnaireResponse",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "Patient",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "c243b020",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE01') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccade01",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade01",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "identifier",
                          "variable" : "identifier",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Identifier"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "id",
                          "source" : [
                            {
                              "context" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "identifier",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            },
                            {
                              "context" : "identifier",
                              "contextType" : "variable",
                              "element" : "use",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "official"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "54d12495",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE03') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccade03",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "extension",
                      "variable" : "ext",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Extension"
                        }
                      ]
                    },
                    {
                      "context" : "ext",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://smart.who.int/ccc/StructureDefinition/anonymous"
                        }
                      ]
                    },
                    {
                      "context" : "ext",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueBoolean" : true
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "7483ae2e",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE06') or (linkId = 'Ccc.A.DE04') or ((linkId = 'Ccc.A.DE05') and answer.exists())"
                }
              ],
              "rule" : [
                {
                  "name" : "30643049",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "contextType" : "variable",
                      "variable" : "target",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "tgt"
                        }
                      ]
                    },
                    {
                      "context" : "target",
                      "contextType" : "variable",
                      "element" : "name",
                      "variable" : "name"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "SetOfficalGivenNameCccpatient",
                      "variable" : [
                        "src",
                        "name"
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "c05cf203",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE12') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccade12",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade12",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "extension",
                          "variable" : "ext",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Extension"
                            }
                          ]
                        },
                        {
                          "context" : "ext",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://smart.who.int/ccc/StructureDefinition/birthDateEstimator"
                            }
                          ]
                        },
                        {
                          "context" : "ext",
                          "contextType" : "variable",
                          "element" : "value",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "bded6ae8",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE08') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccade08",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade08",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "birthDate",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "val"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "bf4b35f0",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE16') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "225baa79",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "MapValueSetExtCodeCccade16",
                      "variable" : [
                        "a",
                        "tgt"
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "04772b09",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Ccc.A.DE48') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccade48",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "extension",
                      "variable" : "ext",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Extension"
                        }
                      ]
                    },
                    {
                      "context" : "ext",
                      "contextType" : "variable",
                      "element" : "url",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://smart.who.int/ccc/StructureDefinition/primarycaregiver"
                        }
                      ]
                    },
                    {
                      "context" : "ext",
                      "contextType" : "variable",
                      "element" : "value",
                      "variable" : "ref",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Reference"
                        }
                      ]
                    },
                    {
                      "context" : "ref",
                      "contextType" : "variable",
                      "element" : "reference",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "relatated-person-id"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "39f45e5d",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "7f408694",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE31') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade31",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "aCccade31",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "extension",
                              "variable" : "ext",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Extension"
                                }
                              ]
                            },
                            {
                              "context" : "ext",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "https://smart.who.int/ccc/Extension/motherVitalStatus"
                                }
                              ]
                            },
                            {
                              "context" : "ext",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "f7424037",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "06ec2524",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE32') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade32",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "aCccade32",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "extension",
                              "variable" : "ext",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Extension"
                                }
                              ]
                            },
                            {
                              "context" : "ext",
                              "contextType" : "variable",
                              "element" : "url",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "https://smart.who.int/ccc/Extension/fatherVitalStatus"
                                }
                              ]
                            },
                            {
                              "context" : "ext",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "SetOfficalGivenNamerelatedperson",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "f41b9847",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "use",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "official"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "4cc155ee",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "itm1",
                      "condition" : "linkId = 'Ccc.A.DE21.1'"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8c426238",
                      "source" : [
                        {
                          "context" : "itm1",
                          "element" : "item",
                          "listMode" : "first",
                          "variable" : "item",
                          "condition" : "(linkId = 'Ccc.A.DE23') and answer.exists()"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "e0827d5d",
                          "source" : [
                            {
                              "context" : "item",
                              "element" : "answer",
                              "listMode" : "first",
                              "variable" : "a"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "77d1bd4f",
                              "source" : [
                                {
                                  "context" : "a",
                                  "element" : "value",
                                  "variable" : "val"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "tgt",
                                  "contextType" : "variable",
                                  "element" : "family",
                                  "transform" : "copy",
                                  "parameter" : [
                                    {
                                      "valueId" : "val"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "8bc880ed",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "itm1",
                      "condition" : "linkId = 'Ccc.A.DE21.1'"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "ad3fbc15",
                      "source" : [
                        {
                          "context" : "itm1",
                          "element" : "item",
                          "listMode" : "first",
                          "variable" : "item",
                          "condition" : "(linkId = 'Ccc.A.DE21') and answer.exists()"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "18edd234",
                          "source" : [
                            {
                              "context" : "item",
                              "element" : "answer",
                              "listMode" : "first",
                              "variable" : "a"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "5d3d44f6",
                              "source" : [
                                {
                                  "context" : "a",
                                  "element" : "value",
                                  "variable" : "val"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "tgt",
                                  "contextType" : "variable",
                                  "element" : "given",
                                  "transform" : "copy",
                                  "parameter" : [
                                    {
                                      "valueId" : "val"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "17d8d988",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "itm1",
                      "condition" : "linkId = 'Ccc.A.DE21.1'"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "e9ba83c8",
                      "source" : [
                        {
                          "context" : "itm1",
                          "element" : "item",
                          "listMode" : "first",
                          "variable" : "item",
                          "condition" : "(linkId = 'Ccc.A.DE22') and answer.exists()"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "18edd234",
                          "source" : [
                            {
                              "context" : "item",
                              "element" : "answer",
                              "listMode" : "first",
                              "variable" : "a"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "5d3d44f6",
                              "source" : [
                                {
                                  "context" : "a",
                                  "element" : "value",
                                  "variable" : "val"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "tgt",
                                  "contextType" : "variable",
                                  "element" : "given",
                                  "transform" : "copy",
                                  "parameter" : [
                                    {
                                      "valueId" : "val"
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "MapValueSetExtCodeCccade24",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "1b7b6d7a",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "contextType" : "variable",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "tgt"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "4a251df5",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt",
                      "contextType" : "variable",
                      "element" : "relationship",
                      "variable" : "cc",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "CodeableConcept"
                        }
                      ]
                    },
                    {
                      "context" : "cc",
                      "contextType" : "variable",
                      "element" : "coding",
                      "variable" : "coding",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "abd34a78",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE25'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "MTH"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "b53d1d15",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE26'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "FTH"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "949ee35f",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE27'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "SIB"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "7c5a4400",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE28'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "EXT"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "544df0cc",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE29'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "PRNINLAW"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "8c2d96fc",
                      "source" : [
                        {
                          "context" : "src",
                          "condition" : "value.code = 'Ccc.A.DE30'"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "U"
                            }
                          ]
                        },
                        {
                          "context" : "coding",
                          "contextType" : "variable",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "http://terminology.hl7.org/CodeSystem/v2-0131"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "relatedperson",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "type" : "questionnaireResponse",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "RelatedPerson",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "04cd0ec2",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "item",
                  "condition" : "(linkId = 'Cccrelatedpersoncaregiverid') and answer.exists()"
                }
              ],
              "rule" : [
                {
                  "name" : "aCccrelatedpersoncaregiverid",
                  "source" : [
                    {
                      "context" : "item",
                      "element" : "answer",
                      "listMode" : "first",
                      "variable" : "a"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccrelatedpersoncaregiverid",
                      "source" : [
                        {
                          "context" : "a",
                          "element" : "value",
                          "variable" : "val"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tgt",
                          "contextType" : "variable",
                          "element" : "extension",
                          "variable" : "ext",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Extension"
                            }
                          ]
                        },
                        {
                          "context" : "ext",
                          "contextType" : "variable",
                          "element" : "url",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://smart.who.int/ccc/StructureDefinition/primary-caregiver"
                            }
                          ]
                        },
                        {
                          "context" : "ext",
                          "contextType" : "variable",
                          "element" : "value",
                          "variable" : "ref",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Reference"
                            }
                          ]
                        },
                        {
                          "context" : "ref",
                          "contextType" : "variable",
                          "element" : "reference",
                          "transform" : "append",
                          "parameter" : [
                            {
                              "valueString" : "/RelatedPerson/"
                            },
                            {
                              "valueId" : "val"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "f0e6459e",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "18dc21d5",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE23') or (linkId = 'Ccc.A.DE21') or ((linkId = 'Ccc.A.DE22') and answer.exists())"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "8e1455ea",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "variable" : "target",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        },
                        {
                          "context" : "target",
                          "contextType" : "variable",
                          "element" : "name",
                          "variable" : "name"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "SetOfficalGivenNamerelatedperson",
                          "variable" : [
                            "src",
                            "name"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "30b90d37",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "9731ba92",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE35') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "aCccade35",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "aCccade35",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "telecom",
                              "variable" : "tel"
                            },
                            {
                              "context" : "tel",
                              "contextType" : "variable",
                              "element" : "system",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "phone"
                                }
                              ]
                            },
                            {
                              "context" : "tel",
                              "contextType" : "variable",
                              "element" : "use",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "mobile"
                                }
                              ]
                            },
                            {
                              "context" : "tel",
                              "contextType" : "variable",
                              "element" : "value",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "d50c1aed",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "d79d72db",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'relatedpersonid') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "arelatedpersonid",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "patient",
                          "source" : [
                            {
                              "context" : "src",
                              "element" : "subject",
                              "variable" : "subject"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tgt",
                              "contextType" : "variable",
                              "element" : "patient",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueId" : "subject"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "92a0e955",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "listMode" : "first",
                  "variable" : "itm1",
                  "condition" : "linkId = 'Ccc.A.DE21.1'"
                }
              ],
              "rule" : [
                {
                  "name" : "6adb811a",
                  "source" : [
                    {
                      "context" : "itm1",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "(linkId = 'Ccc.A.DE24') and answer.exists()"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "24e5e488",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "MapValueSetExtCodeCccade24",
                          "variable" : [
                            "a",
                            "tgt"
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "communicationrequestCccade38",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "053233cd",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "category",
                  "variable" : "cc",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "CodeableConcept"
                    }
                  ]
                },
                {
                  "context" : "cc",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "c",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                },
                {
                  "context" : "c",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://hl7.org/fhir/ValueSet/communication-category"
                    }
                  ]
                },
                {
                  "context" : "c",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "notification"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "quest",
              "source" : [
                {
                  "context" : "src",
                  "element" : "questionnaire",
                  "variable" : "q"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "about",
                  "variable" : "ref",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Reference"
                    }
                  ]
                },
                {
                  "context" : "ref",
                  "contextType" : "variable",
                  "element" : "type",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Questionnaire"
                    }
                  ]
                },
                {
                  "context" : "ref",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "q"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "fe3bec4d",
              "source" : [
                {
                  "context" : "src",
                  "element" : "subject",
                  "variable" : "subject"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "subject",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "subject"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "eaa7d3cf",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "recipient",
                  "variable" : "ref",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Reference"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "c26ab31f",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "ref",
                      "contextType" : "variable",
                      "element" : "type",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "RelatedPerson"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "3c6c4c80",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "item",
                      "listMode" : "first",
                      "variable" : "item",
                      "condition" : "linkId = 'CccrelatedpersonCaregiveruuid'"
                    }
                  ],
                  "target" : [
                    {
                      "contextType" : "variable",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "tgt"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "00b2016a",
                      "source" : [
                        {
                          "context" : "item",
                          "element" : "answer",
                          "listMode" : "first",
                          "variable" : "a"
                        }
                      ],
                      "target" : [
                        {
                          "contextType" : "variable",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "tgt"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "25b16148",
                          "source" : [
                            {
                              "context" : "a",
                              "element" : "value",
                              "variable" : "val"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "ref",
                              "contextType" : "variable",
                              "element" : "reference",
                              "transform" : "append",
                              "parameter" : [
                                {
                                  "valueString" : "/RelatedPerson/"
                                },
                                {
                                  "valueId" : "val"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }