Sha256: 4efbd3a3e1b603437832180934a85cd88b7f73dea6ead2acec7026e19ea93d9d
Contents?: true
Size: 873 Bytes
Versions: 3
Compression:
Stored size: 873 Bytes
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 Any = require('../basetypes/Any'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const FacilityLocationSchema = new mongoose.Schema({ code: Code, locationPeriod: Interval, qdmVersion: { type: String, default: '5.4' }, _type: { type: String, default: 'QDM::FacilityLocation' }, }); module.exports.FacilityLocationSchema = FacilityLocationSchema; class FacilityLocation extends mongoose.Document { constructor(object) { super(object, FacilityLocationSchema); this._type = 'QDM::FacilityLocation'; } } module.exports.FacilityLocation = FacilityLocation;
Version data entries
3 entries across 3 versions & 1 rubygems