Sha256: 498ea68a98188d32c887f7d0358f1bc40d74aa31d91e08ee52e3fb15a7cc2474

Contents?: true

Size: 793 Bytes

Versions: 6

Compression:

Stored size: 793 Bytes

Contents

const mongoose = require('mongoose');
const { DataElementSchema } = require('./basetypes/DataElement');
const Code = require('./basetypes/Code');
const Interval = require('./basetypes/Interval');
const Quantity = require('./basetypes/Quantity');
const DateTime = require('./basetypes/DateTime');
const Any = require('./basetypes/Any');

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

const FacilityLocationSchema = DataElementSchema({
  code: Code,
  locationPeriod: Interval,
  qdmVersion: { type: String, default: '5.3' },
  _type: { type: String, default: 'FacilityLocation' },

});

module.exports.FacilityLocationSchema = FacilityLocationSchema;
module.exports.FacilityLocation = mongoose.model('FacilityLocation', FacilityLocationSchema);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cqm-models-0.8.0 app/assets/javascripts/FacilityLocation.js
cqm-models-0.7.7 app/assets/javascripts/FacilityLocation.js
cqm-models-0.7.6 app/assets/javascripts/FacilityLocation.js
cqm-models-0.7.5 app/assets/javascripts/FacilityLocation.js
cqm-models-0.7.4 app/assets/javascripts/FacilityLocation.js
cqm-models-0.7.3 app/assets/javascripts/FacilityLocation.js