LT-291: Re-implementing the Non-Target tool behavior

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:29:46 +01:00
1 parent e348ff1d4d
commit 5d8a99dc5f
12 files changed
+195 -56

No files matched your search

@@ -4,18 +4,18 @@ import { MeasurementSchemaTypes } from 'meteor/ohif:measurements/both/schema/mea
const CornerstoneHandleSchema = MeasurementSchemaTypes.CornerstoneHandleSchema;
const NonTargetHandlesSchema = new SimpleSchema({
start: {
type: CornerstoneHandleSchema,
label: 'Start'
},
end: {
type: CornerstoneHandleSchema,
label: 'End'
},
textBox: {
type: CornerstoneHandleSchema,
label: 'Text Box'
}
start: {
type: CornerstoneHandleSchema,
label: 'Start'
},
end: {
type: CornerstoneHandleSchema,
label: 'End'
},
textBox: {
type: CornerstoneHandleSchema,
label: 'Text Box'
}
});
const NonTargetSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneToolMeasurement, {
@@ -24,10 +24,15 @@ const NonTargetSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneTool
label: 'Handles'
},
response: {
type: String,
label: 'Response',
type: String,
label: 'Response',
optional: true // Optional because it is added after initial drawing, via a callback
},
location: {
type: String,
label: 'Location',
optional: true
},
locationUid: {
type: String,
label: 'Location UID',
@@ -50,6 +55,6 @@ export const nonTarget = {
measurementTableOptions: {
displayFunction: displayFunction
},
includeInCaseProgress: true,
includeInCaseProgress: true,
},
}
};
@@ -0,0 +1,60 @@
export const FieldLesionLocation = {
type: String,
label: 'Lesion Location',
allowedValues: [
'',
'Abdominal/Chest Wall',
'Adrenal',
'Bladder',
'Bone',
'Brain',
'Breast',
'Colon',
'Esophagus',
'Extremities',
'Gallbladder',
'Kidney',
'Liver',
'Lung',
'Lymph Node',
'Mediastinum/Hilum',
'Muscle',
'Neck',
'Other: Soft Tissue',
'Ovary',
'Pancreas',
'Pelvis',
'Peritoneum/Omentum',
'Prostate',
'Retroperitoneum',
'Small Bowel',
'Spleen',
'Stomach',
'Subcutaneous'
]
};
export const FieldLesionLocationResponse = {
type: String,
label: 'Lesion Location Response',
allowedValues: [
'',
'-1',
'PD',
'SD',
'Present',
'NE',
'NN',
'EX'
],
valuesLabels: [
'',
'CR - Complete response',
'PD - Progressive disease',
'SD - Stable disease',
'Present - Present',
'NE - Not Evaluable',
'NN - Non-CR/Non-PD',
'EX - Excluded from Assessment'
]
};
@@ -0,0 +1 @@
export * from './fields.js';