Make the persistence method of hanging protocols configurable
- Implement ProtocolStore interface to allow persisting hanging protocols using different strategies - Implement and set default strategy to persist hanging protocols in the MongoDB collection “HangingProtocols” in the application server
This commit is contained in:
1 parent
06412b51bf
commit
77182d1916
17 files changed
+282
-183
No files matched your search
@@ -12,7 +12,6 @@ Template.viewer.onCreated(() => {
|
||||
ViewerData = window.ViewerData || ViewerData;
|
||||
|
||||
const instance = Template.instance();
|
||||
instance.subscribe('hangingprotocols');
|
||||
|
||||
ValidationErrors.remove({});
|
||||
|
||||
|
||||
+4
-8
@@ -103,13 +103,9 @@ Meteor.startup(() => {
|
||||
HP.lesionTrackerFollowupProtocol = protoFollowup;
|
||||
HP.lesionTrackerFollowupProtocol.id = 'lesionTrackerFollowupProtocol';
|
||||
|
||||
Meteor.call('removeHangingProtocolByID', HP.lesionTrackerBaselineProtocol.id, function() {
|
||||
HangingProtocols.insert(HP.lesionTrackerBaselineProtocol);
|
||||
HP.ProtocolStore.onReady(() => {
|
||||
console.log('Inserting lesion tracker protocols');
|
||||
HP.ProtocolStore.addProtocol(HP.lesionTrackerBaselineProtocol);
|
||||
HP.ProtocolStore.addProtocol(HP.lesionTrackerFollowupProtocol);
|
||||
});
|
||||
|
||||
Meteor.call('removeHangingProtocolByID', HP.lesionTrackerFollowupProtocol.id, function() {
|
||||
HangingProtocols.insert(HP.lesionTrackerFollowupProtocol);
|
||||
});
|
||||
|
||||
HangingProtocols.insert(HP.defaultProtocol);
|
||||
});
|
||||
Reference in new issue
Block a user