Sha256: 769cdd9138c1eb1ede85de9eb34b46cc3983f95158d3a7c8c2419ee1aa1394fa
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
module HealthDataStandards module Import module GreenC32 class AllergyImporter < SectionImporter include Singleton def import(allergy_xml) allergy_xml.root.add_namespace_definition('gc32', "urn:hl7-org:greencda:c32") allergy_element = allergy_xml.xpath("./gc32:allergy") allergy = Allergy.new extract_entry(allergy_element, allergy) allergy.type = extract_node_text(allergy_element.at_xpath("./gc32:type")) extract_code(allergy_element, allergy, "./gc32:reaction", :reaction) extract_code(allergy_element, allergy, "./gc32:severity", :severity) allergy end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-0.8.1 | lib/health-data-standards/import/green_c32/allergy_importer.rb |
health-data-standards-0.8.0 | lib/health-data-standards/import/green_c32/allergy_importer.rb |