app/models/qdm/tacoma/measure.rb in cqm-models-0.7.7 vs app/models/qdm/tacoma/measure.rb in cqm-models-0.8.0
- old
+ new
@@ -72,10 +72,10 @@
field :complexity, type: Hash
# Relations to other model classes
belongs_to :user
belongs_to :bundle, class_name: 'HealthDataStandards::CQM::Bundle'
- has_and_belongs_to_many :records, inverse_of: nil
+ has_and_belongs_to_many :patients, inverse_of: nil
has_one :package, class_name: 'CqlMeasurePackage', inverse_of: :measure, dependent: :destroy
scope :by_measure_id, ->(id) { where('measure_id' => id) }
scope :by_type, ->(type) { where('type' => type) }
scope :by_user, ->(user) { where user_id: user.id }