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

StructureMap:

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

Maps the Medical History Questionnaire Response to the HIMS Logical Model data elements.

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

// Maps the Medical History Questionnaire Response to the HIMS Logical Model data elements.

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

group QRespToIMMZC(source qr : QResp, target immzc : IMMZC) {
  qr.item as item then {
    item.answer first as answer where item.linkId = 'medicalHistory' then {
      answer.value as coding then {
        coding.code as content -> immzc.medicalHistory = content "SetMedicalHistory";
      } "ProcessCoding";
    } "FirstAnswerForMedicalHistory";
  } "processItems";
}