2016-08-15 11:29:49 +02:00
|
|
|
import { MeasurementApi } from 'meteor/lesiontracker/client/api/measurement';
|
|
|
|
|
|
2016-06-08 12:27:22 +02:00
|
|
|
Template.lesionTableView.helpers({
|
2016-06-27 23:18:42 +02:00
|
|
|
targets() {
|
2016-08-15 11:29:49 +02:00
|
|
|
const withPriors = true;
|
|
|
|
|
return MeasurementApi.targets(withPriors);
|
2016-06-08 12:27:22 +02:00
|
|
|
},
|
2016-08-08 18:37:32 +02:00
|
|
|
|
2016-06-27 23:18:42 +02:00
|
|
|
nonTargets() {
|
2016-08-15 11:29:49 +02:00
|
|
|
const withPriors = true;
|
|
|
|
|
return MeasurementApi.nonTargets(withPriors);
|
2016-06-08 12:27:22 +02:00
|
|
|
},
|
2016-08-08 18:37:32 +02:00
|
|
|
|
2016-06-27 23:18:42 +02:00
|
|
|
newLesions() {
|
2016-08-15 11:29:49 +02:00
|
|
|
return MeasurementApi.newLesions();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
isFollowup() {
|
|
|
|
|
const instance = Template.instance();
|
|
|
|
|
const current = instance.data.timepointApi.current();
|
|
|
|
|
return (current && current.timepointType === 'followup');
|
2016-06-08 12:27:22 +02:00
|
|
|
}
|
2016-06-27 23:18:42 +02:00
|
|
|
});
|