lib/hqmf-model/document.rb in hqmf-parser-1.0.6 vs lib/hqmf-model/document.rb in hqmf-parser-1.1.0

- old
+ new

@@ -125,9 +125,13 @@ # @return [Array] an array of HQMF::DataCriteria describing the data elements used by the measure def all_data_criteria @data_criteria end + def all_code_set_oids + (@data_criteria.map {|d| d.all_code_set_oids }).flatten.compact.uniq + end + # Get the source data criteria that are specific occurrences # @return [Array] an array of HQMF::DataCriteria describing the data elements used by the measure that are specific occurrences def specific_occurrence_source_data_criteria return [] if @source_data_criteria.nil? @source_data_criteria.select {|dc| !dc.specific_occurrence.nil?} \ No newline at end of file