Ethiopia FHIR Implementation Guide - HIV Treatment & Care Services
1.0.1 - ci-build Ethiopia flag

Ethiopia FHIR Implementation Guide - HIV Treatment & Care Services, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/ethiopia-hiv/ and changes regularly. See the Directory of published versions

: Map Observation Propietary Value CodeableConcept to a Standard CodeableConcept - XML Representation

Draft as of 2024-10-14

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ObservationPropietaryValueToStandardCodingValue"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap ObservationPropietaryValueToStandardCodingValue</b></p><a name="ObservationPropietaryValueToStandardCodingValue"> </a><a name="hcObservationPropietaryValueToStandardCodingValue"> </a><a name="ObservationPropietaryValueToStandardCodingValue-en-US"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue<span style="color: navy">&quot; = &quot;</span>ObservationPropietaryValueToStandardCodingValue<span style="color: navy">&quot;

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/conceptmap.html" title="ConceptMap">http://hl7.org/fhir/StructureDefinition/ConceptMap</a><span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/observation.html" title="Observation">http://hl7.org/fhir/StructureDefinition/Observation</a><span style="color: navy">&quot; </span><b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/observation.html" title="Observation">http://hl7.org/fhir/StructureDefinition/Observation</a><span style="color: navy">&quot; </span><b>as </b><b>target</b>

<b>group </b>ObservationPropietaryValueToStandardCodingValue<span style="color: navy">(</span><b>source</b> <span style="color: maroon">obsSrc</span><span style="color: navy"> : </span>Observation, <b>source</b> <span style="color: maroon">conceptMapSrc</span><span style="color: navy"> : </span>ConceptMap, <b>target</b> <span style="color: maroon">obsTgt</span><span style="color: navy"> : </span>Observation<span style="color: navy">)</span><span style="color: navy"> {
</span>  obsSrc.value<span style="color: navy"> : </span>CodeableConcept<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>obsTgt.value = <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">vt</span><b> then</b><span style="color: navy"> {
</span>    vs.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
</span>      conceptMapSrc.url<b> as </b><span style="color: maroon">url</span><b> then</b><span style="color: navy"> {
</span>        coding<span style="color: navy"><b> -&gt; </b></span>vt = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">coding</span><span style="color: navy">, </span><span style="color: maroon">url</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span> <i>&quot;SetObservationCode&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;SetObservationCoding&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;SetObservationValue&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue"/>
  <version value="1.0.1"/>
  <name value="ObservationPropietaryValueToStandardCodingValue"/>
  <status value="draft"/>
  <date value="2024-10-14T10:58:37+00:00"/>
  <publisher value="Jembi Health Systems"/>
  <contact>
    <name value="Jembi Health Systems"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.jembi.org"/>
    </telecom>
    <telecom>
      <system value="email"/>
      <value value="info@jembi.org"/>
    </telecom>
  </contact>
  <contact>
    <name value="Jembi Health Systems"/>
    <telecom>
      <system value="email"/>
      <value value="info@jembi.org"/>
      <use value="work"/>
    </telecom>
  </contact>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="ET"/>
      <display value="Ethiopia"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/ConceptMap"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Observation"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Observation"/>
    <mode value="target"/>
  </structure>
  <group>
    <name value="ObservationPropietaryValueToStandardCodingValue"/>
    <typeMode value="none"/>
    <input>
      <name value="obsSrc"/>
      <type value="Observation"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="conceptMapSrc"/>
      <type value="ConceptMap"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="obsTgt"/>
      <type value="Observation"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="SetObservationValue"/>
      <source>
        <context value="obsSrc"/>
        <type value="CodeableConcept"/>
        <element value="value"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="obsTgt"/>
        <contextType value="variable"/>
        <element value="value"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="CodeableConcept"/>
        </parameter>
      </target>
      <rule>
        <name value="SetObservationCoding"/>
        <source>
          <context value="vs"/>
          <element value="coding"/>
          <variable value="coding"/>
        </source>
        <rule>
          <name value="url"/>
          <source>
            <context value="conceptMapSrc"/>
            <element value="url"/>
            <variable value="url"/>
          </source>
          <rule>
            <name value="SetObservationCode"/>
            <source>
              <context value="coding"/>
            </source>
            <target>
              <context value="vt"/>
              <contextType value="variable"/>
              <transform value="translate"/>
              <parameter>
                <valueId value="coding"/>
              </parameter>
              <parameter>
                <valueId value="url"/>
              </parameter>
              <parameter>
                <valueString value="code"/>
              </parameter>
            </target>
          </rule>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>