Sha256: eef84ab5e7c73316e5353b13658da6d66b705b457e959f5e10b86a53bc91fcbd
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 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("./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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-0.8.1 | lib/health-data-standards/import/c32/organization_importer.rb |
health-data-standards-0.8.0 | lib/health-data-standards/import/c32/organization_importer.rb |