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