How to prevent OHIF from listing related studies on left panel

Hello OHIF community!

I’m running the latest version of OHIF as a Orthanc plugin from the docker image “orthancteam/orthanc”.

I’d like to me able to hide the related studies that appear in the left panel when viewing a single study. Or better, prevent the XHR request from being made in the first place.

I only want the left panel to show the images related to the study being viewed. I would like to remove the “Recent” and “All” altogether.

The main reason for this ask is because sometimes the images for the specific study being viewed don’t seem to appear on the left panel. It just shows an empty left panel. And my hypothesis is that there are too many studies related to that same patient ID.

This issue seems to be happening only with those patient IDs that have lots of studies.

I believe the request to list the related studies just takes too long and it ends up breaking the left panel somehow.

A bit more context:

We are also using the Orthanc Multitenant plugin, and we have multiple institutions sending studies to our Orthanc installation. And one issue that we’ve noticed is that sometimes there’s a conflict with patient IDs, meaning that multiple different patients have the same patient ID, because they come from different institutions.

I think the issue is coming from the request below. I see at least 3 requests like it in the console, and it returns lots and lots of studies

(?00100020=*DX001523*&limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060)

Is it possible for me to use the OHIF config file to somehow prevent the request for the related studies from being made? And only show the images pertaining to the study being viewed?

I appreciate your help.

Use customization service (studyBrowser.studyMode)

Thank you for your help @alireza.

Is there a similar way to make it work with version 3.8?