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