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

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

Active as of 2026-04-27

Raw ttl | Download

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

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

     a fhir:StructureMap ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "MedicationRequestSGHI5"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap MedicationRequestSGHI5</b></p><a name=\"MedicationRequestSGHI5\"> </a><a name=\"hcMedicationRequestSGHI5\"> </a><pre class=\"fml\">#xD;\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureMap/MedicationRequestSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MedicationRequestSGHI5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'MedicationRequest Transforms: R4 → SGHI R5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest<span style=\"color: navy\">\" </span><b>alias </b>MedicationRequestR4 <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-medicationrequest.html\" title=\"SGHI MedicationRequest\">https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest</a><span style=\"color: navy\">\" </span><b>alias </b>SGHIMedicationRequest <b>as </b><b>target</b>#xD;\n#xD;\n<b>imports</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">\"#xD;\n</span>#xD;\n<b>group </b>SGHIMedicationRequest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationRequestR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SGHIMedicationRequest<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {#xD;\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>#xD;\n  src.active<span style=\"color: navy\"><b> -&gt; </b></span>tgt.active<span style=\"color: navy\">;</span>#xD;\n  src.language<span style=\"color: navy\"><b> -&gt; </b></span>tgt.language<span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.meta<b> as </b><span style=\"color: maroon\">t_meta</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>t_meta.profile = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest'</span> <i>\"addprofile\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"addtometa\"</i><span style=\"color: navy\">;</span>#xD;\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\"> {#xD;\n</span>    src<span style=\"color: navy\"><b> -&gt; </b></span>t_text.status = <span style=\"color: blue\">'generated'</span> <i>\"settextstatus\"</i><span style=\"color: navy\">;</span>#xD;\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_text.div = <span style=\"color: blue\">'&lt;div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"&gt;&lt;h1&gt;Generated text&lt;/h1&gt;&lt;/div&gt;'</span> <i>\"settextdiv\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"createhardcodedtext\"</i><span style=\"color: navy\">;</span>#xD;\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.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\"> {#xD;\n</span>    src.text<b> as </b><span style=\"color: maroon\">st</span><b> then</b><span style=\"color: navy\"> {#xD;\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>#xD;\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=\\\"http://www.w3.org/1999/xhtml\\\"&gt;&lt;p&gt;' + d + '&lt;/p&gt;&lt;/div&gt;'<span style=\"color: navy\">)</span> <i>\"wraptextinhtml\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setting text\"</i><span style=\"color: navy\">;</span>#xD;\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\"> {#xD;\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>\"copyid\"</i><span style=\"color: navy\">;</span>#xD;\n    src<span style=\"color: navy\"><b> -&gt; </b></span>t_ident.use = <span style=\"color: blue\">'official'</span> <i>\"setuse\"</i><span style=\"color: navy\">;</span>#xD;\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>\"setsystem\"</i><span style=\"color: navy\">;</span>#xD;\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\"> {#xD;\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\"> {#xD;\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>\"typesystem\"</i><span style=\"color: navy\">;</span>#xD;\n        src<span style=\"color: navy\"><b> -&gt; </b></span>t_code.code = <span style=\"color: blue\">'fhir-id'</span> <i>\"typecode\"</i><span style=\"color: navy\">;</span>#xD;\n        src<span style=\"color: navy\"><b> -&gt; </b></span>t_code.display = <span style=\"color: blue\">'FHIR Id'</span> <i>\"typedisplay\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"initcoding\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"inittype\"</i><span style=\"color: navy\">;</span>#xD;\n    src.meta<b> as </b><span style=\"color: maroon\">sm</span><b> then</b><span style=\"color: navy\"> {#xD;\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>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setting owner\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"addfhirididentifier\"</i><span style=\"color: navy\">;</span>#xD;\n  src.status<span style=\"color: navy\"><b> -&gt; </b></span>tgt.status<span style=\"color: navy\">;</span>#xD;\n  src.intent<span style=\"color: navy\"><b> -&gt; </b></span>tgt.intent<span style=\"color: navy\">;</span>#xD;\n  src.priority<span style=\"color: navy\"><b> -&gt; </b></span>tgt.priority<span style=\"color: navy\">;</span>#xD;\n  src.authoredOn<span style=\"color: navy\"><b> -&gt; </b></span>tgt.authoredOn<span style=\"color: navy\">;</span>#xD;\n  src.medication<b> as </b><span style=\"color: maroon\">sm</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.medication = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableReference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tm</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    src<b> where </b>reference.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span>tm.reference = <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\">trf</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      sm.text<span style=\"color: navy\"><b> -&gt; </b></span>trf.display<span style=\"color: navy\">;</span>#xD;\n      sm.text<b> as </b><span style=\"color: maroon\">txt</span><span style=\"color: navy\"><b> -&gt; </b></span>trf.reference = <b>append</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Medication/'</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">txt</span><span style=\"color: navy\">)</span> <i>\"dummy reference\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"set reference\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\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>#xD;\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>#xD;\n  src.requester<b> as </b><span style=\"color: maroon\">sr</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.requester<b> as </b><span style=\"color: maroon\">tr</span><b> then </b>TransformReference<span style=\"color: navy\">(</span><span style=\"color: maroon\">sr</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tr</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\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\"> {#xD;\n</span>    sg.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span>tg.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>#xD;\n    sg.text<span style=\"color: navy\"><b> -&gt; </b></span>tg.text<span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\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\"> {#xD;\n</span>    sn.time<span style=\"color: navy\"><b> -&gt; </b></span>tn.time<span style=\"color: navy\">;</span>#xD;\n    sn.text<span style=\"color: navy\"><b> -&gt; </b></span>tn.text<span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src.dosageInstruction<b> as </b><span style=\"color: maroon\">sd</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.dosageInstruction<b> as </b><span style=\"color: maroon\">td</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    sd.asNeeded<span style=\"color: navy\"><b> -&gt; </b></span>td.asNeeded<span style=\"color: navy\">;</span>#xD;\n    sd.doseAndRate<b> as </b><span style=\"color: maroon\">sd</span><span style=\"color: navy\"><b> -&gt; </b></span>td.doseAndRate<b> as </b><span style=\"color: maroon\">td</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      sd.doseQuantity<b> as </b><span style=\"color: maroon\">sq</span><span style=\"color: navy\"><b> -&gt; </b></span>td.doseQuantity<b> as </b><span style=\"color: maroon\">tq</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        sq.code<span style=\"color: navy\"><b> -&gt; </b></span>tq.code<span style=\"color: navy\">;</span>#xD;\n        sq.system<span style=\"color: navy\"><b> -&gt; </b></span>tq.system<span style=\"color: navy\">;</span>#xD;\n        sq.unit<span style=\"color: navy\"><b> -&gt; </b></span>tq.unit<span style=\"color: navy\">;</span>#xD;\n        sq.value<span style=\"color: navy\"><b> -&gt; </b></span>tq.value<span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    sd.patientInstruction<span style=\"color: navy\"><b> -&gt; </b></span>td.patientInstruction<span style=\"color: navy\">;</span>#xD;\n    sd.route<b> as </b><span style=\"color: maroon\">sr</span><span style=\"color: navy\"><b> -&gt; </b></span>td.route<b> as </b><span style=\"color: maroon\">tr</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      sr.coding<b> as </b><span style=\"color: maroon\">sc</span><span style=\"color: navy\"><b> -&gt; </b></span>tr.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>#xD;\n      sr<b> where </b>coding.exists().not()<span style=\"color: navy\"><b> -&gt; </b></span> tr.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><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'iv'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Intravenous'</span> <i>\"setting default route\"</i><span style=\"color: navy\">;</span>#xD;\n      sr.text<span style=\"color: navy\"><b> -&gt; </b></span>tr.text<span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    sd.timing<b> as </b><span style=\"color: maroon\">st</span><span style=\"color: navy\"><b> -&gt; </b></span>td.timing<b> as </b><span style=\"color: maroon\">tt</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      st.repeat<b> as </b><span style=\"color: maroon\">sp</span><span style=\"color: navy\"><b> -&gt; </b></span>tt.repeat<b> as </b><span style=\"color: maroon\">tp</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        sp.boundsPeriod<b> as </b><span style=\"color: maroon\">sprd</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.boundsPeriod<b> as </b><span style=\"color: maroon\">tprd</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>          sprd.end<span style=\"color: navy\"><b> -&gt; </b></span>tprd.end<span style=\"color: navy\">;</span>#xD;\n          sprd.start<span style=\"color: navy\"><b> -&gt; </b></span>tprd.start<span style=\"color: navy\">;</span>#xD;\n        <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n        sp.duration<span style=\"color: navy\"><b> -&gt; </b></span>tp.duration<span style=\"color: navy\">;</span>#xD;\n        sp.durationUnit<span style=\"color: navy\"><b> -&gt; </b></span>tp.durationUnit<span style=\"color: navy\">;</span>#xD;\n        sp.frequency<span style=\"color: navy\"><b> -&gt; </b></span>tp.frequency<span style=\"color: navy\">;</span>#xD;\n        sp.period<span style=\"color: navy\"><b> -&gt; </b></span>tp.period<span style=\"color: navy\">;</span>#xD;\n        sp.periodUnit<span style=\"color: navy\"><b> -&gt; </b></span>tp.periodUnit<span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\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\"> {#xD;\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>#xD;\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>\"setting default display\"</i><span style=\"color: navy\">;</span>#xD;\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>#xD;\n  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.id<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\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\"> {#xD;\n</span>  src.id<span style=\"color: navy\"><b> -&gt; </b></span>tgt.id<span style=\"color: navy\">;</span>#xD;\n  src.reference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reference<span style=\"color: navy\">;</span>#xD;\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>#xD;\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>\"setting display\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\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\"> {#xD;\n</span>  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<span style=\"color: navy\">;</span>#xD;\n  src.display<span style=\"color: navy\"><b> -&gt; </b></span>tgt.display<span style=\"color: navy\">;</span>#xD;\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>\"settingdefaultdisplay\"</i><span style=\"color: navy\">;</span>#xD;\n  src.system<span style=\"color: navy\"><b> -&gt; </b></span>tgt.system<span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureMap/MedicationRequestSGHI5"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureMap/MedicationRequestSGHI5>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "MedicationRequestSGHI5"] ; #
      fhir:title [ fhir:v "MedicationRequest Transforms: R4 → SGHI R5"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-04-27T09:21:43+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Kathurima Kimathi"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Kathurima Kimathi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.linkedin.com/in/kathurima-kimathi/" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kathurimakimathi415@gmail.com" ]     ] )
      ] [
    fhir:name [ fhir:v "Oscar John" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "oscarjohnotieno@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] [
    fhir:name [ fhir:v "Kennedy Omondi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kennankole@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "MedicationRequestTransformsR4SGHIR5"] ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "MedicationRequestR4" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "SGHIMedicationRequest" ]
      ] ) ; #
      fhir:import ( [
    fhir:v "http://hl7.org/fhir/StructureMap/*4to5"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureMap/*4to5>
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "SGHIMedicationRequest" ] ;
    fhir:typeMode [ fhir:v "type-and-types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "MedicationRequestR4" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "SGHIMedicationRequest" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "uuid" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "active" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "active" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "active" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "language" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "addtometa" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "t_meta" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "addprofile" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_meta" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "createhardcodedtext" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "text.exists().not()" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "t_text" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Narrative"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "settextstatus" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_text" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "generated"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "settextdiv" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_text" ] ;
    fhir:element [ fhir:v "div" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Generated text</h1></div>"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "setting text" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "ttt" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Narrative"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "text" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "st" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "status" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "st" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:variable [ fhir:v "s" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "ttt" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "wraptextinhtml" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "st" ] ;
    fhir:element [ fhir:v "div" ] ;
    fhir:variable [ fhir:v "d" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "ttt" ] ;
    fhir:element [ fhir:v "div" ] ;
    fhir:transform [ fhir:v "evaluate" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "'<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p>' + d + '</p></div>'"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "addfhirididentifier" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "s_id" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "identifier" ] ;
    fhir:variable [ fhir:v "t_ident" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Identifier"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "copyid" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "s_id" ] ;
    fhir:variable [ fhir:v "uuid" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_ident" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "uuid"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "setuse" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_ident" ] ;
    fhir:element [ fhir:v "use" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "official"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "setsystem" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_ident" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "inittype" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "t_ident" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:variable [ fhir:v "t_type" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableConcept"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "initcoding" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "t_type" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "t_code" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"               ]             ] )           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "typesystem" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "t_code" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "typecode" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "t_code" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "fhir-id"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "typedisplay" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "src" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "t_code" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "FHIR Id"                 ]               ] )             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "setting owner" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "sm" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "tag" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sm" ] ;
    fhir:element [ fhir:v "tag" ] ;
    fhir:listMode [ fhir:v "last" ] ;
    fhir:variable [ fhir:v "st" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "t_ident" ] ;
    fhir:element [ fhir:v "assigner" ] ;
    fhir:variable [ fhir:v "ta" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Reference"               ]             ] )           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "TransformAssigner" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "st"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "ta"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "status" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "intent" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "intent" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "intent" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "priority" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "priority" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "priority" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "authoredOn" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "authoredOn" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "authoredOn" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "medication" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "medication" ] ;
    fhir:variable [ fhir:v "sm" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "medication" ] ;
    fhir:variable [ fhir:v "tm" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "CodeableReference"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "set reference" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "reference.exists().not()" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tm" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "trf" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Reference"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "text" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sm" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "trf" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "dummy reference" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sm" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "txt" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "trf" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "append" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Medication/"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "txt"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "subject" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "sb" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "tb" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "TransformReference" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "sb"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tb"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "encounter" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "se" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "te" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "TransformReference" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "se"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "te"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "requester" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "requester" ] ;
    fhir:variable [ fhir:v "sr" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "requester" ] ;
    fhir:variable [ fhir:v "tr" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "TransformReference" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "sr"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tr"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "category" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:variable [ fhir:v "sg" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:variable [ fhir:v "tg" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "coding" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sg" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "sc" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tg" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "tc" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "TransformCoding" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "sc"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tc"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "text" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sg" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tg" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "note" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "note" ] ;
    fhir:variable [ fhir:v "sn" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "note" ] ;
    fhir:variable [ fhir:v "tn" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "time" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sn" ] ;
    fhir:element [ fhir:v "time" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tn" ] ;
    fhir:element [ fhir:v "time" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "text" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sn" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tn" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "dosageInstruction" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "dosageInstruction" ] ;
    fhir:variable [ fhir:v "sd" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "dosageInstruction" ] ;
    fhir:variable [ fhir:v "td" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "asNeeded" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "asNeeded" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "asNeeded" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "doseAndRate" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "doseAndRate" ] ;
    fhir:variable [ fhir:v "sd" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "doseAndRate" ] ;
    fhir:variable [ fhir:v "td" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "doseQuantity" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "doseQuantity" ] ;
    fhir:variable [ fhir:v "sq" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "doseQuantity" ] ;
    fhir:variable [ fhir:v "tq" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "code" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sq" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tq" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "system" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sq" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tq" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "unit" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sq" ] ;
    fhir:element [ fhir:v "unit" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tq" ] ;
    fhir:element [ fhir:v "unit" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "value" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sq" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tq" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "patientInstruction" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "patientInstruction" ] ;
    fhir:variable [ fhir:v "vvv" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "patientInstruction" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]         ] ) ;
            ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "route" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "route" ] ;
    fhir:variable [ fhir:v "sr" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "route" ] ;
    fhir:variable [ fhir:v "tr" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "coding" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sr" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "sc" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tr" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "tc" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "TransformCoding" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "sc"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "tc"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "setting default route" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sr" ] ;
    fhir:condition [ fhir:v "coding.exists().not()" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tr" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "tc" ] ;
    fhir:transform [ fhir:v "create" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Coding"               ]             ] )           ] [
    fhir:context [ fhir:v "tc" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem"               ]             ] )           ] [
    fhir:context [ fhir:v "tc" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "iv"               ]             ] )           ] [
    fhir:context [ fhir:v "tc" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Intravenous"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "text" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "sr" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tr" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]           ] ) ;
              ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"               ]             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "timing" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "sd" ] ;
    fhir:element [ fhir:v "timing" ] ;
    fhir:variable [ fhir:v "st" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "td" ] ;
    fhir:element [ fhir:v "timing" ] ;
    fhir:variable [ fhir:v "tt" ]         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "repeat" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "st" ] ;
    fhir:element [ fhir:v "repeat" ] ;
    fhir:variable [ fhir:v "sp" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "tt" ] ;
    fhir:element [ fhir:v "repeat" ] ;
    fhir:variable [ fhir:v "tp" ]           ] ) ;
              ( fhir:rule [
    fhir:name [ fhir:v "boundsPeriod" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "boundsPeriod" ] ;
    fhir:variable [ fhir:v "sprd" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "boundsPeriod" ] ;
    fhir:variable [ fhir:v "tprd" ]             ] ) ;
                ( fhir:rule [
    fhir:name [ fhir:v "end" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "sprd" ] ;
    fhir:element [ fhir:v "end" ] ;
    fhir:variable [ fhir:v "vvv" ]               ] ) ;
                  ( fhir:target [
    fhir:context [ fhir:v "tprd" ] ;
    fhir:element [ fhir:v "end" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                    ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                   ]                 ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                   ]                 ] )               ] )             ] [
    fhir:name [ fhir:v "start" ] ;
                  ( fhir:source [
    fhir:context [ fhir:v "sprd" ] ;
    fhir:element [ fhir:v "start" ] ;
    fhir:variable [ fhir:v "vvv" ]               ] ) ;
                  ( fhir:target [
    fhir:context [ fhir:v "tprd" ] ;
    fhir:element [ fhir:v "start" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]               ] ) ;
                  ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                    ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                   ]                 ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                   ]                 ] )               ] )             ] )           ] [
    fhir:name [ fhir:v "duration" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "duration" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "duration" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "durationUnit" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "durationUnit" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "durationUnit" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "frequency" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "frequency" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "frequency" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "period" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "period" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] [
    fhir:name [ fhir:v "periodUnit" ] ;
                ( fhir:source [
    fhir:context [ fhir:v "sp" ] ;
    fhir:element [ fhir:v "periodUnit" ] ;
    fhir:variable [ fhir:v "vvv" ]             ] ) ;
                ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "periodUnit" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]             ] ) ;
                ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
                  ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"                 ]               ] )             ] )           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TransformAssigner" ] ;
    fhir:typeMode [ fhir:v "types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "code" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Organization/"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "code"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setting default display" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "display.exists().not()" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Unknown display"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "display" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TransformReference" ] ;
    fhir:typeMode [ fhir:v "types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "reference" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "display" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "setting display" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "display.exists().not()" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Unknown display"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TransformCoding" ] ;
    fhir:typeMode [ fhir:v "types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "display" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "settingdefaultdisplay" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:condition [ fhir:v "display.exists().not()" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "Unknown display"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "system" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:variable [ fhir:v "vvv" ] ;
    fhir:transform [ fhir:v "create" ]       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] [
    fhir:value [
    a fhir:Id ;
    fhir:v "vvv"           ]         ] )       ] )     ] )
      ] ) . #