Sha256: 3e29b38017a736adcc2ec88c61995a7e891a53517eddc64c5873a797a153efad

Contents?: true

Size: 674 Bytes

Versions: 47

Compression:

Stored size: 674 Bytes

Contents

module HealthDataStandards
  module Import
    module CDA
      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

47 entries across 47 versions & 1 rubygems

Version Path
health-data-standards-3.5.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.6 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.5 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.4 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.3 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.2 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.1 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.4.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.12 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.3.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.11 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.10 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.8 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.7 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.6 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.5 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.4 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.3 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.2 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.2.1 lib/health-data-standards/import/cda/organization_importer.rb