Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

NoMethodError when C32 file doesn't have patient element #43

Open
pelargir opened this issue Jun 28, 2013 · 0 comments
Open

NoMethodError when C32 file doesn't have patient element #43

pelargir opened this issue Jun 28, 2013 · 0 comments

Comments

@pelargir
Copy link
Contributor

PatientImporter#get_demographics blows up at line 130 when the C32 file being parsed doesn't have a "ClinicalDocument > recordTarget > patientRole > patient" element:

NoMethodError: undefined method `at_xpath' for nil:NilClass
    /Users/pelargir/.rvm/gems/ruby-2.0.0-p0/gems/health-data-standards-3.1.1/lib/health-data-standards/import/c32/patient_importer.rb:130:in `get_demographics'
    /Users/pelargir/.rvm/gems/ruby-2.0.0-p0/gems/health-data-standards-3.1.1/lib/health-data-standards/import/c32/patient_importer.rb:86:in `parse_c32'

This should instead be handled gracefully without throwing an exception.

korada pushed a commit to korada/health-data-standards that referenced this issue Nov 5, 2019
Update facility departure datetime
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant