fix(local): fix modalities not showing in local (#3388)
* fix various bugs * revert back docusaurus for styling issues
This commit is contained in:
1 parent
84cb709b44
commit
4fd81b5cd2
8 files changed
+271
-256
No files matched your search
@@ -133,9 +133,13 @@ function _getDisplaySetsFromSeries(
|
||||
ConceptNameCodeSequence.CodeValue !==
|
||||
CodeNameCodeSequenceValues.ImagingMeasurementReport
|
||||
) {
|
||||
console.log(
|
||||
'Only support Imaging Measurement Report SRs (TID1500) for this renderer.'
|
||||
);
|
||||
servicesManager.services.uiNotificationService.show({
|
||||
title: 'DICOM SR',
|
||||
message:
|
||||
'OHIF only supports TID1500 Imaging Measurement Report Structured Reports. The SR you’re trying to view is not supported.',
|
||||
type: 'warning',
|
||||
duration: 6000,
|
||||
});
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
@@ -996,10 +996,16 @@ class SegmentationService extends PubSubService {
|
||||
label: string;
|
||||
}
|
||||
): Promise<string> => {
|
||||
const { displaySetService } = this.servicesManager.services;
|
||||
|
||||
const displaySet = displaySetService.getDisplaySetByUID(
|
||||
displaySetInstanceUID
|
||||
);
|
||||
|
||||
// Todo: we currently only support labelmap for segmentation for a displaySet
|
||||
const representationType = LABELMAP;
|
||||
|
||||
const volumeId = this._getVolumeIdForDisplaySet(displaySetInstanceUID);
|
||||
const volumeId = this._getVolumeIdForDisplaySet(displaySet);
|
||||
|
||||
const segmentationId = options?.segmentationId ?? `${csUtils.uuidv4()}`;
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ function createDicomLocalApi(dicomLocalConfig) {
|
||||
const study = DicomMetadataStore.getStudy(StudyInstanceUID);
|
||||
study.series.forEach(aSeries => {
|
||||
numInstances += aSeries.instances.length;
|
||||
modalities.add(aSeries.Modality);
|
||||
modalities.add(aSeries.instances[0].Modality);
|
||||
});
|
||||
|
||||
// first instance in the first series
|
||||
|
||||
+2
-1
@@ -14,7 +14,8 @@ function segmentationItemEditHandler({ id, servicesManager }) {
|
||||
...segmentation,
|
||||
...value,
|
||||
},
|
||||
true
|
||||
false, // don't suppress event
|
||||
true // it should update cornerstone
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user