Sha256: f490ed709f4ec042d0503b647a8a0eca7d40eba374a9e04121f201b11a4bf729
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 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 MedicationDispensedSchema = DataElementSchema({ authorDatetime: DateTime, relevantPeriod: Interval, refills: Number, dosage: Quantity, supply: Quantity, frequency: Code, daysSupplied: Number, route: Code, prescriberId: IdSchema, dispenserId: IdSchema, negationRationale: Code, qdmTitle: { type: String, default: 'Medication, Dispensed' }, hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.49' }, qdmCategory: { type: String, default: 'medication' }, qdmStatus: { type: String, default: 'dispensed' }, qdmVersion: { type: String, default: '5.4' }, _type: { type: String, default: 'QDM::MedicationDispensed' }, }); module.exports.MedicationDispensedSchema = MedicationDispensedSchema; class MedicationDispensed extends mongoose.Document { constructor(object) { super(object, MedicationDispensedSchema); this._type = 'QDM::MedicationDispensed'; } } module.exports.MedicationDispensed = MedicationDispensed;
Version data entries
3 entries across 3 versions & 1 rubygems