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