Skip to content

Commit 5c3fea4

Browse files
Created a custom template panel which will update along with study switched with form panel. Implemented caching of segmentation files and loading of current study segmentations.
1 parent 405f786 commit 5c3fea4

File tree

12 files changed

+670
-79
lines changed

12 files changed

+670
-79
lines changed

extensions/ohif-gradienthealth-extension/src/DicomJSONDataSource/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function createDicomJSONApi(dicomJsonConfig, servicesManager) {
440440
series: {
441441
metadata: async ({
442442
StudyInstanceUID,
443-
buckets,
443+
buckets = [],
444444
madeInClient = false,
445445
customSort,
446446
} = {}) => {
@@ -452,7 +452,9 @@ function createDicomJSONApi(dicomJsonConfig, servicesManager) {
452452

453453
let study = findStudies('StudyInstanceUID', StudyInstanceUID)[0];
454454

455-
if (!study && buckets) {
455+
if (!study) {
456+
// If the study is not found, initialize the study.
457+
// If there is no buckets in the url default bucket will be used.
456458
const params = new URLSearchParams(window.location.search);
457459
params.set('StudyInstanceUIDs', StudyInstanceUID);
458460
params.delete('bucket');

extensions/ohif-gradienthealth-extension/src/getPanelModule.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {
22
PanelMeasurementTableTracking,
33
PanelStudyBrowserTracking,
44
PanelForm,
5-
PanelFormAndMeasurementTable
5+
PanelFormAndMeasurementTable,
6+
PanelStudyBrowser,
67
} from './panels';
78

89
// TODO:
@@ -59,6 +60,17 @@ function getPanelModule({
5960
servicesManager,
6061
}),
6162
},
63+
{
64+
name: 'seriesList-without-tracking',
65+
iconName: 'group-layers',
66+
iconLabel: 'Studies',
67+
label: 'Studies',
68+
component: PanelStudyBrowser.bind(null, {
69+
commandsManager,
70+
extensionManager,
71+
servicesManager,
72+
}),
73+
},
6274
];
6375
}
6476

0 commit comments

Comments
 (0)