Sha256: 6331795e91717c1e249a5d0e795a1510927c21f385c512111952f176122ace55
Contents?: true
Size: 694 Bytes
Versions: 6
Compression:
Stored size: 694 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 Any = require('./basetypes/Any'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const IdSchema = DataElementSchema({ namingSystem: String, value: String, qdmVersion: { type: String, default: '5.3' }, _type: { type: String, default: 'Id' }, }); module.exports.IdSchema = IdSchema; module.exports.Id = mongoose.model('Id', IdSchema);
Version data entries
6 entries across 6 versions & 1 rubygems