LT-291: Displaying non-targets on measurements table
This commit is contained in:
parent
a715804880
commit
ad2c49c682
@ -1,24 +1,18 @@
|
|||||||
<template name="measurementTableHeaderRow">
|
<template name="measurementTableHeaderRow">
|
||||||
<div class="measurementTableHeaderRow">
|
<div class="measurementTableHeaderRow">
|
||||||
{{ #if anyUnmarkedLesionsLeft}}
|
{{#if anyUnmarkedLesionsLeft}}
|
||||||
<div class="add js-setTool">
|
<div class="add js-setTool">
|
||||||
<svg>
|
<svg>
|
||||||
<use xlink:href=/packages/ohif_viewerbase/assets/icons.svg#icon-ui-add></use>
|
<use xlink:href=/packages/ohif_viewerbase/assets/icons.svg#icon-ui-add></use>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
{{ /if }}
|
|
||||||
<div class="type">
|
|
||||||
{{measurementType.name}}
|
|
||||||
</div>
|
|
||||||
<div class="max {{ # if gt numberOfMeasurements maxNumMeasurements }}warning{{/if}}">
|
|
||||||
{{ #if maxNumMeasurements }}
|
|
||||||
<p class="maxNumMeasurements">
|
|
||||||
Max {{maxNumMeasurements}}
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<div class="type">{{measurementType.name}}</div>
|
||||||
|
<div class="max {{#if gt numberOfMeasurements maxNumMeasurements}}warning{{/if}}">
|
||||||
|
{{#if maxNumMeasurements}}
|
||||||
|
<p class="maxNumMeasurements">Max {{maxNumMeasurements}}</p>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="numberOfMeasurements">
|
<div class="numberOfMeasurements">{{numberOfMeasurements}}</div>
|
||||||
{{numberOfMeasurements}}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import { Template } from 'meteor/templating';
|
import { Template } from 'meteor/templating';
|
||||||
import { _ } from 'meteor/underscore';
|
import { _ } from 'meteor/underscore';
|
||||||
|
import { OHIF } from 'meteor/ohif:core';
|
||||||
|
|
||||||
OHIF.measurements.getLocation = collection => {
|
OHIF.measurements.getLocation = collection => {
|
||||||
for (let i = 0; i < collection.length; i++) {
|
for (let i = 0; i < collection.length; i++) {
|
||||||
@ -9,8 +10,6 @@ OHIF.measurements.getLocation = collection => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getLocation = OHIF.measurements.getLocation;
|
|
||||||
|
|
||||||
Template.measurementTableView.helpers({
|
Template.measurementTableView.helpers({
|
||||||
getNewMeasurementType(tool) {
|
getNewMeasurementType(tool) {
|
||||||
// TODO: Check Conformance criteria here.
|
// TODO: Check Conformance criteria here.
|
||||||
@ -57,7 +56,7 @@ Template.measurementTableView.helpers({
|
|||||||
return Object.keys(groupObject).map(key => ({
|
return Object.keys(groupObject).map(key => ({
|
||||||
measurementTypeId: measurementTypeId,
|
measurementTypeId: measurementTypeId,
|
||||||
measurementNumber: key,
|
measurementNumber: key,
|
||||||
location: getLocation(groupObject[key]),
|
location: OHIF.measurements.getLocation(groupObject[key]),
|
||||||
responseStatus: false, // TODO: Get the latest timepoint and determine the response status
|
responseStatus: false, // TODO: Get the latest timepoint and determine the response status
|
||||||
entries: groupObject[key]
|
entries: groupObject[key]
|
||||||
}));
|
}));
|
||||||
@ -75,9 +74,9 @@ Template.measurementTableView.helpers({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this is a baseline, stop here since there are no new measurements to display
|
// If this is a baseline, stop here since there are no new measurements to display
|
||||||
|
|
||||||
if (!current || current.timepointType === 'baseline') {
|
if (!current || current.timepointType === 'baseline') {
|
||||||
console.log('Skipping New Measurements section');
|
OHIF.log.info('Skipping New Measurements section');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,10 +107,10 @@ Template.measurementTableView.helpers({
|
|||||||
return {
|
return {
|
||||||
measurementTypeId: measurementTypeId,
|
measurementTypeId: measurementTypeId,
|
||||||
measurementNumber: key,
|
measurementNumber: key,
|
||||||
location: getLocation(groupObject[key]),
|
location: OHIF.measurements.getLocation(groupObject[key]),
|
||||||
responseStatus: false, // TODO: Get the latest timepoint and determine the response status
|
responseStatus: false, // TODO: Get the latest timepoint and determine the response status
|
||||||
entries: groupObject[key]
|
entries: groupObject[key]
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user