Option to show only primary study in left side Studies List by default

Greetings,
Im using the latest version of OHIF viewer ie 3.9.1 and was wondering if there is an option to show only primary study in left side Studies list by default. Currently by default it shows all of the patients studies by default.

anyone? There is no way to achieve this via the config file?

This is fixed in release/3.9 branch and master, now you can defined a customization to be primary, add this to your mode

customizationService.addModeCustomizations([
    {
      id: 'PanelStudyBrowser.studyMode',
      mode: 'primary',
    },
  ])

Hi @alireza

Would you be able to provide some direction as to where the code would go? Is it possible to add it as part of the OHIF config file?

Hi everyone,

It seems the proper way to do it is by adding the following code to the config file, but it is not doing anything for me.

window.config = {
...
  modesConfiguration: {
          '@ohif/mode-longitudinal': {
              onModeInit: ({servicesManager}) => {
                  const { customizationService } = servicesManager.services;
                  customizationService.addModeCustomizations([
                      {
                        id: 'PanelStudyBrowser.studyMode',
                        mode: 'primary'
                      }
                  ]);
              }
          }
      }
}

Anyone know what I’m missing here?

Thank you.

Use the new customization service api

Thanks for the reply.

How can I adapt it to version 3.8?

That API seems to only work on version 3.10.