MeasureAuthoringTool / health-data-standards

https://rubygems.org/gems/health-data-standards
Apache License 2.0
94 stars 93 forks source link

CDA > MedicationImporter #547

Open wahmedswl opened 6 years ago

wahmedswl commented 6 years ago

Hi, In medication_import, Hash value is called as method at https://github.com/projectcypress/health-data-standards/blob/mongoid5/lib/health-data-standards/import/cda/medication_importer.rb#L42 for medication.allowed_administrations. Shouldn't it be extract_scalar(entry_element, "./cda:repeatNumber")['value'] as getting following exception

NoMethodError - undefined method `value' for {"unit"=>nil, "value"=>1}:Hash

Thanks

dczulada commented 6 years ago

I cannot recreate this issue. Are you still experiencing this behavior?