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"; }
Maps the Risk Behaviour Questionnaire Response to the HIMS Logical Model data elements.