Sha256: 11049e992242f10491fa25d4fbfe20db0ea1e0625c7660be40694e23c01ab98a

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

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

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

const IdSchema = mongoose.Schema({
  namingSystem: String,
  value: String,
  qdmVersion: { type: String, default: '5.4' },

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

module.exports.IdSchema = IdSchema;
class Id extends mongoose.Document {
  constructor(object) {
    super(object, IdSchema);
  }
}
module.exports.Id = Id;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cqm-models-2.0.1 app/assets/javascripts/Id.js
cqm-models-2.0.0 app/assets/javascripts/Id.js
cqm-models-1.1.1.0 app/assets/javascripts/Id.js