2020-05-07 10:34:17 -03: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)
|
|
|
|
|
|
2024-12-17 13:49:42 -05:00
|
|
|
import { createDicomWebApi } from './DicomWebDataSource/index';
|
|
|
|
|
import { createDicomJSONApi } from './DicomJSONDataSource/index';
|
|
|
|
|
import { createDicomLocalApi } from './DicomLocalDataSource/index';
|
2024-05-08 12:12:49 -04:00
|
|
|
import { createDicomWebProxyApi } from './DicomWebProxyDataSource/index';
|
2023-11-24 10:46:54 -03:00
|
|
|
import { createMergeDataSourceApi } from './MergeDataSource/index';
|
2020-05-07 10:56:26 -03:00
|
|
|
|
2020-05-07 10:34:17 -03:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
function getDataSourcesModule() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
2020-05-07 10:56:26 -03:00
|
|
|
name: 'dicomweb',
|
2020-05-07 10:34:17 -03:00
|
|
|
type: 'webApi',
|
2020-05-07 10:56:26 -03:00
|
|
|
createDataSource: createDicomWebApi,
|
2020-05-07 10:34:17 -03:00
|
|
|
},
|
2023-05-01 12:58:53 -04:00
|
|
|
{
|
|
|
|
|
name: 'dicomwebproxy',
|
|
|
|
|
type: 'webApi',
|
|
|
|
|
createDataSource: createDicomWebProxyApi,
|
|
|
|
|
},
|
2021-05-28 14:32:48 -04:00
|
|
|
{
|
|
|
|
|
name: 'dicomjson',
|
|
|
|
|
type: 'jsonApi',
|
|
|
|
|
createDataSource: createDicomJSONApi,
|
|
|
|
|
},
|
2021-06-15 10:19:45 -04:00
|
|
|
{
|
|
|
|
|
name: 'dicomlocal',
|
|
|
|
|
type: 'localApi',
|
|
|
|
|
createDataSource: createDicomLocalApi,
|
|
|
|
|
},
|
2023-11-24 10:46:54 -03:00
|
|
|
{
|
|
|
|
|
name: 'merge',
|
|
|
|
|
type: 'mergeApi',
|
|
|
|
|
createDataSource: createMergeDataSourceApi,
|
|
|
|
|
},
|
2020-05-07 10:34:17 -03:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getDataSourcesModule;
|