Sha256: 031563dc31e8e9df7d7d182f9e7725f9f876aacdea03275e1186c9b178ee574c

Contents?: true

Size: 1.03 KB

Versions: 19

Compression:

Stored size: 1.03 KB

Contents

const mongoose = require('mongoose/browser');
const Code = require('../basetypes/Code');
const Interval = require('../basetypes/Interval');
const Quantity = require('../basetypes/Quantity');
const DateTime = require('../basetypes/DateTime');
const { QDMPatientSchema, QDMPatient } = require('../QDMPatient');
const { ProviderSchema } = require('./Provider');

const [Schema, Number, String, Mixed] = [
  mongoose.Schema,
  mongoose.Schema.Types.Number,
  mongoose.Schema.Types.String,
  mongoose.Schema.Types.Mixed,
];

const PatientSchema = new Schema({

  givenNames: [String],
  familyName: String,
  bundleId: String,
  expectedValues: [],
  notes: String,
  qdmPatient: QDMPatientSchema,
  providers: [ProviderSchema],
  measure_ids: [String],

}, { id: false });

module.exports.PatientSchema = PatientSchema;
class Patient extends mongoose.Document {
  constructor(object) {
    super(object, PatientSchema);
    if (this.qdmPatient) {
      this.qdmPatient = new QDMPatient(this.qdmPatient.toJSON());
    }
  }
}
module.exports.Patient = Patient;

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/assets/javascripts/cqm/Patient.js
cqm-models-3.1.2 app/assets/javascripts/cqm/Patient.js
cqm-models-4.1.1 app/assets/javascripts/cqm/Patient.js
cqm-models-4.1.0 app/assets/javascripts/cqm/Patient.js
cqm-models-4.0.2 app/assets/javascripts/cqm/Patient.js
cqm-models-4.0.1 app/assets/javascripts/cqm/Patient.js
cqm-models-4.0.0 app/assets/javascripts/cqm/Patient.js
cqm-models-3.1.1 app/assets/javascripts/cqm/Patient.js
cqm-models-3.1.0 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.6 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.5 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.4 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.3 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.2 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.1 app/assets/javascripts/cqm/Patient.js
cqm-models-2.0.1 app/assets/javascripts/cqm/Patient.js
cqm-models-3.0.0 app/assets/javascripts/cqm/Patient.js
cqm-models-2.0.0 app/assets/javascripts/cqm/Patient.js
cqm-models-1.1.1.0 app/assets/javascripts/cqm/Patient.js