Open wahmedswl opened 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
medication.allowed_administrations
extract_scalar(entry_element, "./cda:repeatNumber")['value']
NoMethodError - undefined method `value' for {"unit"=>nil, "value"=>1}:Hash
Thanks
I cannot recreate this issue. Are you still experiencing this behavior?
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 beextract_scalar(entry_element, "./cda:repeatNumber")['value']
as getting following exceptionNoMethodError - undefined method `value' for {"unit"=>nil, "value"=>1}:Hash
Thanks