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 - JSON Representation

Active as of 2026-04-27

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "Organization4toSGHI5",
      "text" : {
        "status" : "generated",
        "div" : "<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\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureMap/Organization4toSGHI5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Organization4toSGHI5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Organization Transforms: R4 → SGHI R5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/4.0/StructureDefinition/Organization<span style=\"color: navy\">&quot; </span><b>alias </b>OrganizationR4 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-organization.html\" title=\"SGHI Organization\">https://fhir.slade360.co.ke/fhir/StructureDefinition/organization</a><span style=\"color: navy\">&quot; </span><b>alias </b>SGHIOrganization <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">&quot;\r\n</span>\r\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\"> {\r\n</span>  src.text<span style=\"color: navy\"><b> -&gt; </b></span>tgt.text<span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    s.use<span style=\"color: navy\"><b> -&gt; </b></span>t.use <i>&quot;copyuse&quot;</i><span style=\"color: navy\">;</span>\r\n    s.value<span style=\"color: navy\"><b> -&gt; </b></span>t.value <i>&quot;copyvalue&quot;</i><span style=\"color: navy\">;</span>\r\n    s.period<span style=\"color: navy\"><b> -&gt; </b></span>t.period <i>&quot;copyperiod&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\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>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\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>&quot;SetFixedIdentifierSystem&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;processoneidentifier&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    s_id.use<span style=\"color: navy\"><b> -&gt; </b></span>t_id.use <i>&quot;copyuse&quot;</i><span style=\"color: navy\">;</span>\r\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>\r\n    s_id.period<span style=\"color: navy\"><b> -&gt; </b></span>t_id.period<span style=\"color: navy\">;</span>\r\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\"> {\r\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>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\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>&quot;SetFixedIdentifierSystem&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;create the default FHIR ID identifier type&quot;</i><span style=\"color: navy\">;</span>\r\n  src.active<span style=\"color: navy\"><b> -&gt; </b></span>tgt.active<span style=\"color: navy\">;</span>\r\n  src.name<span style=\"color: navy\"><b> -&gt; </b></span>tgt.name<span style=\"color: navy\">;</span>\r\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\"> {\r\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>&quot;setcontact&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;createcontact&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>tgt_n.status = <span style=\"color: blue\">'generated'</span> <i>&quot;settextstatus&quot;</i><span style=\"color: navy\">;</span>\r\n    src<span style=\"color: navy\"><b> -&gt; </b></span>tgt_n.div = <span style=\"color: blue\">'&lt;div xmlns=\\&quot;http://www.w3.org/1999/xhtml\\&quot;&gt;&lt;h1&gt;Generated text&lt;/h1&gt;&lt;/div&gt;'</span> <i>&quot;settextdiv&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;createhardcodedtext&quot;</i><span style=\"color: navy\">;</span>\r\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\"> {\r\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>&quot;setprofileinmeta&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;createhardcodedprofile&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\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\"> {\r\n</span>  src.system<span style=\"color: navy\"><b> -&gt; </b></span>tgt.system<span style=\"color: navy\">;</span>\r\n  src.value<span style=\"color: navy\"><b> -&gt; </b></span>tgt.value<span style=\"color: navy\">;</span>\r\n  src.use<span style=\"color: navy\"><b> -&gt; </b></span>tgt.use<span style=\"color: navy\">;</span>\r\n  src.rank<span style=\"color: navy\"><b> -&gt; </b></span>tgt.rank<span style=\"color: navy\">;</span>\r\n  src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://fhir.slade360.co.ke/fhir/StructureMap/Organization4toSGHI5",
      "version" : "0.1.0",
      "name" : "Organization4toSGHI5",
      "title" : "Organization Transforms: R4 → SGHI R5",
      "status" : "active",
      "date" : "2026-04-27T09:21:43+00:00",
      "publisher" : "Kathurima Kimathi",
      "contact" : [
        {
          "name" : "Kathurima Kimathi",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.linkedin.com/in/kathurima-kimathi/"
            },
            {
              "system" : "email",
              "value" : "kathurimakimathi415@gmail.com"
            }
          ]
        },
        {
          "name" : "Oscar John",
          "telecom" : [
            {
              "system" : "email",
              "value" : "oscarjohnotieno@gmail.com",
              "use" : "work"
            }
          ]
        },
        {
          "name" : "Kennedy Omondi",
          "telecom" : [
            {
              "system" : "email",
              "value" : "kennankole@gmail.com",
              "use" : "work"
            }
          ]
        }
      ],
      "description" : "OrganizationTransformsR4SGHIR5",
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/4.0/StructureDefinition/Organization",
          "mode" : "source",
          "alias" : "OrganizationR4"
        },
        {
          "url" : "https://fhir.slade360.co.ke/fhir/StructureDefinition/organization",
          "mode" : "target",
          "alias" : "SGHIOrganization"
        }
      ],
      "import" : [
        "http://hl7.org/fhir/StructureMap/*4to5"
      ],
      "group" : [
        {
          "name" : "SGHIOrganization",
          "extends" : "DomainResource",
          "typeMode" : "type-and-types",
          "input" : [
            {
              "name" : "src",
              "type" : "OrganizationR4",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "SGHIOrganization",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "text",
              "source" : [
                {
                  "context" : "src",
                  "element" : "text",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "text",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "processoneidentifier",
              "source" : [
                {
                  "context" : "src",
                  "element" : "identifier",
                  "variable" : "s",
                  "condition" : "(s.system = 'SladeCode') and s.value.exists()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "identifier",
                  "variable" : "t"
                }
              ],
              "rule" : [
                {
                  "name" : "copyuse",
                  "source" : [
                    {
                      "context" : "s",
                      "element" : "use",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t",
                      "element" : "use",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "copyvalue",
                  "source" : [
                    {
                      "context" : "s",
                      "element" : "value",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t",
                      "element" : "value",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "copyperiod",
                  "source" : [
                    {
                      "context" : "s",
                      "element" : "period",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t",
                      "element" : "period",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "type",
                  "source" : [
                    {
                      "context" : "s",
                      "element" : "type",
                      "variable" : "st"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t",
                      "element" : "type",
                      "variable" : "tt"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "coding",
                      "source" : [
                        {
                          "context" : "st",
                          "element" : "coding",
                          "variable" : "sc",
                          "condition" : "(sc.system = 'SladeCode')"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tt",
                          "element" : "coding",
                          "variable" : "tc",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "tc",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                            }
                          ]
                        },
                        {
                          "context" : "tc",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "slade-code"
                            }
                          ]
                        },
                        {
                          "context" : "tc",
                          "element" : "display",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "Slade360 Code"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "SetFixedIdentifierSystem",
                  "source" : [
                    {
                      "context" : "s"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "create the default FHIR ID identifier type",
              "source" : [
                {
                  "context" : "src",
                  "element" : "identifier",
                  "variable" : "s_id"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "identifier",
                  "variable" : "t_id"
                }
              ],
              "rule" : [
                {
                  "name" : "copyuse",
                  "source" : [
                    {
                      "context" : "s_id",
                      "element" : "use",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_id",
                      "element" : "use",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "id",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "id",
                      "variable" : "uuid"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_id",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "period",
                  "source" : [
                    {
                      "context" : "s_id",
                      "element" : "period",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_id",
                      "element" : "period",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "type",
                  "source" : [
                    {
                      "context" : "s_id",
                      "element" : "type",
                      "variable" : "st"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_id",
                      "element" : "type",
                      "variable" : "tt"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "coding",
                      "source" : [
                        {
                          "context" : "st",
                          "element" : "coding"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tt",
                          "element" : "coding",
                          "variable" : "tt",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "CodeableConcept"
                            }
                          ]
                        },
                        {
                          "context" : "tt",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                            }
                          ]
                        },
                        {
                          "context" : "tt",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "fhir-id"
                            }
                          ]
                        },
                        {
                          "context" : "tt",
                          "element" : "display",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "FHIR Id"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "SetFixedIdentifierSystem",
                  "source" : [
                    {
                      "context" : "s_id"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_id",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "active",
              "source" : [
                {
                  "context" : "src",
                  "element" : "active",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "active",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "name",
              "source" : [
                {
                  "context" : "src",
                  "element" : "name",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "name",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "createcontact",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "contact",
                  "variable" : "t_contact",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "ExtendedContactDetail"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "setcontact",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "telecom",
                      "variable" : "s_contact"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_contact",
                      "element" : "telecom",
                      "variable" : "t_contact"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "SGHIContactPointMap",
                      "parameter" : [
                        {
                          "valueId" : "s_contact"
                        },
                        {
                          "valueId" : "t_contact"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "createhardcodedtext",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "text",
                  "variable" : "tgt_n",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Narrative"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "settextstatus",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt_n",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "generated"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "settextdiv",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tgt_n",
                      "element" : "div",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Generated text</h1></div>"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "createhardcodedprofile",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "meta",
                  "variable" : "tm",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Meta"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "setprofileinmeta",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tm",
                      "element" : "profile",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/StructureDefinition/organization"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "SGHIContactPointMap",
          "extends" : "ContactPoint",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "system",
              "source" : [
                {
                  "context" : "src",
                  "element" : "system",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "system",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "value",
              "source" : [
                {
                  "context" : "src",
                  "element" : "value",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "value",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "use",
              "source" : [
                {
                  "context" : "src",
                  "element" : "use",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "use",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "rank",
              "source" : [
                {
                  "context" : "src",
                  "element" : "rank",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "rank",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "period",
              "source" : [
                {
                  "context" : "src",
                  "element" : "period",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "period",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }