app/models/cqm/measure.rb in cqm-models-1.1.1.0 vs app/models/cqm/measure.rb in cqm-models-2.0.0

- old
+ new

@@ -71,9 +71,11 @@ # but don't care about the inverse relationship (e.g. we never really care # about getting all the measures from a ValueSet object, # hence the 'inverse_of: nil') has_and_belongs_to_many :value_sets, inverse_of: nil + has_many :calculation_results, class_name: 'CQM::IndividualResult' + def all_stratifications population_sets.flat_map(&:stratifications) end # Returns the hqmf-parser's ruby implementation of an HQMF document.