Sha256: 1aeaaa40f4a97c4aacccc24579b95b0bbd768b203350e53a1ae41b9ac8b6f3c3

Contents?: true

Size: 971 Bytes

Versions: 38

Compression:

Stored size: 971 Bytes

Contents

module HealthDataStandards
  module Import
    module GreenC32
      class ImmunizationImporter < SectionImporter
        include Singleton
        
        def import(immunization_xml)
          immunization_xml.root.add_namespace_definition('gc32', "urn:hl7-org:greencda:c32")
          immunization_element = immunization_xml.at_xpath("./gc32:immunization")
          immunization = Immunization.new
          extract_entry(immunization_element, immunization)
          extract_time(immunization_element, immunization, "./gc32:effectiveTime")
          extract_code(immunization_element, immunization, "./gc32:refusalReason")
          series_number = extract_node_text(immunization_element.at_xpath("./gc32:seriesNumber"))
          immunization.series_number = series_number.to_i if series_number
          immunization.refusal_ind = extract_node_attribute(immunization_element, :refused, true)
          immunization
        end
        
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
health-data-standards-3.2.3 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.2.2 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.2.1 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.2.0 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.1.1 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.1.0 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.0.6 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.0.5 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.0.4 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-3.0.3 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.2.1 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/green_c32/immunization_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/green_c32/immunization_importer.rb