Sha256: 287e53eff06372f0c7c193a22ad77a87730147e5be8194cb314c01d7b6369836

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

const mongoose = require('mongoose/browser');

const { EntitySchemaFunction } = require('./Entity');
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 OrganizationSchema = EntitySchemaFunction({
  organizationType: Code,
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.135' },
  qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.163' },
  _type: { type: String, default: 'QDM::Organization' },

});

module.exports.OrganizationSchema = OrganizationSchema;
class Organization extends mongoose.Document {
  constructor(object) {
    super(object, OrganizationSchema);
    this._type = 'QDM::Organization';
  }
}

module.exports.Organization = Organization;

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/assets/javascripts/attributes/Organization.js
cqm-models-4.1.1 app/assets/javascripts/attributes/Organization.js
cqm-models-4.1.0 app/assets/javascripts/attributes/Organization.js
cqm-models-4.0.2 app/assets/javascripts/attributes/Organization.js
cqm-models-4.0.1 app/assets/javascripts/attributes/Organization.js
cqm-models-4.0.0 app/assets/javascripts/attributes/Organization.js