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

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

Active as of 2026-04-27

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 "Organization4toSGHI5"] ; #
      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 Organization4toSGHI5</b></p><a name=\"Organization4toSGHI5\"> </a><a name=\"hcOrganization4toSGHI5\"> </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/Organization4toSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Organization4toSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Organization 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/Organization<span style=\"color: navy\">\" </span><b>alias </b>OrganizationR4 <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-organization.html\" title=\"SGHI Organization\">https://fhir.slade360.co.ke/fhir/StructureDefinition/organization</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIOrganization <b>as </b><b>target</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>SGHIOrganization<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>OrganizationR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SGHIOrganization<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 = 'SladeCode') 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\">st</span><span style=\"color: navy\"><b> -&gt; </b></span>t.type<b> as </b><span style=\"color: maroon\">tt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      st.coding<b> as </b><span style=\"color: maroon\">sc</span><b> where </b>(sc.system = 'SladeCode')<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\">tc</span><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'slade-code'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Slade360 Code'</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><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  <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<span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.contact = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'ExtendedContactDetail'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">t_contact</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src.telecom<b> as </b><span style=\"color: maroon\">s_contact</span><span style=\"color: navy\"><b> -&gt; </b></span>t_contact.telecom<b> as </b><span style=\"color: maroon\">t_contact</span><b> then </b>SGHIContactPointMap<span style=\"color: navy\">(</span><span style=\"color: maroon\">s_contact</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t_contact</span><span style=\"color: navy\">)</span> <i>\"setcontact\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"createcontact\"</i><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\">tgt_n</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>tgt_n.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>tgt_n.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>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Meta'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tm</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>tm.profile = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureDefinition/organization'</span> <i>\"setprofileinmeta\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"createhardcodedprofile\"</i><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></pre></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureMap/Organization4toSGHI5"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureMap/Organization4toSGHI5>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "Organization4toSGHI5"] ; #
      fhir:title [ fhir:v "Organization Transforms: R4 → SGHI R5"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-04-27T09:21:43+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 "OrganizationTransformsR4SGHIR5"] ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/4.0/StructureDefinition/Organization"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/4.0/StructureDefinition/Organization>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "OrganizationR4" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/organization"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/organization>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "SGHIOrganization" ]
      ] ) ; #
      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 "SGHIOrganization" ] ;
    fhir:extends [ fhir:v "DomainResource" ] ;
    fhir:typeMode [ fhir:v "type-and-types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "OrganizationR4" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "SGHIOrganization" ] ;
    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 = 'SladeCode') 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 "type" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "st" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t" ] ;
    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:variable [ fhir:v "sc" ] ;
    fhir:condition [ fhir:v "(sc.system = 'SladeCode')" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "tc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"               ]             ] )           ] [
    fhir:context [ fhir:v "tc" ] ;
    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 "tc" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "slade-code"               ]             ] )           ] [
    fhir:context [ fhir:v "tc" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Slade360 Code"               ]             ] )           ] )         ] )       ] [
    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 "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:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "name" ] ;
    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 "createcontact" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "contact" ] ;
    fhir:variable [ fhir:v "t_contact" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "ExtendedContactDetail"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "setcontact" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:variable [ fhir:v "s_contact" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_contact" ] ;
    fhir:element [ fhir:v "telecom" ] ;
    fhir:variable [ fhir:v "t_contact" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "SGHIContactPointMap" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s_contact"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "t_contact"             ]           ] )         ] )       ] )     ] [
    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 "tgt_n" ] ;
    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 "tgt_n" ] ;
    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 "tgt_n" ] ;
    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 "createhardcodedprofile" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "tm" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Meta"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "setprofileinmeta" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tm" ] ;
    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/organization"             ]           ] )         ] )       ] )     ] )
      ] [
    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"           ]         ] )       ] )     ] )
      ] ) . #