Sha256: 1325cdce0335ea38e4185f0e606b993d17cf1ffe397d9475868fe25e5001deef

Contents?: true

Size: 674 Bytes

Versions: 10

Compression:

Stored size: 674 Bytes

Contents

module HealthDataStandards
  module Import
    module C32
      class OrganizationImporter < SectionImporter
        include Singleton
        
        def initialize
          
        end
        
        def extract_organization(org_element)
          return unless org_element
          org = Organization.new
          org.name = org_element.at_xpath("./cda:name | ./cda:representedOrganization/cda:name").try(:text)
          org.addresses = org_element.xpath("./cda:addr").map { |addr| import_address(addr) }
          org.telecoms = org_element.xpath("./cda:telecom").map { |tele| import_telecom(tele) }
          org
        end
        
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
health-data-standards-2.2.1 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-1.0.1 lib/health-data-standards/import/c32/organization_importer.rb
health-data-standards-1.0.0 lib/health-data-standards/import/c32/organization_importer.rb