From 0a082e21c879db319e63736a37620918779aba4c Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Wed, 3 Jan 2018 15:23:09 -0200 Subject: [PATCH] Cleaning tools schema and adding isSplitLesion attribute --- .../both/configuration/tools/bidirectional.js | 9 +++++---- .../both/configuration/tools/nonTarget.js | 5 ----- .../both/configuration/tools/targetCR.js | 5 ----- .../both/configuration/tools/targetUN.js | 5 ----- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Packages/ohif-lesiontracker/both/configuration/tools/bidirectional.js b/Packages/ohif-lesiontracker/both/configuration/tools/bidirectional.js index 119ee932a..9ffa7eff4 100644 --- a/Packages/ohif-lesiontracker/both/configuration/tools/bidirectional.js +++ b/Packages/ohif-lesiontracker/both/configuration/tools/bidirectional.js @@ -64,10 +64,11 @@ const BidirectionalSchema = new SimpleSchema([MeasurementSchemaTypes.Cornerstone label: 'Shortest Diameter', decimal: true }, - locationUid: { - type: String, - label: 'Location UID', - optional: true // Optional because it is added after initial drawing, via a callback + isSplitLesion: { + type: Boolean, + label: 'Is Split Lesion', + optional: true, + defaultValue: false } }]); diff --git a/Packages/ohif-lesiontracker/both/configuration/tools/nonTarget.js b/Packages/ohif-lesiontracker/both/configuration/tools/nonTarget.js index d9f078206..f5d163bb1 100644 --- a/Packages/ohif-lesiontracker/both/configuration/tools/nonTarget.js +++ b/Packages/ohif-lesiontracker/both/configuration/tools/nonTarget.js @@ -41,11 +41,6 @@ const NonTargetSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneTool type: String, label: 'Description', optional: true - }, - locationUid: { - type: String, - label: 'Location UID', - optional: true // Optional because it is added after initial drawing, via a callback } }]); diff --git a/Packages/ohif-lesiontracker/both/configuration/tools/targetCR.js b/Packages/ohif-lesiontracker/both/configuration/tools/targetCR.js index 28ec7abd7..3417dece8 100644 --- a/Packages/ohif-lesiontracker/both/configuration/tools/targetCR.js +++ b/Packages/ohif-lesiontracker/both/configuration/tools/targetCR.js @@ -41,11 +41,6 @@ const TargetCRSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneToolM type: String, label: 'Description', optional: true - }, - locationUid: { - type: String, - label: 'Location UID', - optional: true // Optional because it is added after initial drawing, via a callback } }]); diff --git a/Packages/ohif-lesiontracker/both/configuration/tools/targetUN.js b/Packages/ohif-lesiontracker/both/configuration/tools/targetUN.js index 6e4ab5b56..053ad6e5b 100644 --- a/Packages/ohif-lesiontracker/both/configuration/tools/targetUN.js +++ b/Packages/ohif-lesiontracker/both/configuration/tools/targetUN.js @@ -41,11 +41,6 @@ const TargetUNSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneToolM type: String, label: 'Description', optional: true - }, - locationUid: { - type: String, - label: 'Location UID', - optional: true // Optional because it is added after initial drawing, via a callback } }]);