Sha256: b49c168610d825d8f1e01628a0c48b3430739000491d78cfad9a2e12b8587f64
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
module HealthDataStandards module Import module C32 # Helpers for importing C32 addresses and telecoms module LocatableImportUtils def import_address(address_element) address = Address.new address.use = address_element['use'] address.street = address_element.xpath("./cda:streetAddressLine").map {|street| street.text} address.city = address_element.at_xpath("./cda:city").try(:text) address.state = address_element.at_xpath("./cda:state").try(:text) address.zip = address_element.at_xpath("./cda:postalCode").try(:text) address.country = address_element.at_xpath("./cda:country").try(:text) address end def import_telecom(telecom_element) tele = Telecom.new tele.value = telecom_element['value'] tele.use = telecom_element['use'] tele end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-2.2.1 | lib/health-data-standards/import/c32/locatable_import_utils.rb |
health-data-standards-2.2.0 | lib/health-data-standards/import/c32/locatable_import_utils.rb |