lib/health-data-standards/models/cqm/measure.rb in health-data-standards-3.2.0 vs lib/health-data-standards/models/cqm/measure.rb in health-data-standards-3.2.1

- old
+ new

@@ -83,9 +83,13 @@ sub_ids = [] hqmf_measure = measure.as_hqmf_model population_codes = [] if hqmf_measure.populations.length == 1 sub_ids = nil + population = hqmf_measure.populations[0] + HQMF::PopulationCriteria::ALL_POPULATION_CODES.each do |code| + population_codes << population[code] if population[code] + end else #Do not bother with populaions that contain stratifications hqmf_measure.populations.each_with_index do |population,index| if population["stratification"].nil? sub_ids << population_keys[index] \ No newline at end of file