Sha256: e42b9ef569bcb87a0653958c683883f6cc8c6bdd99a8226a162cdbc08ce96d16

Contents?: true

Size: 1009 Bytes

Versions: 15

Compression:

Stored size: 1009 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 PatientEntitySchema = EntitySchemaFunction({
  hqmfOid: { type: String, default: '2.16.840.1.113883.10.20.28.4.136' },
  qrdaOid: { type: String, default: '2.16.840.1.113883.10.20.24.3.161' },
  _type: { type: String, default: 'QDM::PatientEntity' },

});

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

module.exports.PatientEntity = PatientEntity;

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.1.2 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-4.1.1 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-4.1.0 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-4.0.2 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-4.0.1 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-4.0.0 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.1.1 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.1.0 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.6 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.5 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.4 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.3 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.2 app/assets/javascripts/attributes/PatientEntity.js
cqm-models-3.0.1 app/assets/javascripts/attributes/PatientEntity.js