Sha256: 0b6e926ee3c377814e27121e07af487890bc539fa110bffb592afb1ad7c02dc0
Contents?: true
Size: 722 Bytes
Versions: 6
Compression:
Stored size: 722 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 RatioSchema = DataElementSchema({ numerator: Quantity, denominator: Quantity, qdmVersion: { type: String, default: '5.3' }, _type: { type: String, default: 'Ratio' }, }); module.exports.RatioSchema = RatioSchema; module.exports.Ratio = mongoose.model('Ratio', RatioSchema);
Version data entries
6 entries across 6 versions & 1 rubygems