lib/health-data-standards/models/cqm/bundle.rb in health-data-standards-3.4.6 vs lib/health-data-standards/models/cqm/bundle.rb in health-data-standards-3.5.0
- old
+ new
@@ -2,22 +2,25 @@
module CQM
class Bundle
include Mongoid::Document
include Mongoid::Timestamps
+ include Mongoid::Attributes::Dynamic
store_in collection: 'bundles'
field :title, type: String
+ field :name, type: String
field :version, type: String
field :license, type: String
field :extensions, type: Array
+ field :measures, type: Array
field :effective_date
field :measure_period_start
field :records, type: Array
field :active, type: Boolean
validates_presence_of :version
- scope :active, where(active: true)
+ scope :active, -> {where(active: true)}
def self.latest_bundle_id
desc(:exported).first.try(:_id)
end
\ No newline at end of file