LT-291: Non-Target lesions on Baseline are defaulted as Present and on Follow-ups as empty

This commit is contained in:
Bruno Alves de Faria 2016-11-16 13:32:41 -02:00
parent 13c422615d
commit 3c4d62fd0b

View File

@ -76,7 +76,7 @@ Template.dialogNonTargetMeasurement.onRendered(() => {
} else {
// LT-112 Non-target response shall default to non-measurable on baseline, present on follow-up
const timepoint = timepointApi.study(measurementData.studyInstanceUid)[0];
const response = timepoint && timepoint.timepointType === 'baseline' ? 'NE' : 'Present';
const response = timepoint && timepoint.timepointType === 'baseline' ? 'Present' : '';
// Get a previously inserted Non-target
const previousMeasurement = collection.findOne({