class HealthDataStandards::CQM::Bundle

Public Class Methods

latest_bundle_id() click to toggle source
# File lib/health-data-standards/models/cqm/bundle.rb, line 27
def self.latest_bundle_id
  desc(:exported).first.try(:_id)
end

Public Instance Methods

delete() click to toggle source

def value_sets

HealthDataStandards::SVS::ValueSet.in(bundle_id: self.id)

end

Calls superclass method
# File lib/health-data-standards/models/cqm/bundle.rb, line 43
def delete
  self.measures.destroy
  self.records.destroy
  self.value_sets.destroy
  super
end
measures() click to toggle source
# File lib/health-data-standards/models/cqm/bundle.rb, line 31
def measures
  HealthDataStandards::CQM::Measure.where({bundle_id: self.id}).order_by([["id", :asc],["sub_id",:asc]])
end
records() click to toggle source
# File lib/health-data-standards/models/cqm/bundle.rb, line 35
def records
  Record.where(bundle_id: self._id, test_id: nil).order_by([["last", :asc]])
end