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
| Official URL: http://openhie.org/fhir/sri-lanka/StructureMap/HIMSRiskBehaviourQRToLM-TobaccoSmoking | Version: 0.1.0 | |||
| Draft as of 2023-11-10 | Computable Name: HIMSRiskBehaviourQRToLM-TobaccoSmoking | |||
Maps the Risk Behaviour Questionnaire Response to the HIMS Logical Model data elements.
map "http://openhie.org/fhir/sri-lanka/StructureMap/HIMSRiskBehaviourQRToLM-TobaccoSmoking" = "HIMSRiskBehaviourQRToLM-TobaccoSmoking" // 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 = 'tobaccoSmoking' then { answer.value as coding then { coding.code as content -> immzc.tobaccoSmoking = content "SetTobaccoSmoking"; } "ProcessCoding"; } "FirstAnswerForTobaccoSmoking"; } "processItems"; }