Sha256: 1c053cf3cac8d5d8425cb95d858e195323b37302116008668b30ca0d95446897
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
module QRDA module Cat1 class MedicationImporter < SectionImporter def initialize(entry_finder = nil) super(entry_finder) @code_xpath = "./cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code" @relevant_period_xpath = "./cda:effectiveTime" @author_datetime_xpath = "./cda:author/cda:time" @dosage_xpath = "./cda:doseQuantity" @route_xpath = "./cda:routeCode" end def create_entry(entry_element, nrh = NarrativeReferenceHandler.new) medication = super medication.dosage = extract_scalar(entry_element, @dosage_xpath) medication.route = code_if_present(entry_element.at_xpath(@route_xpath)) medication end end end end
Version data entries
3 entries across 3 versions & 1 rubygems