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

Draft as of 2024-10-14

Raw json | Download

{
  "resourceType" : "StructureMap",
  "id" : "ObservationPropietaryValueToStandardCodingValue",
  "text" : {
    "status" : "generated",
    "div" : "<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\">\r\n<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;\r\n\r\n</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>\r\n<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>\r\n<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>\r\n\r\n<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\"> {\r\n</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\"> {\r\n</span>    vs.coding<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span>      conceptMapSrc.url<b> as </b><span style=\"color: maroon\">url</span><b> then</b><span style=\"color: navy\"> {\r\n</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>\r\n      <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>\r\n    <span style=\"color: navy\">}</span> <i>&quot;SetObservationCoding&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;SetObservationValue&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "http://moh.gov.et/fhir/hiv/StructureMap/ObservationPropietaryValueToStandardCodingValue",
  "version" : "1.0.1",
  "name" : "ObservationPropietaryValueToStandardCodingValue",
  "status" : "draft",
  "date" : "2024-10-14T10:58:37+00:00",
  "publisher" : "Jembi Health Systems",
  "contact" : [
    {
      "name" : "Jembi Health Systems",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.jembi.org"
        },
        {
          "system" : "email",
          "value" : "info@jembi.org"
        }
      ]
    },
    {
      "name" : "Jembi Health Systems",
      "telecom" : [
        {
          "system" : "email",
          "value" : "info@jembi.org",
          "use" : "work"
        }
      ]
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "ET",
          "display" : "Ethiopia"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/ConceptMap",
      "mode" : "source"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "source"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "target"
    }
  ],
  "group" : [
    {
      "name" : "ObservationPropietaryValueToStandardCodingValue",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "obsSrc",
          "type" : "Observation",
          "mode" : "source"
        },
        {
          "name" : "conceptMapSrc",
          "type" : "ConceptMap",
          "mode" : "source"
        },
        {
          "name" : "obsTgt",
          "type" : "Observation",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "SetObservationValue",
          "source" : [
            {
              "context" : "obsSrc",
              "type" : "CodeableConcept",
              "element" : "value",
              "variable" : "vs"
            }
          ],
          "target" : [
            {
              "context" : "obsTgt",
              "contextType" : "variable",
              "element" : "value",
              "variable" : "vt",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "SetObservationCoding",
              "source" : [
                {
                  "context" : "vs",
                  "element" : "coding",
                  "variable" : "coding"
                }
              ],
              "rule" : [
                {
                  "name" : "url",
                  "source" : [
                    {
                      "context" : "conceptMapSrc",
                      "element" : "url",
                      "variable" : "url"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "SetObservationCode",
                      "source" : [
                        {
                          "context" : "coding"
                        }
                      ],
                      "target" : [
                        {
                          "context" : "vt",
                          "contextType" : "variable",
                          "transform" : "translate",
                          "parameter" : [
                            {
                              "valueId" : "coding"
                            },
                            {
                              "valueId" : "url"
                            },
                            {
                              "valueString" : "code"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}