Sha256: c67328200e3e13df6fa573858ced7afd29e66050c6c4d1b67937ed077ef90e2a
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
const mongoose = require('mongoose/browser'); const { IdSchema } = require('./Id'); 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 { ComponentSchema } = require('./attributes/Component'); const { FacilityLocationSchema } = require('./attributes/FacilityLocation'); const [Number, String] = [ mongoose.Schema.Types.Number, mongoose.Schema.Types.String, ]; const MedicationAdministeredSchema = DataElementSchema({ authorDatetime: DateTime, relevantPeriod: Interval, dosage: Quantity, frequency: Code, route: Code, reason: Code, negationRationale: Code, qdmTitle: { type: String, default: 'Medication, Administered' }, hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.45' }, qdmCategory: { type: String, default: 'medication' }, qdmStatus: { type: String, default: 'administered' }, qdmVersion: { type: String, default: '5.4' }, _type: { type: String, default: 'QDM::MedicationAdministered' }, }); module.exports.MedicationAdministeredSchema = MedicationAdministeredSchema; class MedicationAdministered extends mongoose.Document { constructor(object) { super(object, MedicationAdministeredSchema); this._type = 'QDM::MedicationAdministered'; } } module.exports.MedicationAdministered = MedicationAdministered;
Version data entries
3 entries across 3 versions & 1 rubygems