Tanzania FHIR Facade Implementation Guide
0.1.0 - ci-build Tanzania

Tanzania FHIR Facade Implementation Guide, published by Ministry of Health – Tanzania. 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/Speedykom/tz-fhir-ig/ and changes regularly. See the Directory of published versions

: ZHSFClaimSubmissionToClaim - XML Representation

Active as of 2025-12-12

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ZHSFClaimSubmissionToClaim"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ZHSFClaimSubmissionToClaim</b></p><a name="ZHSFClaimSubmissionToClaim"> </a><a name="hcZHSFClaimSubmissionToClaim"> </a><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://moh.tz/fhir/StructureMap/ZHSFClaimSubmissionToClaim'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ZHSFClaimSubmissionToClaim'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-zhsf-claim-submission-payload.html" title="ZHSF Claim Submission API Payload">http://moh.tz/fhir/StructureDefinition/zhsf-claim-submission-payload</a><span style="color: navy">&quot; </span><b>alias </b>src <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-tz-claim.html" title="Tanzania Claim Profile">http://moh.tz/fhir/StructureDefinition/tz-claim</a><span style="color: navy">&quot; </span><b>alias </b>clm <b>as </b><b>target</b>

<b>group </b>main<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ZHSFClaimSubmissionPayload, <b>target</b> <span style="color: maroon">clm</span><span style="color: navy"> : </span>Claim<span style="color: navy">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.SubmissionNo<b> as </b><span style="color: maroon">sNo</span><span style="color: navy"><b> -&gt; </b></span>clm.identifier[0].value = <span style="color: maroon">sNo</span> <i>&quot;setIdentifier&quot;</i><span style="color: navy">;</span>
  src.FacilityCode<b> as </b><span style="color: maroon">fc</span><span style="color: navy"><b> -&gt; </b></span>clm.facility.identifier.value = <span style="color: maroon">fc</span> <i>&quot;setFacility&quot;</i><span style="color: navy">;</span>
  src.DateSubmitted<b> as </b><span style="color: maroon">ds</span><span style="color: navy"><b> -&gt; </b></span>clm.created = <span style="color: maroon">ds</span> <i>&quot;setCreatedDate&quot;</i><span style="color: navy">;</span>
  src.AmountClaimed<b> as </b><span style="color: maroon">amt</span><span style="color: navy"><b> -&gt; </b></span>clm.total.value = <span style="color: maroon">amt</span> <i>&quot;setAmount&quot;</i><span style="color: navy">;</span>
  src.Remarks<b> as </b><span style="color: maroon">rm</span><span style="color: navy"><b> -&gt; </b></span>clm.supportingInfo[0].valueString = <span style="color: maroon">rm</span> <i>&quot;setRemarks&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://moh.tz/fhir/StructureMap/ZHSFClaimSubmissionToClaim"/>
  <version value="0.1.0"/>
  <name value="ZHSFClaimSubmissionToClaim"/>
  <status value="active"/>
  <date value="2025-12-12T06:14:16+00:00"/>
  <publisher value="Ministry of Health – Tanzania"/>
  <contact>
    <name value="Ministry of Health – Tanzania"/>
    <telecom>
      <system value="url"/>
      <value value="https://moh.go.tz"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@moh.go.tz"/>
    </telecom>
  </contact>
  <contact>
    <name value="Tanzania Digital Health Team"/>
    <telecom>
      <system value="email"/>
      <value value="contact@speedykom.org"/>
      <use value="work"/>
    </telecom>
  </contact>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="834"/>
      <display value="Tanzania"/>
    </coding>
  </jurisdiction>
  <structure>
    <url
         value="http://moh.tz/fhir/StructureDefinition/zhsf-claim-submission-payload"/>
    <mode value="source"/>
    <alias value="src"/>
  </structure>
  <structure>
    <url value="http://moh.tz/fhir/StructureDefinition/tz-claim"/>
    <mode value="target"/>
    <alias value="clm"/>
  </structure>
  <group>
    <name value="main"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ZHSFClaimSubmissionPayload"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="clm"/>
      <type value="Claim"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="setIdentifier"/>
      <source>
        <context value="src"/>
        <element value="SubmissionNo"/>
        <variable value="sNo"/>
      </source>
      <target>
        <context value="clm"/>
        <element value="identifier[0].value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="sNo"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="setFacility"/>
      <source>
        <context value="src"/>
        <element value="FacilityCode"/>
        <variable value="fc"/>
      </source>
      <target>
        <context value="clm"/>
        <element value="facility.identifier.value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="fc"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="setCreatedDate"/>
      <source>
        <context value="src"/>
        <element value="DateSubmitted"/>
        <variable value="ds"/>
      </source>
      <target>
        <context value="clm"/>
        <element value="created"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="ds"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="setAmount"/>
      <source>
        <context value="src"/>
        <element value="AmountClaimed"/>
        <variable value="amt"/>
      </source>
      <target>
        <context value="clm"/>
        <element value="total.value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="amt"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="setRemarks"/>
      <source>
        <context value="src"/>
        <element value="Remarks"/>
        <variable value="rm"/>
      </source>
      <target>
        <context value="clm"/>
        <element value="supportingInfo[0].valueString"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="rm"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>