Sha256: 1c5d37450550f11738666ff34cde9cabff3c0875559f4396bd86fb31749fb474

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

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({
  type: 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

9 entries across 9 versions & 1 rubygems

Version Path
cqm-models-3.1.2 app/assets/javascripts/attributes/Organization.js
cqm-models-3.1.1 app/assets/javascripts/attributes/Organization.js
cqm-models-3.1.0 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.6 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.5 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.4 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.3 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.2 app/assets/javascripts/attributes/Organization.js
cqm-models-3.0.1 app/assets/javascripts/attributes/Organization.js