Sha256: e832d1d2677388286f4a49973ebf4fa94b579d5739e04825d2ea3dbdc45202a8

Contents?: true

Size: 602 Bytes

Versions: 10

Compression:

Stored size: 602 Bytes

Contents

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

const [Number, String] = [
  mongoose.Schema.Types.Number,
  mongoose.Schema.Types.String,
];

const IdentifierSchema = mongoose.Schema({
  namingSystem: String,
  value: String,
  qdmVersion: { type: String, default: '5.5' },
  _type: { type: String, default: 'QDM::Identifier' },

}, { _id: false, id: false });

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

Version data entries

10 entries across 10 versions & 1 rubygems

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