Sha256: f40247bfa35a9d04256993a5d85fb6f82b30eb9f9aaae7b263054095a297da8a
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 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 CarePartnerSchema = EntitySchemaFunction({ relationship: Code, _type: { type: String, default: 'QDM::CarePartner' }, }); module.exports.CarePartnerSchema = CarePartnerSchema; class CarePartner extends mongoose.Document { constructor(object) { super(object, CarePartnerSchema); this._type = 'QDM::CarePartner'; } } module.exports.CarePartner = CarePartner;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cqm-models-3.0.0 | app/assets/javascripts/attributes/CarePartner.js |