2019-04-29 19:29:37 +02:00
window . config = {
routerBasename : '/' ,
2023-02-03 16:28:05 +01:00
// whiteLabeling: {},
2020-05-12 21:41:11 +02:00
extensions : [ ] ,
2020-05-07 16:53:13 +02:00
modes : [ ] ,
2022-11-24 22:28:10 +01:00
customizationService : {
// Shows a custom route -access via http://localhost:3000/custom
// helloPage: '@ohif/extension-default.customizationModule.helloPage',
} ,
2019-07-08 21:29:59 +02:00
showStudyList : true ,
2023-02-03 15:33:28 +01:00
// some windows systems have issues with more than 3 web workers
maxNumberOfWebWorkers : 3 ,
2022-11-04 14:01:34 +01:00
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest : true ,
2023-02-17 21:04:07 +01:00
showWarningMessageForCrossOrigin : true ,
showCPUFallbackMessage : true ,
2022-11-16 20:19:52 +01:00
showLoadingIndicator : true ,
2023-04-01 04:21:16 +02:00
strictZSpacingForVolumeViewport : true ,
2022-07-27 18:39:04 +02:00
maxNumRequests : {
interaction : 100 ,
thumbnail : 75 ,
2023-03-29 15:40:22 +02:00
// Prefetch number is dependent on the http protocol. For http 2 or
// above, the number of requests can be go a lot higher.
prefetch : 25 ,
2022-07-27 18:39:04 +02:00
} ,
2020-05-07 15:58:02 +02:00
// filterQueryParam: false,
2023-05-08 21:49:28 +02:00
defaultDataSourceName : 'dicomweb' ,
2023-05-15 20:52:48 +02:00
/* Dynamic config allows user to pass "configUrl" query string this allows to load config without recompiling application. The regex will ensure valid configuration source */
// dangerouslyUseDynamicConfig: {
// enabled: true,
// // regex will ensure valid configuration source and default is /.*/ which matches any character. To use this, setup your own regex to choose a specific source of configuration only.
// // Example 1, to allow numbers and letters in an absolute or sub-path only.
// // regex: /(0-9A-Za-z.]+)(\/[0-9A-Za-z.]+)*/
// // Example 2, to restricts to either hosptial.com or othersite.com.
// // regex: /(https:\/\/hospital.com(\/[0-9A-Za-z.]+)*)|(https:\/\/othersite.com(\/[0-9A-Za-z.]+)*)/
// regex: /.*/,
// },
2020-05-07 15:58:02 +02:00
dataSources : [
{
2020-05-11 18:56:46 +02:00
friendlyName : 'dcmjs DICOMWeb Server' ,
2022-04-06 19:28:42 +02:00
namespace : '@ohif/extension-default.dataSourcesModule.dicomweb' ,
2020-05-11 18:56:46 +02:00
sourceName : 'dicomweb' ,
2020-05-07 15:58:02 +02:00
configuration : {
2022-11-16 20:19:52 +01:00
name : 'aws' ,
// old server
// wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado',
// qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
// wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
2023-04-01 04:21:16 +02:00
2022-11-16 20:19:52 +01:00
// new server
wadoUriRoot : 'https://domvja9iplmyu.cloudfront.net/dicomweb' ,
qidoRoot : 'https://domvja9iplmyu.cloudfront.net/dicomweb' ,
wadoRoot : 'https://domvja9iplmyu.cloudfront.net/dicomweb' ,
2023-04-01 04:21:16 +02:00
2022-11-16 20:19:52 +01:00
qidoSupportsIncludeField : false ,
supportsReject : false ,
2019-04-29 19:29:37 +02:00
imageRendering : 'wadors' ,
thumbnailRendering : 'wadors' ,
2019-10-03 09:51:29 +02:00
enableStudyLazyLoad : true ,
2022-11-16 20:19:52 +01:00
supportsFuzzyMatching : false ,
2020-08-19 21:27:34 +02:00
supportsWildcard : true ,
2022-11-16 20:19:52 +01:00
staticWado : true ,
singlepart : 'bulkdata,video,pdf' ,
feat(RT): add dicom RT support via volume viewports (#3310)
* feat: initial RT support
* make the segmentation service work with representation data
* feat: make segmentation service work with representations
* fix rtss vis
* fix: rt hydration
* fix the rendering of rt names
* fix imports
* refactor: Modify status and click handling for hydration of RTStructures
Modify status and click handling for hydration of RTStructures by renaming `onPillClick` to `onStatusClick` in `OHIFCornerstoneRTViewport.tsx` and `_getStatusComponent.tsx` files. Also, update initial segmentation configurations in `PanelSegmentation.tsx` and simplify configuration changes and values for segmentation service in `SegmentationService.ts`. Finally, remove console debug in `CornerstoneViewportService.ts`.
* wip for highlighting contours
* refactor rt displayset code
* review code update
* update cornerstone dependencies
* refactor: Update license year, version number, and minor code cleanup
This commit updates the license year in several files, updates the version number in package.json, and contains minor code cleanup in two files.
* add bulkdataURI retrieve for RT
* fix package version
* apply review comments
* apply review comments
* apply review comments
* feat(panels): refactor and streamline segmentation configuration and inputs
Rewrote state hooks and streamlined the configuration input for `PanelSegmentation` to be more verbose and reusable. Included several new input types, including the `InputRange` component which now shows a fixed floating value based on the step provided. The `SegmentationConfig` component now works with dynamic values controlled by `initialConfig`. These changes should improve function usability and make the code more maintainable going forward.
* fix various bugs
* fix contour delete by upgrade cs3d version
* feat(viewport, inputNumber, segmentationConfig, orthanc): Implement minimum and maximum values for input number components, and useBulkDataURI for Orthanc configuration. Compare measurement view planes with absolute viewport view planes in Cornerstone viewport.
* update yarn lock
2023-04-26 18:21:08 +02:00
useBulkDataURI : false ,
2019-04-29 19:29:37 +02:00
} ,
2020-02-20 22:25:26 +01:00
} ,
2023-05-01 18:58:53 +02:00
{
friendlyName : 'dicomweb delegating proxy' ,
namespace : '@ohif/extension-default.dataSourcesModule.dicomwebproxy' ,
sourceName : 'dicomwebproxy' ,
configuration : {
name : 'dicomwebproxy' ,
} ,
} ,
2021-06-15 16:19:45 +02:00
{
friendlyName : 'dicom json' ,
2022-04-06 19:28:42 +02:00
namespace : '@ohif/extension-default.dataSourcesModule.dicomjson' ,
2021-06-15 16:19:45 +02:00
sourceName : 'dicomjson' ,
configuration : {
name : 'json' ,
} ,
} ,
{
friendlyName : 'dicom local' ,
2022-04-06 19:28:42 +02:00
namespace : '@ohif/extension-default.dataSourcesModule.dicomlocal' ,
2021-06-15 16:19:45 +02:00
sourceName : 'dicomlocal' ,
configuration : { } ,
} ,
2019-06-09 03:23:00 +02:00
] ,
2021-06-24 18:30:38 +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/' ) ;
} ,
2021-05-28 20:32:48 +02:00
// whiteLabeling: {
// /* Optional: Should return a React component to be rendered in the "Logo" section of the application's Top Navigation bar */
// createLogoComponentFn: function (React) {
// return React.createElement(
// 'a',
// {
// target: '_self',
// rel: 'noopener noreferrer',
// className: 'text-purple-600 line-through',
// href: '/',
// },
// React.createElement('img',
// {
2023-05-08 21:49:28 +02:00
// src: './assets/customLogo.svg',
2021-05-28 20:32:48 +02:00
// className: 'w-8 h-8',
// }
// ))
// },
// },
2021-07-29 21:57:58 +02:00
hotkeys : [
{
commandName : 'incrementActiveViewport' ,
label : 'Next Viewport' ,
keys : [ 'right' ] ,
} ,
{
commandName : 'decrementActiveViewport' ,
label : 'Previous Viewport' ,
keys : [ 'left' ] ,
} ,
{ commandName : 'rotateViewportCW' , label : 'Rotate Right' , keys : [ 'r' ] } ,
{ commandName : 'rotateViewportCCW' , label : 'Rotate Left' , keys : [ 'l' ] } ,
{ commandName : 'invertViewport' , label : 'Invert' , keys : [ 'i' ] } ,
{
2022-07-27 18:39:04 +02:00
commandName : 'flipViewportHorizontal' ,
2021-07-29 21:57:58 +02:00
label : 'Flip Horizontally' ,
keys : [ 'h' ] ,
} ,
{
2022-07-27 18:39:04 +02:00
commandName : 'flipViewportVertical' ,
2021-07-29 21:57:58 +02:00
label : 'Flip Vertically' ,
keys : [ 'v' ] ,
} ,
{ commandName : 'scaleUpViewport' , label : 'Zoom In' , keys : [ '+' ] } ,
{ commandName : 'scaleDownViewport' , label : 'Zoom Out' , keys : [ '-' ] } ,
{ commandName : 'fitViewportToWindow' , label : 'Zoom to Fit' , keys : [ '=' ] } ,
{ commandName : 'resetViewport' , label : 'Reset' , keys : [ 'space' ] } ,
{ commandName : 'nextImage' , label : 'Next Image' , keys : [ 'down' ] } ,
{ commandName : 'previousImage' , label : 'Previous Image' , keys : [ 'up' ] } ,
2022-09-09 04:02:20 +02:00
// {
// commandName: 'previousViewportDisplaySet',
// label: 'Previous Series',
// keys: ['pagedown'],
// },
// {
// commandName: 'nextViewportDisplaySet',
// label: 'Next Series',
// keys: ['pageup'],
// },
{
commandName : 'setToolActive' ,
commandOptions : { toolName : 'Zoom' } ,
label : 'Zoom' ,
keys : [ 'z' ] ,
2021-07-29 21:57:58 +02:00
} ,
// ~ Window level presets
{
commandName : 'windowLevelPreset1' ,
label : 'W/L Preset 1' ,
keys : [ '1' ] ,
} ,
{
commandName : 'windowLevelPreset2' ,
label : 'W/L Preset 2' ,
keys : [ '2' ] ,
} ,
{
commandName : 'windowLevelPreset3' ,
label : 'W/L Preset 3' ,
keys : [ '3' ] ,
} ,
{
commandName : 'windowLevelPreset4' ,
label : 'W/L Preset 4' ,
keys : [ '4' ] ,
} ,
{
commandName : 'windowLevelPreset5' ,
label : 'W/L Preset 5' ,
keys : [ '5' ] ,
} ,
{
commandName : 'windowLevelPreset6' ,
label : 'W/L Preset 6' ,
keys : [ '6' ] ,
} ,
{
commandName : 'windowLevelPreset7' ,
label : 'W/L Preset 7' ,
keys : [ '7' ] ,
} ,
{
commandName : 'windowLevelPreset8' ,
label : 'W/L Preset 8' ,
keys : [ '8' ] ,
} ,
{
commandName : 'windowLevelPreset9' ,
label : 'W/L Preset 9' ,
keys : [ '9' ] ,
} ,
] ,
2019-06-02 21:44:01 +02:00
} ;