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

## : Condition Transforms: R4 → SGHI R5 - JSON Representation

Active as of 2026-05-21

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "ConditionSGHI5",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap ConditionSGHI5</b></p><a name=\"ConditionSGHI5\"> </a><a name=\"hcConditionSGHI5\"> </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/ConditionSGHI5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'ConditionSGHI5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Condition 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/Condition<span style=\"color: navy\">&quot; </span><b>alias </b>ConditionR4 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-condition.html\" title=\"SGHI Condition\">https://fhir.slade360.co.ke/fhir/StructureDefinition/condition</a><span style=\"color: navy\">&quot; </span><b>alias </b>SGHICondition <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>SGHICondition<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ConditionR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SGHICondition<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.id<b> as </b><span style=\"color: maroon\">uuid</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.id = <span style=\"color: maroon\">uuid</span><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.language<span style=\"color: navy\"><b> -&gt; </b></span>tgt.language<span style=\"color: navy\">;</span>\r\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\"> {\r\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/condition'</span> <i>&quot;addprofile&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;addtometa&quot;</i><span style=\"color: navy\">;</span>\r\n  src<b> where </b>text.exists().not()<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\"> {\r\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>t_text.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>t_text.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.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\">ttt</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    src.text<b> as </b><span style=\"color: maroon\">st</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      st.status<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>ttt.status = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n      st.div<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>ttt.div = <span style=\"color: navy\">(</span>'&lt;div xmlns=\\&quot;http://www.w3.org/1999/xhtml\\&quot;&gt;&lt;p&gt;' + d + '&lt;/p&gt;&lt;/div&gt;'<span style=\"color: navy\">)</span> <i>&quot;wraptextinhtml&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;setting text&quot;</i><span style=\"color: navy\">;</span>\r\n  src.id<b> as </b><span style=\"color: maroon\">s_id</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Identifier'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">t_ident</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    s_id<b> as </b><span style=\"color: maroon\">uuid</span><span style=\"color: navy\"><b> -&gt; </b></span>t_ident.value = <span style=\"color: maroon\">uuid</span> <i>&quot;copyid&quot;</i><span style=\"color: navy\">;</span>\r\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_ident.use = <span style=\"color: blue\">'official'</span> <i>&quot;setuse&quot;</i><span style=\"color: navy\">;</span>\r\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_ident.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span> <i>&quot;setsystem&quot;</i><span style=\"color: navy\">;</span>\r\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_ident.type = <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\">t_type</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      src<span style=\"color: navy\"><b> -&gt; </b></span>t_type.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">t_code</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        src<span style=\"color: navy\"><b> -&gt; </b></span>t_code.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span> <i>&quot;typesystem&quot;</i><span style=\"color: navy\">;</span>\r\n        src<span style=\"color: navy\"><b> -&gt; </b></span>t_code.code = <span style=\"color: blue\">'fhir-id'</span> <i>&quot;typecode&quot;</i><span style=\"color: navy\">;</span>\r\n        src<span style=\"color: navy\"><b> -&gt; </b></span>t_code.display = <span style=\"color: blue\">'FHIR Id'</span> <i>&quot;typedisplay&quot;</i><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span> <i>&quot;initcoding&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;inittype&quot;</i><span style=\"color: navy\">;</span>\r\n    src.meta<b> as </b><span style=\"color: maroon\">sm</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      sm.tag last<b> as </b><span style=\"color: maroon\">st</span><span style=\"color: navy\"><b> -&gt; </b></span>t_ident.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\">ta</span><b> then </b>TransformAssigner<span style=\"color: navy\">(</span><span style=\"color: maroon\">st</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ta</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;setting owner&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;addfhirididentifier&quot;</i><span style=\"color: navy\">;</span>\r\n  src.code<b> as </b><span style=\"color: maroon\">scode</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<b> as </b><span style=\"color: maroon\">tcode</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    scode.coding<b> as </b><span style=\"color: maroon\">d</span><b> where </b>system.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tcode.coding = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    scode.coding<b> as </b><span style=\"color: maroon\">d</span><b> where </b>d.system.exists()<span style=\"color: navy\"><b> -&gt; </b></span>tcode.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcoding</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcoding.code = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcoding.system = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'system'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcoding.display = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.text = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  src.subject<b> as </b><span style=\"color: maroon\">sb</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject<b> as </b><span style=\"color: maroon\">tb</span><b> then </b>TransformReference<span style=\"color: navy\">(</span><span style=\"color: maroon\">sb</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tb</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.encounter<b> as </b><span style=\"color: maroon\">se</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.encounter<b> as </b><span style=\"color: maroon\">te</span><b> then </b>TransformReference<span style=\"color: navy\">(</span><span style=\"color: maroon\">se</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">te</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.verificationStatus<b> as </b><span style=\"color: maroon\">sv</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.verificationStatus<b> as </b><span style=\"color: maroon\">tv</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    sv.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span>tv.coding<b> as </b><span style=\"color: maroon\">tc</span><b> then </b>TransformCoding<span style=\"color: navy\">(</span><span style=\"color: maroon\">sc</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tc</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    sv.text<span style=\"color: navy\"><b> -&gt; </b></span>tv.text<span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  src.category<b> as </b><span style=\"color: maroon\">sg</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.category<b> as </b><span style=\"color: maroon\">tg</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    sg.coding<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tg.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcode</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.code = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.system = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'system'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.display = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      d.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tg.text = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  src.severity<b> as </b><span style=\"color: maroon\">sv</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.severity<b> as </b><span style=\"color: maroon\">tv</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    sv.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span>tv.coding<b> as </b><span style=\"color: maroon\">tc</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      sc.system<span style=\"color: navy\"><b> -&gt; </b></span>tc.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span><span style=\"color: navy\">;</span>\r\n      sc.code<span style=\"color: navy\"><b> -&gt; </b></span>tc.code<span style=\"color: navy\">;</span>\r\n      sc.display<span style=\"color: navy\"><b> -&gt; </b></span>tc.display<span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n    sv.text<span style=\"color: navy\"><b> -&gt; </b></span>tv.text<span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  src.clinicalStatus<b> as </b><span style=\"color: maroon\">sg</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.clinicalStatus<b> as </b><span style=\"color: maroon\">tg</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    sg.coding<b> as </b><span style=\"color: maroon\">scode</span><span style=\"color: navy\"><b> -&gt; </b></span>tg.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcode</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      scode.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.code = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      scode.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.system = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'system'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      scode.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tcode.display = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      scode.code<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tg.text = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">d</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'display'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  src<b> where </b>severity.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.severity = <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\">tcc</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>tcc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      src<span style=\"color: navy\"><b> -&gt; </b></span>tc.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span> <i>&quot;set default system&quot;</i><span style=\"color: navy\">;</span>\r\n      src<span style=\"color: navy\"><b> -&gt; </b></span>tc.code = <span style=\"color: blue\">'mild'</span> <i>&quot;set default code&quot;</i><span style=\"color: navy\">;</span>\r\n      src<span style=\"color: navy\"><b> -&gt; </b></span>tc.display = <span style=\"color: blue\">'Mild'</span> <i>&quot;setting default display&quot;</i><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;set severity coding&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;set default severity&quot;</i><span style=\"color: navy\">;</span>\r\n  src<b> where </b>participant.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.participant = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'BackboneElement'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tb</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    src.meta<b> as </b><span style=\"color: maroon\">sm</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      src.meta<b> as </b><span style=\"color: maroon\">sm</span><b> then</b><span style=\"color: navy\"> {\r\n</span>        sm.tag last<b> as </b><span style=\"color: maroon\">st</span><span style=\"color: navy\"><b> -&gt; </b></span>tb.actor = <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\">ta</span><b> then </b>TransformAssigner<span style=\"color: navy\">(</span><span style=\"color: maroon\">st</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">ta</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n      <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;setting participant&quot;</i><span style=\"color: navy\">;</span>\r\n  src.recordedDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.recordedDate<span style=\"color: navy\">;</span>\r\n  src.onsetDate<b> as </b><span style=\"color: maroon\">sd</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset = <span style=\"color: maroon\">sd</span><span style=\"color: navy\">;</span>\r\n  src.note<b> as </b><span style=\"color: maroon\">sn</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.note<b> as </b><span style=\"color: maroon\">tn</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    sn.time<span style=\"color: navy\"><b> -&gt; </b></span>tn.time<span style=\"color: navy\">;</span>\r\n    sn.text<span style=\"color: navy\"><b> -&gt; </b></span>tn.text<span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>TransformAssigner<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> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.code<b> as </b><span style=\"color: maroon\">code</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Organization/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">code</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src<b> where </b>display.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display = <span style=\"color: blue\">'Unknown display'</span> <i>&quot;setting default display&quot;</i><span style=\"color: navy\">;</span>\r\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>\r\n  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.id<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>TransformReference<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> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.id<span style=\"color: navy\"><b> -&gt; </b></span>tgt.id<span style=\"color: navy\">;</span>\r\n  src.reference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reference<span style=\"color: navy\">;</span>\r\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>\r\n  src<b> where </b>display.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display = <span style=\"color: blue\">'Unknown display'</span> <i>&quot;setting display&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>TransformCoding<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> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>\r\n  src<b> where </b>display.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display = <span style=\"color: blue\">'Unknown display'</span> <i>&quot;settingdefaultdisplay&quot;</i><span style=\"color: navy\">;</span>\r\n  src.system<span style=\"color: navy\"><b> -&gt; </b></span>tgt.system<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/ConditionSGHI5",
      "version" : "0.1.0",
      "name" : "ConditionSGHI5",
      "title" : "Condition Transforms: R4 → SGHI R5",
      "status" : "active",
      "date" : "2026-05-21T09:38:13+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" : "ConditionTransformsR4SGHIR5",
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/4.0/StructureDefinition/Condition",
          "mode" : "source",
          "alias" : "ConditionR4"
        },
        {
          "url" : "https://fhir.slade360.co.ke/fhir/StructureDefinition/condition",
          "mode" : "target",
          "alias" : "SGHICondition"
        }
      ],
      "import" : [
        "http://hl7.org/fhir/StructureMap/*4to5"
      ],
      "group" : [
        {
          "name" : "SGHICondition",
          "typeMode" : "type-and-types",
          "input" : [
            {
              "name" : "src",
              "type" : "ConditionR4",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "SGHICondition",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "id",
              "source" : [
                {
                  "context" : "src",
                  "element" : "id",
                  "variable" : "uuid"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "id",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "uuid"
                    }
                  ]
                }
              ]
            },
            {
              "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" : "language",
              "source" : [
                {
                  "context" : "src",
                  "element" : "language",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "language",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "addtometa",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "meta",
                  "variable" : "t_meta"
                }
              ],
              "rule" : [
                {
                  "name" : "addprofile",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_meta",
                      "element" : "profile",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/StructureDefinition/condition"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "createhardcodedtext",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "text.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "text",
                  "variable" : "t_text",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Narrative"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "settextstatus",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_text",
                      "element" : "status",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "generated"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "settextdiv",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_text",
                      "element" : "div",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Generated text</h1></div>"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "setting text",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "text",
                  "variable" : "ttt",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Narrative"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "text",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "text",
                      "variable" : "st"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "status",
                      "source" : [
                        {
                          "context" : "st",
                          "element" : "status",
                          "variable" : "s"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "ttt",
                          "element" : "status",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueId" : "s"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "wraptextinhtml",
                      "source" : [
                        {
                          "context" : "st",
                          "element" : "div",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "ttt",
                          "element" : "div",
                          "transform" : "evaluate",
                          "parameter" : [
                            {
                              "valueString" : "'<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p>' + d + '</p></div>'"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "addfhirididentifier",
              "source" : [
                {
                  "context" : "src",
                  "element" : "id",
                  "variable" : "s_id"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "identifier",
                  "variable" : "t_ident",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Identifier"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "copyid",
                  "source" : [
                    {
                      "context" : "s_id",
                      "variable" : "uuid"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_ident",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "uuid"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "setuse",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_ident",
                      "element" : "use",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "official"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "setsystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_ident",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "inittype",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "t_ident",
                      "element" : "type",
                      "variable" : "t_type",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "CodeableConcept"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "initcoding",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "t_type",
                          "element" : "coding",
                          "variable" : "t_code",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Coding"
                            }
                          ]
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "typesystem",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "t_code",
                              "element" : "system",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "typecode",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "t_code",
                              "element" : "code",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "fhir-id"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "typedisplay",
                          "source" : [
                            {
                              "context" : "src"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "t_code",
                              "element" : "display",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "FHIR Id"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "setting owner",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "meta",
                      "variable" : "sm"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "tag",
                      "source" : [
                        {
                          "context" : "sm",
                          "element" : "tag",
                          "listMode" : "last",
                          "variable" : "st"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "t_ident",
                          "element" : "assigner",
                          "variable" : "ta",
                          "transform" : "create",
                          "parameter" : [
                            {
                              "valueString" : "Reference"
                            }
                          ]
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "TransformAssigner",
                          "parameter" : [
                            {
                              "valueId" : "st"
                            },
                            {
                              "valueId" : "ta"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "code",
              "source" : [
                {
                  "context" : "src",
                  "element" : "code",
                  "variable" : "scode"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "code",
                  "variable" : "tcode"
                }
              ],
              "rule" : [
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "scode",
                      "element" : "coding",
                      "variable" : "d",
                      "condition" : "system.exists().not()"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tcode",
                      "element" : "coding",
                      "transform" : "translate",
                      "parameter" : [
                        {
                          "valueId" : "d"
                        },
                        {
                          "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition"
                        },
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "scode",
                      "element" : "coding",
                      "variable" : "d",
                      "condition" : "d.system.exists()"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tcode",
                      "element" : "coding",
                      "variable" : "tcoding",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcoding",
                          "element" : "code",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition"
                            },
                            {
                              "valueString" : "code"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcoding",
                          "element" : "system",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition"
                            },
                            {
                              "valueString" : "system"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcoding",
                          "element" : "display",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "text",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/CIELtoICD11Condition"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "subject",
              "source" : [
                {
                  "context" : "src",
                  "element" : "subject",
                  "variable" : "sb"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "subject",
                  "variable" : "tb"
                }
              ],
              "dependent" : [
                {
                  "name" : "TransformReference",
                  "parameter" : [
                    {
                      "valueId" : "sb"
                    },
                    {
                      "valueId" : "tb"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "encounter",
              "source" : [
                {
                  "context" : "src",
                  "element" : "encounter",
                  "variable" : "se"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "encounter",
                  "variable" : "te"
                }
              ],
              "dependent" : [
                {
                  "name" : "TransformReference",
                  "parameter" : [
                    {
                      "valueId" : "se"
                    },
                    {
                      "valueId" : "te"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "verificationStatus",
              "source" : [
                {
                  "context" : "src",
                  "element" : "verificationStatus",
                  "variable" : "sv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "verificationStatus",
                  "variable" : "tv"
                }
              ],
              "rule" : [
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "sv",
                      "element" : "coding",
                      "variable" : "sc"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tv",
                      "element" : "coding",
                      "variable" : "tc"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "TransformCoding",
                      "parameter" : [
                        {
                          "valueId" : "sc"
                        },
                        {
                          "valueId" : "tc"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "text",
                  "source" : [
                    {
                      "context" : "sv",
                      "element" : "text",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tv",
                      "element" : "text",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "category",
              "source" : [
                {
                  "context" : "src",
                  "element" : "category",
                  "variable" : "sg"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "category",
                  "variable" : "tg"
                }
              ],
              "rule" : [
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "sg",
                      "element" : "coding",
                      "variable" : "d"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tg",
                      "element" : "coding",
                      "variable" : "tcode",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "code",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap"
                            },
                            {
                              "valueString" : "code"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "system",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap"
                            },
                            {
                              "valueString" : "system"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "display",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "d",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tg",
                          "element" : "text",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRCodeCategoryMap"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "severity",
              "source" : [
                {
                  "context" : "src",
                  "element" : "severity",
                  "variable" : "sv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "severity",
                  "variable" : "tv"
                }
              ],
              "rule" : [
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "sv",
                      "element" : "coding",
                      "variable" : "sc"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tv",
                      "element" : "coding",
                      "variable" : "tc"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "system",
                      "source" : [
                        {
                          "context" : "sc",
                          "element" : "system"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "sc",
                          "element" : "code",
                          "variable" : "vvv"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "code",
                          "variable" : "vvv",
                          "transform" : "create"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "DefaultMappingGroupAnonymousAlias",
                          "parameter" : [
                            {
                              "valueId" : "vvv"
                            },
                            {
                              "valueId" : "vvv"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "display",
                      "source" : [
                        {
                          "context" : "sc",
                          "element" : "display",
                          "variable" : "vvv"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "display",
                          "variable" : "vvv",
                          "transform" : "create"
                        }
                      ],
                      "dependent" : [
                        {
                          "name" : "DefaultMappingGroupAnonymousAlias",
                          "parameter" : [
                            {
                              "valueId" : "vvv"
                            },
                            {
                              "valueId" : "vvv"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "text",
                  "source" : [
                    {
                      "context" : "sv",
                      "element" : "text",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tv",
                      "element" : "text",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "clinicalStatus",
              "source" : [
                {
                  "context" : "src",
                  "element" : "clinicalStatus",
                  "variable" : "sg"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "clinicalStatus",
                  "variable" : "tg"
                }
              ],
              "rule" : [
                {
                  "name" : "coding",
                  "source" : [
                    {
                      "context" : "sg",
                      "element" : "coding",
                      "variable" : "scode"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tg",
                      "element" : "coding",
                      "variable" : "tcode",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "scode",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "code",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap"
                            },
                            {
                              "valueString" : "code"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "scode",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "system",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap"
                            },
                            {
                              "valueString" : "system"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "scode",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tcode",
                          "element" : "display",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "code",
                      "source" : [
                        {
                          "context" : "scode",
                          "element" : "code",
                          "variable" : "d"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tg",
                          "element" : "text",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "d"
                            },
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/ConceptMap/FHIRClinicalStatusMap"
                            },
                            {
                              "valueString" : "display"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "set default severity",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "severity.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "severity",
                  "variable" : "tcc",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "CodeableConcept"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "set severity coding",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tcc",
                      "element" : "coding",
                      "variable" : "tc",
                      "transform" : "create",
                      "parameter" : [
                        {
                          "valueString" : "Coding"
                        }
                      ]
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "set default system",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "system",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "set default code",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "code",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "mild"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name" : "setting default display",
                      "source" : [
                        {
                          "context" : "src"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "tc",
                          "element" : "display",
                          "transform" : "copy",
                          "parameter" : [
                            {
                              "valueString" : "Mild"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "setting participant",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "participant.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "participant",
                  "variable" : "tb",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "BackboneElement"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "meta",
                  "source" : [
                    {
                      "context" : "src",
                      "element" : "meta",
                      "variable" : "sm"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "meta",
                      "source" : [
                        {
                          "context" : "src",
                          "element" : "meta",
                          "variable" : "sm"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "tag",
                          "source" : [
                            {
                              "context" : "sm",
                              "element" : "tag",
                              "listMode" : "last",
                              "variable" : "st"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "tb",
                              "element" : "actor",
                              "variable" : "ta",
                              "transform" : "create",
                              "parameter" : [
                                {
                                  "valueString" : "Reference"
                                }
                              ]
                            }
                          ],
                          "dependent" : [
                            {
                              "name" : "TransformAssigner",
                              "parameter" : [
                                {
                                  "valueId" : "st"
                                },
                                {
                                  "valueId" : "ta"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "recordedDate",
              "source" : [
                {
                  "context" : "src",
                  "element" : "recordedDate",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "recordedDate",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "onsetDate",
              "source" : [
                {
                  "context" : "src",
                  "element" : "onsetDate",
                  "variable" : "sd"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "onset",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "sd"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "note",
              "source" : [
                {
                  "context" : "src",
                  "element" : "note",
                  "variable" : "sn"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "note",
                  "variable" : "tn"
                }
              ],
              "rule" : [
                {
                  "name" : "time",
                  "source" : [
                    {
                      "context" : "sn",
                      "element" : "time",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tn",
                      "element" : "time",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "text",
                  "source" : [
                    {
                      "context" : "sn",
                      "element" : "text",
                      "variable" : "vvv"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "tn",
                      "element" : "text",
                      "variable" : "vvv",
                      "transform" : "create"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "DefaultMappingGroupAnonymousAlias",
                      "parameter" : [
                        {
                          "valueId" : "vvv"
                        },
                        {
                          "valueId" : "vvv"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "TransformAssigner",
          "typeMode" : "types",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "code",
              "source" : [
                {
                  "context" : "src",
                  "element" : "code",
                  "variable" : "code"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "reference",
                  "transform" : "append",
                  "parameter" : [
                    {
                      "valueString" : "Organization/"
                    },
                    {
                      "valueId" : "code"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "setting default display",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "display.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Unknown display"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "src",
                  "element" : "display",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "code",
              "source" : [
                {
                  "context" : "src",
                  "element" : "code",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "id",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "TransformReference",
          "typeMode" : "types",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "id",
              "source" : [
                {
                  "context" : "src",
                  "element" : "id",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "id",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "reference",
              "source" : [
                {
                  "context" : "src",
                  "element" : "reference",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "reference",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "src",
                  "element" : "display",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "setting display",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "display.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Unknown display"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "TransformCoding",
          "typeMode" : "types",
          "input" : [
            {
              "name" : "src",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "code",
              "source" : [
                {
                  "context" : "src",
                  "element" : "code",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "code",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "src",
                  "element" : "display",
                  "variable" : "vvv"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "variable" : "vvv",
                  "transform" : "create"
                }
              ],
              "dependent" : [
                {
                  "name" : "DefaultMappingGroupAnonymousAlias",
                  "parameter" : [
                    {
                      "valueId" : "vvv"
                    },
                    {
                      "valueId" : "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "settingdefaultdisplay",
              "source" : [
                {
                  "context" : "src",
                  "condition" : "display.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Unknown display"
                    }
                  ]
                }
              ]
            },
            {
              "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"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }