module HealthDataStandards module Import module CCDA class ConditionImporter < C32::ConditionImporter def initialize @entry_xpath = "//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5.1']/cda:entry/cda:act/cda:entryRelationship/cda:observation" @status_xpath = "./cda:entryRelationship/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.6']/cda:value" @description_xpath = "./cda:text/cda:reference[@value]" @code_xpath = "./cda:value" #optional #health status #age at onset end end end end end