Sha256: bc1148a64231dc058b52203c1d1379d8136820a8f75f2f3c19036b5f043d1478

Contents?: true

Size: 582 Bytes

Versions: 19

Compression:

Stored size: 582 Bytes

Contents

const mongoose = require('mongoose/browser');
const Concept = require('./Concept.js');

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

const ValueSetSchema = new mongoose.Schema(
  {
    oid: String,
    display_name: String,
    version: String,

    concepts: [Concept.ConceptSchema],
  },
  // Options
  {
    timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' },
  }
);

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.1.2 app/assets/javascripts/cqm/ValueSet.js
cqm-models-4.1.1 app/assets/javascripts/cqm/ValueSet.js
cqm-models-4.1.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-4.0.2 app/assets/javascripts/cqm/ValueSet.js
cqm-models-4.0.1 app/assets/javascripts/cqm/ValueSet.js
cqm-models-4.0.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.1.1 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.1.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.6 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.5 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.4 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.3 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.2 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.1 app/assets/javascripts/cqm/ValueSet.js
cqm-models-2.0.1 app/assets/javascripts/cqm/ValueSet.js
cqm-models-3.0.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-2.0.0 app/assets/javascripts/cqm/ValueSet.js
cqm-models-1.1.1.0 app/assets/javascripts/cqm/ValueSet.js