Sha256: cafac795deb0d34869c36d446b3aa15078d46344a74708eb43ebab86352b2d9f

Contents?: true

Size: 696 Bytes

Versions: 40

Compression:

Stored size: 696 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)
          extract_code(allergy_element, allergy, "./gc32:type", :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

40 entries across 40 versions & 1 rubygems

Version Path
health-data-standards-3.5.3 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.5.2 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.5.1 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.5.0 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.6 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.5 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.4 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.3 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.2 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.1 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.4.0 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.12 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.3.0 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.11 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.10 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.8 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.7 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.6 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.5 lib/health-data-standards/import/green_c32/allergy_importer.rb
health-data-standards-3.2.4 lib/health-data-standards/import/green_c32/allergy_importer.rb