View studies from two or more datasources at the same time

Hi All,
I hope everyone is doing great!,

can we view studies from more than one datasources at the same time in OHIF Viewer?
if this is possible then please guide me using configuration.

Thanks in Advance!

Hi, @farooqbutt

I saw in this GitHub issue that this feature was implemented in the 3.8 version, but, like you, I don’t know how to make it work.

Have you got any replies from the OHIF team? Thanks

Hi, I could make it work with the following configuration:

{
  // some config...
  dataSources: [
      {
        sourceName: 'merge',
        namespace: '@ohif/extension-default.dataSourcesModule.merge',
        configuration: {
          name: 'merge',
          friendlyName: 'Merge dicomweb-1 and dicomweb-2 data at the series level',
          seriesMerge: {
            dataSourceNames: ['dicomweb-1', 'dicomweb-2'],
            defaultDataSourceName: 'dicomweb-1'
          },
        },
      },
      {
        friendlyName: "Orthanc Server",
        namespace: "@ohif/extension-default.dataSourcesModule.dicomweb",
        sourceName: "dicomweb-1",
        configuration: {
          // some config...
        },
      },
      {
        friendlyName: "Orthanc External Server",
        namespace: "@ohif/extension-default.dataSourcesModule.dicomweb",
        sourceName: "dicomweb-2",
        configuration: {
          // some config...
        },
      },
    ],
    defaultDataSourceName: "merge",
    // some config...
}
1 Like