SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. 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/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## : Patient Transforms: R4 → SGHI R5 - TTL Representation

Active as of 2026-05-21

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:StructureMap ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "Patient4toSGHI5"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap Patient4toSGHI5</b></p><a name=\"Patient4toSGHI5\"> </a><a name=\"hcPatient4toSGHI5\"> </a><pre class=\"fml\">#xD;\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureMap/Patient4toSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Patient4toSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Patient Transforms: R4 → SGHI R5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/4.0/StructureDefinition/Patient<span style=\"color: navy\">\" </span><b>alias </b>PatientR4 <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-patient.html\" title=\"SGHI Patient\">https://fhir.slade360.co.ke/fhir/StructureDefinition/patient</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIPatient <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-human-name.html\" title=\"SGHI HumanName\">https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIHumanName <b>as </b><b>produced</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-contact-point.html\" title=\"SGHI ContactPoint\">https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIContactPoint <b>as </b><b>produced</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-codeableconcept.html\" title=\"SGHI CodeableConcept\">https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept</a><span style=\"color: navy\">\" </span><b>alias </b>SGHICodeableConcept <b>as </b><b>produced</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-reference.html\" title=\"SGHI Reference\">https://fhir.slade360.co.ke/fhir/StructureDefinition/reference</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIReference <b>as </b><b>produced</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">\"#xD;\n</span>#xD;\n<b>group </b>SGHIPatient<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>PatientR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SGHIPatient<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  src.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text<span style=\"color: navy\">;</span>#xD;\n  src.identifier<b> as </b><span style=\"color: maroon\">s</span><b> where </b>(s.system != 'healthcloud.msisdn') and s.value.exists()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<b> as </b><span style=\"color: maroon\">t</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s.use<span style=\"color: navy\"><b> -&gt; </b></span>t.use <i>\"copyuse\"</i><span style=\"color: navy\">;</span>#xD;\n    s.value<span style=\"color: navy\"><b> -&gt; </b></span>t.value <i>\"copyvalue\"</i><span style=\"color: navy\">;</span>#xD;\n    s.period<span style=\"color: navy\"><b> -&gt; </b></span>t.period <i>\"copyperiod\"</i><span style=\"color: navy\">;</span>#xD;\n    s.type<b> as </b><span style=\"color: maroon\">ty</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      ty.coding first<b> as </b><span style=\"color: maroon\">cf</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        cf.system<b> as </b><span style=\"color: maroon\">legacy</span><span style=\"color: navy\"><b> -&gt; </b></span>t.type<b> as </b><span style=\"color: maroon\">result</span><b> then </b>TranslateLegacyIdentifier<span style=\"color: navy\">(</span><span style=\"color: maroon\">legacy</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">result</span><span style=\"color: navy\">)</span> <i>\"calltranslator\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"whensourcehascoding\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"mapidentifiertype\"</i><span style=\"color: navy\">;</span>#xD;\n    s<span style=\"color: navy\"><b> -&gt; </b></span>t.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span> <i>\"SetFixedIdentifierSystem\"</i><span style=\"color: navy\">;</span>#xD;\n    src.managingOrganization<b> as </b><span style=\"color: maroon\">mo</span><span style=\"color: navy\"><b> -&gt; </b></span>t.assigner = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">t_assigner</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      mo.reference<span style=\"color: navy\"><b> -&gt; </b></span>t_assigner.reference <i>\"setassignerreffrommo\"</i><span style=\"color: navy\">;</span>#xD;\n      mo.display<span style=\"color: navy\"><b> -&gt; </b></span>t_assigner.display <i>\"setassignerdisplayfrommo\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"createandpopulateassigner\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"processoneidentifier\"</i><span style=\"color: navy\">;</span>#xD;\n  src.identifier<b> as </b><span style=\"color: maroon\">s_id</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<b> as </b><span style=\"color: maroon\">t_id</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    s_id.use<span style=\"color: navy\"><b> -&gt; </b></span>t_id.use <i>\"copyuse\"</i><span style=\"color: navy\">;</span>#xD;\n    src.id<b> as </b><span style=\"color: maroon\">uuid</span><span style=\"color: navy\"><b> -&gt; </b></span>t_id.value = <span style=\"color: maroon\">uuid</span><span style=\"color: navy\">;</span>#xD;\n    s_id.period<span style=\"color: navy\"><b> -&gt; </b></span>t_id.period<span style=\"color: navy\">;</span>#xD;\n    s_id.type<b> as </b><span style=\"color: maroon\">st</span><span style=\"color: navy\"><b> -&gt; </b></span>t_id.type<b> as </b><span style=\"color: maroon\">tt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      st.coding<span style=\"color: navy\"><b> -&gt; </b></span> tt.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tt</span><span style=\"color: navy\">, </span> tt.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span><span style=\"color: navy\">, </span> tt.code = <span style=\"color: blue\">'fhir-id'</span><span style=\"color: navy\">, </span> tt.display = <span style=\"color: blue\">'FHIR Id'</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    s_id<span style=\"color: navy\"><b> -&gt; </b></span>t_id.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span> <i>\"SetFixedIdentifierSystem\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"create the default FHIR ID identifier type\"</i><span style=\"color: navy\">;</span>#xD;\n  src.active<span style=\"color: navy\"><b> -&gt; </b></span>tgt.active<span style=\"color: navy\">;</span>#xD;\n  src.name first<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SGHIHumanNameMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.telecom<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.telecom<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SGHIContactPointMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.gender<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.gender = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/xver/ConceptMap/pat.gender-4to5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>\"mapgender\"</i><span style=\"color: navy\">;</span>#xD;\n  src.birthDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.birthDate<span style=\"color: navy\">;</span>#xD;\n  src.deceased<span style=\"color: navy\"> : </span>boolean<span style=\"color: navy\"><b> -&gt; </b></span>tgt.deceased<span style=\"color: navy\">;</span>#xD;\n  src.deceased<span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\"><b> -&gt; </b></span>tgt.deceased<span style=\"color: navy\">;</span>#xD;\n  src.multipleBirth<span style=\"color: navy\"> : </span>boolean<span style=\"color: navy\"><b> -&gt; </b></span>tgt.multipleBirth<span style=\"color: navy\">;</span>#xD;\n  src.multipleBirth<span style=\"color: navy\"> : </span>integer<span style=\"color: navy\"><b> -&gt; </b></span>tgt.multipleBirth<span style=\"color: navy\">;</span>#xD;\n  src.address<span style=\"color: navy\"><b> -&gt; </b></span>tgt.address<span style=\"color: navy\">;</span>#xD;\n  src.photo<span style=\"color: navy\"><b> -&gt; </b></span>tgt.photo<span style=\"color: navy\">;</span>#xD;\n  src.contact<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.contact<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SGHIPatientContact<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.communication<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.communication<b> as </b><span style=\"color: maroon\">t</span><b> then </b>PatientCommunication<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.managingOrganization<span style=\"color: navy\"><b> -&gt; </b></span>tgt.managingOrganization<span style=\"color: navy\">;</span>#xD;\n  src.generalPractitioner<span style=\"color: navy\"><b> -&gt; </b></span>tgt.generalPractitioner<span style=\"color: navy\">;</span>#xD;\n  src.link<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.link<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SGHIPatientLink<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Narrative'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">t_text</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>t_text.status = <span style=\"color: blue\">'generated'</span> <i>\"settextstatus\"</i><span style=\"color: navy\">;</span>#xD;\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_text.div = <span style=\"color: blue\">'&lt;div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"&gt;&lt;h1&gt;Generated text&lt;/h1&gt;&lt;/div&gt;'</span> <i>\"settextdiv\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"createhardcodedtext\"</i><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.meta<b> as </b><span style=\"color: maroon\">t_meta</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>t_meta.profile = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureDefinition/patient'</span> <i>\"addprofile\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"addprofiletometa\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>TranslateLegacyIdentifier<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">legacy_code</span><span style=\"color: navy\"> : </span>string, <b>target</b> <span style=\"color: maroon\">result</span><span style=\"color: navy\"> : </span>CodeableConcept<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  legacy_code<span style=\"color: navy\"><b> -&gt; </b></span>result.coding = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">legacy_code</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/LegacyIdentifierToSGHI'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span> <i>\"translatetocoding\"</i><span style=\"color: navy\">;</span>#xD;\n  legacy_code<span style=\"color: navy\"><b> -&gt; </b></span>result.text <i>\"settext\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>SGHIHumanNameMap<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>HumanName<span style=\"color: navy\"> {#xD;\n</span>  src.use<span style=\"color: navy\"><b> -&gt; </b></span>tgt.use<span style=\"color: navy\">;</span>#xD;\n  src.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text<span style=\"color: navy\">;</span>#xD;\n  src.family<span style=\"color: navy\"><b> -&gt; </b></span>tgt.family<span style=\"color: navy\">;</span>#xD;\n  src.given<span style=\"color: navy\"><b> -&gt; </b></span>tgt.given<span style=\"color: navy\">;</span>#xD;\n  src.prefix<span style=\"color: navy\"><b> -&gt; </b></span>tgt.prefix<span style=\"color: navy\">;</span>#xD;\n  src.suffix<span style=\"color: navy\"><b> -&gt; </b></span>tgt.suffix<span style=\"color: navy\">;</span>#xD;\n  src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>SGHIContactPointMap<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>ContactPoint<span style=\"color: navy\"> {#xD;\n</span>  src.system<span style=\"color: navy\"><b> -&gt; </b></span>tgt.system<span style=\"color: navy\">;</span>#xD;\n  src.value<span style=\"color: navy\"><b> -&gt; </b></span>tgt.value<span style=\"color: navy\">;</span>#xD;\n  src.use<span style=\"color: navy\"><b> -&gt; </b></span>tgt.use<span style=\"color: navy\">;</span>#xD;\n  src.rank<span style=\"color: navy\"><b> -&gt; </b></span>tgt.rank<span style=\"color: navy\">;</span>#xD;\n  src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>SGHICodeableConceptCopy<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>CodeableConcept<span style=\"color: navy\"> {#xD;\n</span>  src.coding<span style=\"color: navy\"><b> -&gt; </b></span>tgt.coding<span style=\"color: navy\">;</span>#xD;\n  src.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>SGHIPatientContact<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {#xD;\n</span>  src.relationship<b> as </b><span style=\"color: maroon\">r</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.relationship<b> as </b><span style=\"color: maroon\">t</span><b> then </b>SGHICodeableConceptCopy<span style=\"color: navy\">(</span><span style=\"color: maroon\">r</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.name<b> as </b><span style=\"color: maroon\">n</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<b> as </b><span style=\"color: maroon\">tn</span><b> then </b>SGHIHumanNameMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">n</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tn</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.telecom first<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.telecom<b> as </b><span style=\"color: maroon\">tc</span><b> then </b>SGHIContactPointMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tc</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.address<span style=\"color: navy\"><b> -&gt; </b></span>tgt.address<span style=\"color: navy\">;</span>#xD;\n  src.gender<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.gender = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/xver/ConceptMap/pat.co.gender-4to5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>\"mapcontactgender\"</i><span style=\"color: navy\">;</span>#xD;\n  src.organization<span style=\"color: navy\"><b> -&gt; </b></span>tgt.organization<span style=\"color: navy\">;</span>#xD;\n  src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>PatientCommunication<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {#xD;\n</span>  src.language<span style=\"color: navy\"><b> -&gt; </b></span>tgt.language<span style=\"color: navy\">;</span>#xD;\n  src.preferred<span style=\"color: navy\"><b> -&gt; </b></span>tgt.preferred<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>SGHIPatientLink<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {#xD;\n</span>  src.other<span style=\"color: navy\"><b> -&gt; </b></span>tgt.other<span style=\"color: navy\">;</span>#xD;\n  src.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/uv/xver/ConceptMap/pat.li.type-4to5'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>\"maplinktype\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureMap/Patient4toSGHI5"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureMap/Patient4toSGHI5>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "Patient4toSGHI5"] ; #
      fhir:title [ fhir:v "Patient Transforms: R4 → SGHI R5"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-05-21T09:38:13+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Kathurima Kimathi"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Kathurima Kimathi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.linkedin.com/in/kathurima-kimathi/" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kathurimakimathi415@gmail.com" ]     ] )
      ] [
    fhir:name [ fhir:v "Oscar John" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "oscarjohnotieno@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] [
    fhir:name [ fhir:v "Kennedy Omondi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kennankole@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "PatientTransformsR4SGHIR5"] ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/4.0/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/4.0/StructureDefinition/Patient>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "PatientR4" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/patient>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "SGHIPatient" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name>     ] ;
    fhir:mode [ fhir:v "produced" ] ;
    fhir:alias [ fhir:v "SGHIHumanName" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point>     ] ;
    fhir:mode [ fhir:v "produced" ] ;
    fhir:alias [ fhir:v "SGHIContactPoint" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept>     ] ;
    fhir:mode [ fhir:v "produced" ] ;
    fhir:alias [ fhir:v "SGHICodeableConcept" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/reference>     ] ;
    fhir:mode [ fhir:v "produced" ] ;
    fhir:alias [ fhir:v "SGHIReference" ]
      ] ) ; #
      fhir:import ( [
    fhir:v "http://hl7.org/fhir/StructureMap/*4to5"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureMap/*4to5>
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "SGHIPatient" ] ;
    fhir:extends [ fhir:v "DomainResource" ] ;
    fhir:typeMode [ fhir:v "type-and-types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "PatientR4" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "SGHIPatient" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "processoneidentifier" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "s" ] ;
    fhir:condition [ fhir:v "(s.system != 'healthcloud.msisdn') and s.value.exists()" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "copyuse" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "copyvalue" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "copyperiod" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "mapidentifiertype" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "ty" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "whensourcehascoding" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "ty" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "cf" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "calltranslator" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "cf" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "legacy" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "result" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "TranslateLegacyIdentifier" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "legacy"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "result"                 ]               ] )             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "SetFixedIdentifierSystem" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "createandpopulateassigner" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "managingOrganization" ] ;
    fhir:variable [ fhir:v "mo" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    fhir:element [ fhir:v "assigner" ] ;
    fhir:variable [ fhir:v "t_assigner" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Reference"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "setassignerreffrommo" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "mo" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "vvv" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "t_assigner" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "setassignerdisplayfrommo" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "mo" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "t_assigner" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "create the default FHIR ID identifier type" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "s_id" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "t_id" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "copyuse" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s_id" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_id" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "uuid" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_id" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "period" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s_id" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_id" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "type" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s_id" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "st" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_id" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "tt" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "st" ] ;
    fhir:element [ fhir:v "coding" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "tt" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"               ]             ] )           ] [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"               ]             ] )           ] [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "fhir-id"               ]             ] )           ] [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "FHIR Id"               ]             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "SetFixedIdentifierSystem" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s_id" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_id" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "active" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "active" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "active" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "name" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "name" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "name" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIHumanNameMap" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "telecom" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIContactPointMap" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "mapgender" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "gender" ] ;
    fhir:variable [ fhir:v "v" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "gender" ] ;
    fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "v"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/uv/xver/ConceptMap/pat.gender-4to5"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "code"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "birthDate" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "birthDate" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "birthDate" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "deceasedBoolean" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:type [ fhir:v "boolean" ] ;
    fhir:element [ fhir:v "deceased" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "deceased" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "deceasedDateTime" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:type [ fhir:v "dateTime" ] ;
    fhir:element [ fhir:v "deceased" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "deceased" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "multipleBirthBoolean" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:type [ fhir:v "boolean" ] ;
    fhir:element [ fhir:v "multipleBirth" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "multipleBirth" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "multipleBirthInteger" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:type [ fhir:v "integer" ] ;
    fhir:element [ fhir:v "multipleBirth" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "multipleBirth" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "address" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "address" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "address" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "photo" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "photo" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "photo" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "contact" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "contact" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "contact" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIPatientContact" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "communication" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "communication" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "communication" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "PatientCommunication" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "managingOrganization" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "managingOrganization" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "managingOrganization" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "generalPractitioner" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "generalPractitioner" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "generalPractitioner" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "link" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "link" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "link" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIPatientLink" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "createhardcodedtext" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "t_text" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Narrative"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "settextstatus" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_text" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "generated"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "settextdiv" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_text" ] ;
    fhir:element [ fhir:v "div" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Generated text</h1></div>"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "addprofiletometa" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "t_meta" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "addprofile" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_meta" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"             ]           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TranslateLegacyIdentifier" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "legacy_code" ] ;
    fhir:type [ fhir:v "string" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "result" ] ;
    fhir:type [ fhir:v "CodeableConcept" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "translatetocoding" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "legacy_code" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "result" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "legacy_code"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/ConceptMap/LegacyIdentifierToSGHI"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "settext" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "legacy_code" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "result" ] ;
    fhir:element [ fhir:v "text" ]       ] )     ] )
      ] [
    fhir:name [ fhir:v "SGHIHumanNameMap" ] ;
    fhir:extends [ fhir:v "HumanName" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "use" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "family" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "family" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "family" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "given" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "given" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "given" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "prefix" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "prefix" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "prefix" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "suffix" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "suffix" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "suffix" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SGHIContactPointMap" ] ;
    fhir:extends [ fhir:v "ContactPoint" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "system" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "value" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "use" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "rank" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "rank" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "rank" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SGHICodeableConceptCopy" ] ;
    fhir:extends [ fhir:v "CodeableConcept" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "coding" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SGHIPatientContact" ] ;
    fhir:extends [ fhir:v "BackboneElement" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "relationship" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "relationship" ] ;
    fhir:variable [ fhir:v "r" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "relationship" ] ;
    fhir:variable [ fhir:v "t" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHICodeableConceptCopy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "r"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "name" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "name" ] ;
    fhir:variable [ fhir:v "n" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "name" ] ;
    fhir:variable [ fhir:v "tn" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIHumanNameMap" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "n"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tn"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "telecom" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:listMode [ fhir:v "first" ] ;
    fhir:variable [ fhir:v "c" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:variable [ fhir:v "tc" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SGHIContactPointMap" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "c"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tc"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "address" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "address" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "address" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "mapcontactgender" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "gender" ] ;
    fhir:variable [ fhir:v "v" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "gender" ] ;
    fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "v"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/uv/xver/ConceptMap/pat.co.gender-4to5"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "code"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "organization" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "organization" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "organization" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "period" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "PatientCommunication" ] ;
    fhir:extends [ fhir:v "BackboneElement" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "language" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "preferred" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "preferred" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "preferred" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SGHIPatientLink" ] ;
    fhir:extends [ fhir:v "BackboneElement" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "other" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "other" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "other" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "maplinktype" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "v" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:transform [ fhir:v "translate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "v"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/uv/xver/ConceptMap/pat.li.type-4to5"           ]         ] [
    fhir:value [
    a fhir:String ;
    fhir:v "code"           ]         ] )       ] )     ] )
      ] ) . #