2024-05-24 18:21:09 +02:00
|
|
|
/** @type {AppTypes.Config} */
|
|
|
|
|
|
2019-04-29 19:19:17 +02:00
|
|
|
window.config = {
|
2025-03-27 21:47:16 +01:00
|
|
|
routerBasename: null,
|
2020-05-20 15:06:50 +02:00
|
|
|
extensions: [],
|
2020-05-20 14:57:07 +02:00
|
|
|
modes: [],
|
2019-07-08 21:29:59 +02:00
|
|
|
showStudyList: true,
|
2022-11-04 14:01:34 +01:00
|
|
|
// below flag is for performance reasons, but it might not work for all servers
|
2023-02-17 21:04:07 +01:00
|
|
|
showWarningMessageForCrossOrigin: true,
|
|
|
|
|
showCPUFallbackMessage: true,
|
2022-11-16 20:19:52 +01:00
|
|
|
showLoadingIndicator: true,
|
2024-06-20 22:58:59 +02:00
|
|
|
experimentalStudyBrowserSort: false,
|
2023-04-01 04:21:16 +02:00
|
|
|
strictZSpacingForVolumeViewport: true,
|
2024-04-16 15:01:06 +02:00
|
|
|
groupEnabledModesFirst: true,
|
2020-05-20 14:57:07 +02:00
|
|
|
// filterQueryParam: false,
|
2024-06-18 04:36:03 +02:00
|
|
|
defaultDataSourceName: 'ohif',
|
2020-05-20 14:57:07 +02:00
|
|
|
dataSources: [
|
|
|
|
|
{
|
2022-04-06 19:28:42 +02:00
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
|
2024-06-18 04:36:03 +02:00
|
|
|
sourceName: 'ohif',
|
2020-05-20 14:57:07 +02:00
|
|
|
configuration: {
|
2023-09-21 13:30:01 +02:00
|
|
|
friendlyName: 'AWS S3 Static wado server',
|
2022-11-16 20:19:52 +01:00
|
|
|
name: 'aws',
|
2024-09-19 06:23:28 +02:00
|
|
|
wadoUriRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
|
|
|
|
|
qidoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
|
|
|
|
|
wadoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
|
2022-11-16 20:19:52 +01:00
|
|
|
qidoSupportsIncludeField: false,
|
2019-04-29 19:19:17 +02:00
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
2022-11-16 20:19:52 +01:00
|
|
|
enableStudyLazyLoad: true,
|
|
|
|
|
supportsFuzzyMatching: false,
|
2020-08-19 21:27:34 +02:00
|
|
|
supportsWildcard: true,
|
2022-11-16 20:19:52 +01:00
|
|
|
staticWado: true,
|
2023-05-29 16:38:19 +02:00
|
|
|
singlepart: 'bulkdata,video',
|
|
|
|
|
// whether the data source should use retrieveBulkData to grab metadata,
|
|
|
|
|
// and in case of relative path, what would it be relative to, options
|
|
|
|
|
// are in the series level or study level (some servers like series some study)
|
|
|
|
|
bulkDataURI: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
relativeResolution: 'studies',
|
2024-08-15 20:36:53 +02:00
|
|
|
transform: url => url.replace('/pixeldata.mp4', '/rendered'),
|
2023-05-29 16:38:19 +02:00
|
|
|
},
|
2023-06-22 21:26:26 +02:00
|
|
|
omitQuotationForMultipartRequest: true,
|
2019-04-29 19:19:17 +02:00
|
|
|
},
|
2020-05-20 14:57:07 +02:00
|
|
|
},
|
2024-06-18 04:36:03 +02:00
|
|
|
|
2021-09-09 19:02:33 +02:00
|
|
|
{
|
2023-09-21 13:30:01 +02:00
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
|
2024-06-18 04:36:03 +02:00
|
|
|
sourceName: 'ohif2',
|
2023-09-21 13:30:01 +02:00
|
|
|
configuration: {
|
|
|
|
|
friendlyName: 'AWS S3 Static wado secondary server',
|
|
|
|
|
name: 'aws',
|
2024-09-19 06:23:28 +02:00
|
|
|
wadoUriRoot: 'https://dd14fa38qiwhyfd.cloudfront.net/dicomweb',
|
|
|
|
|
qidoRoot: 'https://dd14fa38qiwhyfd.cloudfront.net/dicomweb',
|
|
|
|
|
wadoRoot: 'https://dd14fa38qiwhyfd.cloudfront.net/dicomweb',
|
2023-09-21 13:30:01 +02:00
|
|
|
qidoSupportsIncludeField: false,
|
|
|
|
|
supportsReject: false,
|
|
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
|
|
|
|
enableStudyLazyLoad: true,
|
|
|
|
|
supportsFuzzyMatching: false,
|
|
|
|
|
supportsWildcard: true,
|
|
|
|
|
staticWado: true,
|
|
|
|
|
singlepart: 'bulkdata,video',
|
|
|
|
|
// whether the data source should use retrieveBulkData to grab metadata,
|
|
|
|
|
// and in case of relative path, what would it be relative to, options
|
|
|
|
|
// are in the series level or study level (some servers like series some study)
|
|
|
|
|
bulkDataURI: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
relativeResolution: 'studies',
|
|
|
|
|
},
|
|
|
|
|
omitQuotationForMultipartRequest: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-06-18 04:36:03 +02:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
|
|
|
|
|
sourceName: 'ohif3',
|
|
|
|
|
configuration: {
|
|
|
|
|
friendlyName: 'AWS S3 Static wado secondary server',
|
|
|
|
|
name: 'aws',
|
|
|
|
|
wadoUriRoot: 'https://d3t6nz73ql33tx.cloudfront.net/dicomweb',
|
|
|
|
|
qidoRoot: 'https://d3t6nz73ql33tx.cloudfront.net/dicomweb',
|
|
|
|
|
wadoRoot: 'https://d3t6nz73ql33tx.cloudfront.net/dicomweb',
|
|
|
|
|
qidoSupportsIncludeField: false,
|
|
|
|
|
supportsReject: false,
|
|
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
|
|
|
|
enableStudyLazyLoad: true,
|
|
|
|
|
supportsFuzzyMatching: false,
|
|
|
|
|
supportsWildcard: true,
|
|
|
|
|
staticWado: true,
|
|
|
|
|
singlepart: 'bulkdata,video',
|
|
|
|
|
// whether the data source should use retrieveBulkData to grab metadata,
|
|
|
|
|
// and in case of relative path, what would it be relative to, options
|
|
|
|
|
// are in the series level or study level (some servers like series some study)
|
|
|
|
|
bulkDataURI: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
relativeResolution: 'studies',
|
|
|
|
|
},
|
|
|
|
|
omitQuotationForMultipartRequest: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
|
|
|
|
|
sourceName: 'local5000',
|
|
|
|
|
configuration: {
|
|
|
|
|
friendlyName: 'Static WADO Local Data',
|
|
|
|
|
name: 'DCM4CHEE',
|
|
|
|
|
qidoRoot: 'http://localhost:5000/dicomweb',
|
|
|
|
|
wadoRoot: 'http://localhost:5000/dicomweb',
|
|
|
|
|
qidoSupportsIncludeField: false,
|
|
|
|
|
supportsReject: true,
|
|
|
|
|
supportsStow: true,
|
|
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
|
|
|
|
enableStudyLazyLoad: true,
|
|
|
|
|
supportsFuzzyMatching: false,
|
|
|
|
|
supportsWildcard: true,
|
|
|
|
|
staticWado: true,
|
|
|
|
|
singlepart: 'video',
|
|
|
|
|
bulkDataURI: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
relativeResolution: 'studies',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2023-09-21 13:30:01 +02:00
|
|
|
{
|
2024-09-05 15:15:48 +02:00
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomwebproxy',
|
|
|
|
|
sourceName: 'dicomwebproxy',
|
|
|
|
|
configuration: {
|
|
|
|
|
friendlyName: 'dicomweb delegating proxy',
|
|
|
|
|
name: 'dicomwebproxy',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-04-06 19:28:42 +02:00
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomjson',
|
2021-09-09 19:02:33 +02:00
|
|
|
sourceName: 'dicomjson',
|
|
|
|
|
configuration: {
|
2023-07-20 17:43:05 +02:00
|
|
|
friendlyName: 'dicom json',
|
2021-09-09 19:02:33 +02:00
|
|
|
name: 'json',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-04-06 19:28:42 +02:00
|
|
|
namespace: '@ohif/extension-default.dataSourcesModule.dicomlocal',
|
2021-09-09 19:02:33 +02:00
|
|
|
sourceName: 'dicomlocal',
|
2023-07-20 17:43:05 +02:00
|
|
|
configuration: {
|
|
|
|
|
friendlyName: 'dicom local',
|
|
|
|
|
},
|
2021-09-09 19:02:33 +02:00
|
|
|
},
|
2020-05-20 14:57:07 +02:00
|
|
|
],
|
2021-09-09 19:02:33 +02:00
|
|
|
httpErrorHandler: error => {
|
|
|
|
|
// This is 429 when rejected from the public idc sandbox too often.
|
|
|
|
|
console.warn(error.status);
|
|
|
|
|
|
|
|
|
|
// Could use services manager here to bring up a dialog/modal if needed.
|
|
|
|
|
console.warn('test, navigate to https://ohif.org/');
|
|
|
|
|
},
|
2019-06-08 21:25:39 +02:00
|
|
|
};
|
2024-10-04 18:16:01 +02:00
|
|
|
|
|
|
|
|
function waitForElement(selector, maxAttempts = 20, interval = 25) {
|
|
|
|
|
return new Promise(resolve => {
|
|
|
|
|
let attempts = 0;
|
|
|
|
|
|
|
|
|
|
const checkForElement = setInterval(() => {
|
|
|
|
|
const element = document.querySelector(selector);
|
|
|
|
|
|
|
|
|
|
if (element || attempts >= maxAttempts) {
|
|
|
|
|
clearInterval(checkForElement);
|
|
|
|
|
resolve();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
attempts++;
|
|
|
|
|
}, interval);
|
|
|
|
|
});
|
|
|
|
|
}
|