fix(dicomlocal): navigate /local to the work list and /localbasic to the (basic) viewer (#3389)
* fix(dicomlocal): navigate /local to the work list and /localbasic to the (basic) viewer For TMTV, consider both the forward and back slash separator for modalities. * Fix to TMTV isValidMode method. * PR feedback: - replace forward slashes with back slashes for modalities in the WorkList instead of in the Mode. * Added query.series to DicomLocalDataSource.
This commit is contained in:
1 parent
af8bb27575
commit
52eb0edd6f
4 files changed
+33
-11
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { DicomMetadataStore, IWebApiDataSource } from '@ohif/core';
|
||||
import { DicomMetadataStore, IWebApiDataSource, utils } from '@ohif/core';
|
||||
import OHIF from '@ohif/core';
|
||||
import dcmjs from 'dcmjs';
|
||||
|
||||
@@ -87,7 +87,7 @@ function createDicomLocalApi(dicomLocalConfig) {
|
||||
date: firstInstance.StudyDate,
|
||||
description: firstInstance.StudyDescription,
|
||||
mrn: firstInstance.PatientID,
|
||||
patientName: { Alphabetic: firstInstance.PatientName },
|
||||
patientName: utils.formatPN(firstInstance.PatientName),
|
||||
studyInstanceUid: firstInstance.StudyInstanceUID,
|
||||
time: firstInstance.StudyTime,
|
||||
//
|
||||
@@ -103,9 +103,20 @@ function createDicomLocalApi(dicomLocalConfig) {
|
||||
},
|
||||
},
|
||||
series: {
|
||||
// mapParams: mapParams.bind(),
|
||||
search: () => {
|
||||
console.debug(' DICOMLocal QUERY SERIES SEARCH');
|
||||
search: studyInstanceUID => {
|
||||
const study = DicomMetadataStore.getStudy(studyInstanceUID);
|
||||
return study.series.map(aSeries => {
|
||||
const firstInstance = aSeries?.instances[0];
|
||||
return {
|
||||
studyInstanceUid: studyInstanceUID,
|
||||
seriesInstanceUid: firstInstance.SeriesInstanceUID,
|
||||
modality: firstInstance.Modality,
|
||||
seriesNumber: firstInstance.SeriesNumber,
|
||||
seriesDate: firstInstance.SeriesDate,
|
||||
numSeriesInstances: aSeries.instances.length,
|
||||
description: firstInstance.SeriesDescription,
|
||||
};
|
||||
});
|
||||
},
|
||||
},
|
||||
instances: {
|
||||
|
||||
Reference in new issue
Block a user