2020-05-07 15:34:17 +02:00
|
|
|
// TODO: Pull in IWebClientApi from @ohif/core
|
|
|
|
|
// TODO: Use constructor to create an instance of IWebClientApi
|
|
|
|
|
// TODO: Use existing DICOMWeb configuration (previously, appConfig, to configure instance)
|
|
|
|
|
|
2020-05-07 15:56:26 +02:00
|
|
|
import { createDicomWebApi } from './DicomWebDataSource/index.js';
|
2021-05-28 20:32:48 +02:00
|
|
|
import { createDicomJSONApi } from './DicomJSONDataSource/index.js';
|
2021-06-15 16:19:45 +02:00
|
|
|
import { createDicomLocalApi } from './DicomLocalDataSource/index.js';
|
2023-05-01 18:58:53 +02:00
|
|
|
import { createDicomWebProxyApi } from './DicomWebProxyDataSource/index.js';
|
2023-11-24 14:46:54 +01:00
|
|
|
import { createMergeDataSourceApi } from './MergeDataSource/index';
|
2020-05-07 15:56:26 +02:00
|
|
|
|
2020-05-07 15:34:17 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
function getDataSourcesModule() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
2020-05-07 15:56:26 +02:00
|
|
|
name: 'dicomweb',
|
2020-05-07 15:34:17 +02:00
|
|
|
type: 'webApi',
|
2020-05-07 15:56:26 +02:00
|
|
|
createDataSource: createDicomWebApi,
|
2020-05-07 15:34:17 +02:00
|
|
|
},
|
2023-05-01 18:58:53 +02:00
|
|
|
{
|
|
|
|
|
name: 'dicomwebproxy',
|
|
|
|
|
type: 'webApi',
|
|
|
|
|
createDataSource: createDicomWebProxyApi,
|
|
|
|
|
},
|
2021-05-28 20:32:48 +02:00
|
|
|
{
|
|
|
|
|
name: 'dicomjson',
|
|
|
|
|
type: 'jsonApi',
|
|
|
|
|
createDataSource: createDicomJSONApi,
|
|
|
|
|
},
|
2021-06-15 16:19:45 +02:00
|
|
|
{
|
|
|
|
|
name: 'dicomlocal',
|
|
|
|
|
type: 'localApi',
|
|
|
|
|
createDataSource: createDicomLocalApi,
|
|
|
|
|
},
|
2023-11-24 14:46:54 +01:00
|
|
|
{
|
|
|
|
|
name: 'merge',
|
|
|
|
|
type: 'mergeApi',
|
|
|
|
|
createDataSource: createMergeDataSourceApi,
|
|
|
|
|
},
|
2020-05-07 15:34:17 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getDataSourcesModule;
|