Sha256: f0467f66f00e6e5e06de6203125d27a48fc526a76f9ae6d382ccaa5daee30b83

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

module HealthDataStandards
  module Import
    module GreenC32
      class SocialHistoryImporter < SectionImporter
        include Singleton
        
        def import(sh_xml)
          sh_xml.root.add_namespace_definition('gc32', "urn:hl7-org:greencda:c32")
          sh_element = sh_xml.at_xpath("./gc32:socialHistory")
          sh = SocialHistory.new
          extract_entry(sh_element, sh)
          extract_code(sh_element, sh, "./gc32:type", :type)
          sh
        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/social_history_importer.rb
health-data-standards-0.8.0 lib/health-data-standards/import/green_c32/social_history_importer.rb