Sha256: fa804680676433a756d6f2f54b8f3422a24a03f209e8e02dc0f126f87052c287
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
const mongoose = require('mongoose/browser'); const { EntitySchemaFunction } = require('./Entity'); const Code = require('../basetypes/Code'); const Interval = require('../basetypes/Interval'); const Quantity = require('../basetypes/Quantity'); const DateTime = require('../basetypes/DateTime'); const QDMDate = require('../basetypes/QDMDate'); const Any = require('../basetypes/Any'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const PractitionerSchema = EntitySchemaFunction({ role: Code, specialty: Code, qualification: Code, _type: { type: String, default: 'QDM::Practitioner' }, }); module.exports.PractitionerSchema = PractitionerSchema; class Practitioner extends mongoose.Document { constructor(object) { super(object, PractitionerSchema); this._type = 'QDM::Practitioner'; } } module.exports.Practitioner = Practitioner;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cqm-models-3.0.0 | app/assets/javascripts/attributes/Practitioner.js |