Sha256: 2c1f8888454c05f7ec4ae5a0bc99e62ead42156198a8c1e6e9914d348b1c6e21
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 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 # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cqm-models-1.1.1.0 | app/models/cqm/patient.rb |