lib/measure_validator.rb in cqm-validators-3.0.0 vs lib/measure_validator.rb in cqm-validators-3.0.1

- old
+ new

@@ -10,10 +10,10 @@ def validate(file, data = {}) @errors = [] @doc = get_document(file) @doc.root.add_namespace_definition('cda', 'urn:hl7-org:v3') - measure_ids = CQM::Measure.all.map(&:hqmf_id) + measure_ids = CQM::Measure.pluck(:hqmf_id) doc_measure_ids = @doc.xpath(measure_selector).map(&:value).map(&:upcase) # list of all of the set ids in the QRDA doc_neutral_ids = @doc.xpath(neutral_measure_selector).map(&:value).map(&:upcase).sort # list of all of the setids in the QRDA that are also in the bundle, includes duplicates if code appears twice in document bundle_neutral_ids = CQM::Measure.distinct(:hqmf_set_id)