Sha256: a0aeec5549e19303d181f0700eb2b3456db0eade082eac0e59ea7bd20a37ba99
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
module CQM # Patient model that holds non-QDM data for the patient class Patient include Mongoid::Document field :givenNames, type: Array field :familyName, type: String field :bundleId, type: String field :expectedValues, type: Array field :notes, type: String field :measure_ids, type: Array has_and_belongs_to_many :providers, class_name: 'CQM::Provider' embeds_one :qdmPatient, class_name: 'QDM::Patient', autobuild: true has_many :calculation_results, class_name: 'CQM::IndividualResult', inverse_of: :patient # Include '_type' in any JSON output. This is necessary for deserialization. def to_json(options = nil) serializable_hash(include: :_type, methods: :_type).to_json(options) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cqm-models-4.2.0 | app/models/cqm/patient.rb |
cqm-models-3.1.2 | app/models/cqm/patient.rb |
cqm-models-3.1.1 | app/models/cqm/patient.rb |