Skip to content

Commit

Permalink
Created a custom template panel which will update along with study sw…
Browse files Browse the repository at this point in the history
…itched with form panel. Implemented caching of segmentation files and loading of current study segmentations.
  • Loading branch information
Adithyan-Dinesh-Trenser committed Jan 11, 2024
1 parent 405f786 commit 5c3fea4
Show file tree
Hide file tree
Showing 12 changed files with 670 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function createDicomJSONApi(dicomJsonConfig, servicesManager) {
series: {
metadata: async ({
StudyInstanceUID,
buckets,
buckets = [],
madeInClient = false,
customSort,
} = {}) => {
Expand All @@ -452,7 +452,9 @@ function createDicomJSONApi(dicomJsonConfig, servicesManager) {

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

if (!study && buckets) {
if (!study) {
// If the study is not found, initialize the study.
// If there is no buckets in the url default bucket will be used.
const params = new URLSearchParams(window.location.search);
params.set('StudyInstanceUIDs', StudyInstanceUID);
params.delete('bucket');
Expand Down
14 changes: 13 additions & 1 deletion extensions/ohif-gradienthealth-extension/src/getPanelModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {
PanelMeasurementTableTracking,
PanelStudyBrowserTracking,
PanelForm,
PanelFormAndMeasurementTable
PanelFormAndMeasurementTable,
PanelStudyBrowser,
} from './panels';

// TODO:
Expand Down Expand Up @@ -59,6 +60,17 @@ function getPanelModule({
servicesManager,
}),
},
{
name: 'seriesList-without-tracking',
iconName: 'group-layers',
iconLabel: 'Studies',
label: 'Studies',
component: PanelStudyBrowser.bind(null, {
commandsManager,
extensionManager,
servicesManager,
}),
},
];
}

Expand Down
Loading

0 comments on commit 5c3fea4

Please sign in to comment.