Sha256: 32420fee4ea73c6b6d42f713306b8a0206ac2b755d45e6da84db2b8f295b037b

Contents?: true

Size: 924 Bytes

Versions: 10

Compression:

Stored size: 924 Bytes

Contents

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

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 FacilityLocationSchema = new mongoose.Schema({
  code: Code,
  locationPeriod: Interval,
  qdmVersion: { type: String, default: '5.5' },
  _type: { type: String, default: 'QDM::FacilityLocation' },

});

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

module.exports.FacilityLocation = FacilityLocation;

Version data entries

10 entries across 10 versions & 1 rubygems

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