Sha256: e6adcdc8b26ca672998588b4c8a8734ad8de9129482f45e004cb87b74cfd8928

Contents?: true

Size: 744 Bytes

Versions: 15

Compression:

Stored size: 744 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'

    # 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

15 entries across 15 versions & 1 rubygems

Version Path
cqm-models-4.1.1 app/models/cqm/patient.rb
cqm-models-4.1.0 app/models/cqm/patient.rb
cqm-models-4.0.2 app/models/cqm/patient.rb
cqm-models-4.0.1 app/models/cqm/patient.rb
cqm-models-4.0.0 app/models/cqm/patient.rb
cqm-models-3.1.0 app/models/cqm/patient.rb
cqm-models-3.0.6 app/models/cqm/patient.rb
cqm-models-3.0.5 app/models/cqm/patient.rb
cqm-models-3.0.4 app/models/cqm/patient.rb
cqm-models-3.0.3 app/models/cqm/patient.rb
cqm-models-3.0.2 app/models/cqm/patient.rb
cqm-models-3.0.1 app/models/cqm/patient.rb
cqm-models-2.0.1 app/models/cqm/patient.rb
cqm-models-3.0.0 app/models/cqm/patient.rb
cqm-models-2.0.0 app/models/cqm/patient.rb