Sha256: 7f1f13fb7f84044eb8b3e2682a0813a24f75fbad88c86c59bf0bdfe6f98b962c

Contents?: true

Size: 1.27 KB

Versions: 18

Compression:

Stored size: 1.27 KB

Contents

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

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

const StatementResultSchema = mongoose.Schema({
  // Library the statement this result is for is in
  library_name: String,
  // Statement this result is for is in
  statement_name: String,
  // Result, processed for display, of the statement this result is for
  pretty: String,
  // Final, processed result of raw calculation
  final: String,
  // Raw result of clause calculation
  raw: Mixed,
  /*
   * 'NA' - Not applicable. This statement is not relevant to any population calculation in this population_set. Common
   *   for unused library statements or statements only used for other population sets.
   *
   * 'FALSE' - This statement is not relevant to any of this patient's population inclusion calculations.
   *
   * 'TRUE' - This statement is relevant for one or more of the population inclusion calculations.
    */
  relevance: {
    type: String,
    enum: ['NA', 'TRUE', 'FALSE'],
    default: 'NA',
  },
});


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

Version data entries

18 entries across 18 versions & 1 rubygems

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