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/HIMSRiskBehaviourQRToLM-PhysicalActivity Version: 0.1.0
Draft as of 2023-11-10 Computable Name: HIMSRiskBehaviourQRToLM-PhysicalActivity

Maps the Risk Behaviour Questionnaire Response to the HIMS Logical Model data elements.

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

// Maps the Risk Behaviour 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/HIMSRiskBehaviourDataDictionary" 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 = 'physicalActivity' then {
      answer.value as coding then {
        coding.code as content -> immzc.physicalActivity = content "SetPhysicalActivity";
      } "ProcessCoding";
    } "FirstAnswerForPhysicalActivity";
  } "processItems";
}