ohif-viewer/Packages/ohif-hanging-protocols/server/collections.js
Erik Ziegler ab4d4c9008 Work on refactoring measurements out of Lesion Tracker package
- Removed AssociatedStudies Collection
- Measurement API is generated from configuration files
- Data exchange methods are defined in configuration
2016-11-15 08:21:46 +01:00

16 lines
491 B
JavaScript

Meteor.publish('hangingprotocols', function() {
// TODO: filter by availableTo user
return HangingProtocols.find();
});
Meteor.startup(function() {
// Uncomment this next line to reset all your Protocols on every server reset
// HangingProtocols.remove({});
if (HangingProtocols.find().count() === 0) {
console.log('Inserting default protocols');
HangingProtocols.insert(HP.defaultProtocol);
HangingProtocols.insert(HP.testProtocol);
}
});