How to Use Multiple Data Sources in OHIF Based on URL Parameters?

Hi everyone,

I’m working on a project using the OHIF Viewer which I deployed in my kubernetes cluster, and I need some guidance. I want to configure OHIF to use multiple data sources (e.g., multiple ORTHANC servers) and load a study from a specific source based on URL parameters.

Here’s my scenario:

  • I have multiple ORTHANC servers as my data sources.
  • I want to pass a parameter in the URL (e.g., ?source=orthanc1) to dynamically choose the data source.
  • The OHIF Viewer should then load the study from the corresponding ORTHANC server.

Has anyone tackled a similar use case, or does anyone have pointers on how to approach this? Any advice, sample code, or documentation links would be greatly appreciated!

Thanks in advance for your help.

You can see here Mode: Routes | OHIF