Sha256: 8f3f013c4e51925b6c62a4427fa3d8e081f0fc4519e1ebd295bda5bcbd0a3f93
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
const mongoose = require('mongoose'); const { DataElementSchema } = require('./basetypes/DataElement'); const Code = require('./basetypes/Code'); const Interval = require('./basetypes/Interval'); const Quantity = require('./basetypes/Quantity'); const DateTime = require('./basetypes/DateTime'); const { ComponentSchema } = require('./Component'); const { IdSchema } = require('./Id'); 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: 'FacilityLocation' }, }); module.exports.FacilityLocationSchema = FacilityLocationSchema; module.exports.FacilityLocation = mongoose.model('FacilityLocation', FacilityLocationSchema);
Version data entries
4 entries across 4 versions & 1 rubygems