lib/hqmf-parser/converter/pass2/comparison_converter.rb in health-data-standards-3.4.6 vs lib/hqmf-parser/converter/pass2/comparison_converter.rb in health-data-standards-3.5.0
- old
+ new
@@ -60,10 +60,10 @@
new_data_criteria.negation_code_list_id = operator.value.code_list_id
new_data_criteria.negation=true
restriction.converted=true
when 'SUBJ'
new_data_criteria.field_values ||= {}
- new_data_criteria.field_values[operator.field_value_key] = operator.value
+ new_data_criteria.field_values[operator.field_value_key] = operator.value || HQMF::AnyValue.new
restriction.converted=true
else
puts "\tOperator is unknown: #{operator.type}"
restriction.converted=true
end