LT-115: Considering timepoint ID for measurement numbers

This commit is contained in:
Bruno Alves de Faria committed 2017-01-02 16:32:09 -02:00
1 parent d6aeebe712
commit c06043483d
8 files changed
+62 -205

No files matched your search

@@ -0,0 +1,23 @@
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
export const ToolGroupBaseSchema = new SimpleSchema({
toolId: {
type: String,
label: 'Tool ID'
},
toolItemId: {
type: String,
label: 'Tool Item ID'
},
createdAt: {
type: Date
},
studyInstanceUid: {
type: String,
label: 'Study Instance UID'
},
timepointId: {
type: String,
label: 'Timepoint ID'
}
});
@@ -1,23 +1,9 @@
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { ToolGroupBaseSchema } from './baseSchema';
import { nonTarget } from '../tools/nonTarget';
const NonTargetSchema = new SimpleSchema({
toolId: {
type: String,
label: 'Tool ID'
},
toolItemId: {
type: String,
label: 'Tool Item ID'
},
createdAt: {
type: Date
}
});
export const nonTargets = {
id: 'nonTargets',
name: 'Non-Targets',
childTools: [nonTarget],
schema: NonTargetSchema
schema: ToolGroupBaseSchema
};
@@ -1,25 +1,11 @@
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { ToolGroupBaseSchema } from './baseSchema';
import { bidirectional } from '../tools/bidirectional';
import { targetCR } from '../tools/targetCR';
import { targetUN } from '../tools/targetUN';
const TargetSchema = new SimpleSchema({
toolId: {
type: String,
label: 'Tool ID'
},
toolItemId: {
type: String,
label: 'Tool Item ID'
},
createdAt: {
type: Date
}
});
export const targets = {
id: 'targets',
name: 'Targets',
childTools: [bidirectional, targetCR, targetUN],
schema: TargetSchema
schema: ToolGroupBaseSchema
};
@@ -1,24 +1,10 @@
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { ToolGroupBaseSchema } from './baseSchema';
import { length } from '../tools/length';
import { ellipse } from '../tools/ellipse';
const TempSchema = new SimpleSchema({
toolId: {
type: String,
label: 'Tool ID'
},
toolItemId: {
type: String,
label: 'Tool Item ID'
},
createdAt: {
type: Date
}
});
export const temp = {
id: 'temp',
name: 'Temporary',
childTools: [length, ellipse],
schema: TempSchema
schema: ToolGroupBaseSchema
};
@@ -70,7 +70,7 @@ Template.measurementLocationDialog.onCreated(() => {
setMeasurementNumberCallback: getSetMeasurementNumberCallbackFunction(measurementTypeId, measurementApi, timepointApi),
// TODO: Check the position for these, the Add Label button position seems very awkward
getMeasurementLocationCallback: toggleLabel,
changeMeasurementLocationCallback: toggleLabel
changeMeasurementLocationCallback: toggleLabel,
};