lib/health-data-standards/models/entry.rb in health-data-standards-3.4.6 vs lib/health-data-standards/models/entry.rb in health-data-standards-3.5.0

- old
+ new

@@ -1,8 +1,9 @@ class Entry - + include ActiveModel::MassAssignmentSecurity include Mongoid::Document + include Mongoid::Attributes::Dynamic include ThingWithCodes # embedded_in :entry_list, polymorphic: true embedded_in :record @@ -14,18 +15,13 @@ field :time, type: Integer field :start_time, type: Integer field :end_time, type: Integer field :status_code, type: Hash field :mood_code, type: String, default: "EVN" - field :negationInd, type: Boolean - field :negationReason, type: Hash + field :negationInd, as: :negation_ind, type: Boolean + field :negationReason, as: :negation_reason, type: Hash field :oid, type: String field :reason, type: Hash - - alias :negation_ind :negationInd - alias :negation_ind= :negationInd= - alias :negation_reason :negationReason - alias :negation_reason= :negationReason= attr_protected :version attr_protected :_id attr_protected :created_at attr_protected :updated_at \ No newline at end of file