HL7 FHIR Implementation Guide: Sri Lanka
0.1.0 - STU1

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

## StructureMap:

Official URL: http://openhie.org/fhir/sri-lanka/StructureMap/HIMSMedicalHistoryLMToCondition | Version: 0.1.0
Draft as of 2023-11-10 | Computable Name: HIMSMedicalHistoryLMToCondition

Maps the HIMS logical model data elements to the Condition resource data elements.

    map "http://openhie.org/fhir/sri-lanka/StructureMap/HIMSMedicalHistoryLMToCondition" = "HIMSMedicalHistoryLMToCondition"

    // Maps the HIMS logical model data elements to the Condition resource data elements.

    uses "http://openhie.org/fhir/sri-lanka/StructureDefinition/HIMSMedicalHistoryDataDictionary" alias IMMZC as source
    uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target
    uses "http://hl7.org/fhir/StructureDefinition/Condition" alias Condition as target

    group DataDictToCondition(source immzc : IMMZC, target condition : Condition) {
      immzc.medicalHistory as medicalHistory -> condition as cond then {
        medicalHistory -> cond.code = medicalHistory "SetMedicalHistoryValue";
      } "SetMedicalHistory";
    }