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