Removing imageId from Measurement schema
This commit is contained in:
1 parent
cf9136447e
commit
7bb25ae6aa
12 files changed
+66
-36
No files matched your search
@@ -318,8 +318,9 @@ class MeasurementApi {
|
||||
const toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState();
|
||||
|
||||
_.each(entries, entry => {
|
||||
if (toolState[entry.imageId]) {
|
||||
const toolData = toolState[entry.imageId][entry.toolType];
|
||||
const imageId = OHIF.viewerbase.getImageIdForImagePath(entry.imagePath);
|
||||
if (toolState[imageId]) {
|
||||
const toolData = toolState[imageId][entry.toolType];
|
||||
const measurementsData = toolData && toolData.data;
|
||||
const measurementEntry = _.findWhere(measurementsData, {
|
||||
_id: entry._id
|
||||
|
||||
@@ -177,11 +177,9 @@ const FrameLevelMeasurement = new SimpleSchema([
|
||||
min: 0,
|
||||
label: 'Frame index in Instance'
|
||||
},
|
||||
// TODO: In the future we should remove this in favour of searching OHIF.viewer.Studies and display sets when
|
||||
// re-displaying measurements. Otherwise if a study moves servers the measurements will not be displayed correctly
|
||||
imageId: {
|
||||
imagePath: {
|
||||
type: String,
|
||||
label: 'Cornerstone Image Id'
|
||||
label: 'Identifier for the measurement\'s image' // studyInstanceUid_seriesInstanceUid_sopInstanceUid_frameIndex
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user