2016-07-12 20:37:53 +02:00
|
|
|
import { OHIF } from 'meteor/ohif:core';
|
|
|
|
|
|
2016-05-07 08:58:46 +02:00
|
|
|
Template.matchedProtocols.helpers({
|
|
|
|
|
/**
|
|
|
|
|
* Reactively re-render the MatchedProtocols Collection contents
|
|
|
|
|
*/
|
2016-07-22 14:26:29 +02:00
|
|
|
matchedProtocols() {
|
2016-05-07 08:58:46 +02:00
|
|
|
return MatchedProtocols.find();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Template.matchedProtocols.events({
|
|
|
|
|
/**
|
|
|
|
|
* Instruct the ProtocolEngine to apply the specified Hanging Protocol
|
|
|
|
|
*/
|
|
|
|
|
'click .matchedProtocol': function() {
|
|
|
|
|
var protocol = this;
|
|
|
|
|
ProtocolEngine.setHangingProtocol(protocol);
|
|
|
|
|
}
|
|
|
|
|
});
|