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-4.3.5 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.3.4 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.3.3 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.3.2 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.3.1 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.3.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.2.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.1.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.6 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.5 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.4 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.3 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.2 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.1 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-4.0.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.7.0 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.6.1 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.5.3 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.5.2 lib/health-data-standards/import/cda/organization_importer.rb
health-data-standards-3.5.1 lib/health-data-standards/import/cda/organization_importer.rb