HL7 FHIR Implementation Guide: Sri Lanka
0.1.0 - STU1 International flag

HL7 FHIR Implementation Guide: Sri Lanka, published by Jembi Health Systems. This is not an authorized publication; it is the continuous build for version 0.1.0. This version is based on the current content of https://github.com/jembi/Sri-Lanka and changes regularly. See the Directory of published versions

: null - JSON Representation

Draft as of 2023-11-10

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "HIMSMedicalHistoryLMToCondition",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://openhie.org/fhir/sri-lanka/StructureMap/HIMSMedicalHistoryLMToCondition<span style=\"color: navy\">&quot; = &quot;</span>HIMSMedicalHistoryLMToCondition<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Maps the HIMS logical model data elements to the Condition resource data elements.</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-HIMSMedicalHistoryDataDictionary.html\" title=\"HIMS Medical History\">http://openhie.org/fhir/sri-lanka/StructureDefinition/HIMSMedicalHistoryDataDictionary</a><span style=\"color: navy\">&quot; </span><b>alias </b>IMMZC <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/bundle.html\" title=\"Bundle\">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style=\"color: navy\">&quot; </span><b>alias </b>Bundle <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/condition.html\" title=\"Condition\">http://hl7.org/fhir/StructureDefinition/Condition</a><span style=\"color: navy\">&quot; </span><b>alias </b>Condition <b>as </b><b>target</b>\r\n\r\n<b>group </b>DataDictToCondition<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">immzc</span><span style=\"color: navy\"> : </span>IMMZC, <b>target</b> <span style=\"color: maroon\">condition</span><span style=\"color: navy\"> : </span>Condition<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  immzc.medicalHistory<b> as </b><span style=\"color: maroon\">medicalHistory</span><span style=\"color: navy\"><b> -&gt; </b></span><span style=\"color: maroon\">condition</span><b> as </b><span style=\"color: maroon\">cond</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    medicalHistory<span style=\"color: navy\"><b> -&gt; </b></span>cond.code = <span style=\"color: maroon\">medicalHistory</span> <i>&quot;SetMedicalHistoryValue&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;SetMedicalHistory&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "http://openhie.org/fhir/sri-lanka/StructureMap/HIMSMedicalHistoryLMToCondition",
  "version" : "0.1.0",
  "name" : "HIMSMedicalHistoryLMToCondition",
  "status" : "draft",
  "date" : "2023-11-10T04:37:53+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" : "Richard Langford",
      "telecom" : [
        {
          "system" : "email",
          "value" : "richard.langford@jembi.org",
          "use" : "work"
        }
      ]
    }
  ],
  "description" : "Maps the HIMS logical model data elements to the Condition resource data elements.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001",
          "display" : "World"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://openhie.org/fhir/sri-lanka/StructureDefinition/HIMSMedicalHistoryDataDictionary",
      "mode" : "source",
      "alias" : "IMMZC"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode" : "target",
      "alias" : "Bundle"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Condition",
      "mode" : "target",
      "alias" : "Condition"
    }
  ],
  "group" : [
    {
      "name" : "DataDictToCondition",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "immzc",
          "type" : "IMMZC",
          "mode" : "source"
        },
        {
          "name" : "condition",
          "type" : "Condition",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "SetMedicalHistory",
          "source" : [
            {
              "context" : "immzc",
              "element" : "medicalHistory",
              "variable" : "medicalHistory"
            }
          ],
          "target" : [
            {
              "contextType" : "variable",
              "variable" : "cond",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "condition"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "SetMedicalHistoryValue",
              "source" : [
                {
                  "context" : "medicalHistory"
                }
              ],
              "target" : [
                {
                  "context" : "cond",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "medicalHistory"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}