Sha256: 939659069ce278e29eba6f4e722676046c230f1bd568824648f6503f641fde5b
Contents?: true
Size: 967 Bytes
Versions: 6
Compression:
Stored size: 967 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 QDMDate = require('../basetypes/QDMDate'); const Any = require('../basetypes/Any'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const DiagnosisComponentSchema = new mongoose.Schema({ code: Code, presentOnAdmissionIndicator: Code, rank: Number, qdmVersion: { type: String, default: '5.6' }, _type: { type: String, default: 'QDM::DiagnosisComponent' }, }); module.exports.DiagnosisComponentSchema = DiagnosisComponentSchema; class DiagnosisComponent extends mongoose.Document { constructor(object) { super(object, DiagnosisComponentSchema); this._type = 'QDM::DiagnosisComponent'; } } module.exports.DiagnosisComponent = DiagnosisComponent;
Version data entries
6 entries across 6 versions & 1 rubygems