diff --git a/extensions/default/src/Panels/createReportDialogPrompt.tsx b/extensions/default/src/Panels/createReportDialogPrompt.tsx index e852820eb2f..55c92150253 100644 --- a/extensions/default/src/Panels/createReportDialogPrompt.tsx +++ b/extensions/default/src/Panels/createReportDialogPrompt.tsx @@ -1,5 +1,5 @@ -/* eslint-disable react/display-name */ import React from 'react'; + import { ButtonEnums, Dialog, Input, Select } from '@ohif/ui'; export const CREATE_REPORT_DIALOG_RESPONSE = { @@ -7,7 +7,7 @@ export const CREATE_REPORT_DIALOG_RESPONSE = { CREATE_REPORT: 1, }; -export default function createReportDialogPrompt(uiDialogService, { extensionManager }) { +export default function CreateReportDialogPrompt(uiDialogService, { extensionManager }) { return new Promise(function (resolve, reject) { let dialogId = undefined; @@ -97,33 +97,38 @@ export default function createReportDialogPrompt(uiDialogService, { extensionMan }; return ( <> - {dataSourcesOpts.length > 1 && ( - option.value === value.dataSourceName) + .placeHolder + } + value={value.dataSourceName} + onChange={evt => { + setValue(v => ({ ...v, dataSourceName: evt.value })); + }} + isClearable={false} + /> + )} - +
+ +
); }, diff --git a/extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/dicomRTAnnotationExport.js b/extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/dicomRTAnnotationExport.js index df4aa9c3cc1..c8de5524bb3 100644 --- a/extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/dicomRTAnnotationExport.js +++ b/extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/dicomRTAnnotationExport.js @@ -1,12 +1,12 @@ import dcmjs from 'dcmjs'; import { classes, DicomMetadataStore } from '@ohif/core'; -import { adaptersSEG } from '@cornerstonejs/adapters'; +import { adaptersRT } from '@cornerstonejs/adapters'; const { datasetToBlob } = dcmjs.data; const metadataProvider = classes.MetadataProvider; export default function dicomRTAnnotationExport(annotations) { - const dataset = adaptersSEG.Cornerstone3D.RTStruct.RTSS.generateRTSSFromAnnotations( + const dataset = adaptersRT.Cornerstone3D.RTSS.generateRTSSFromAnnotations( annotations, metadataProvider, DicomMetadataStore diff --git a/platform/core/src/utils/downloadCSVReport.js b/platform/core/src/utils/downloadCSVReport.js index b2da98b6126..4185a791986 100644 --- a/platform/core/src/utils/downloadCSVReport.js +++ b/platform/core/src/utils/downloadCSVReport.js @@ -86,7 +86,7 @@ function _getCommonRowItems(measurement, seriesMetadata) { return { 'Patient ID': firstInstance.PatientID, // Patient ID - 'Patient Name': firstInstance.PatientName.Alphabetic, // PatientName + 'Patient Name': firstInstance.PatientName?.Alphabetic || '', // Patient Name StudyInstanceUID: measurement.referenceStudyUID, // StudyInstanceUID SeriesInstanceUID: measurement.referenceSeriesUID, // SeriesInstanceUID SOPInstanceUID: measurement.SOPInstanceUID, // SOPInstanceUID diff --git a/platform/docs/docs/configuration/configurationFiles.md b/platform/docs/docs/configuration/configurationFiles.md index 9141cc108e5..746041d6e4b 100644 --- a/platform/docs/docs/configuration/configurationFiles.md +++ b/platform/docs/docs/configuration/configurationFiles.md @@ -184,6 +184,7 @@ if auth headers are used, a preflight request is required. - `useSharedArrayBuffer` (default to 'TRUE', options: 'AUTO', 'FALSE', 'TRUE', note that these are strings), for volume loading we use sharedArrayBuffer to be able to load the volume progressively as the data arrives (each webworker has the shared buffer and can write to it). However, there might be certain environments that do not support sharedArrayBuffer. In that case, you can set this flag to false and the viewer will use the regular arrayBuffer which might be slower for large volume loading. - `supportsWildcard`: (default to false), if set to true, the datasource will support wildcard matching for patient name and patient id. +- `allowMultiSelectExport`: (default to false), if set to true, the user will be able to select the datasource to export the report to. - `dangerouslyUseDynamicConfig`: Dynamic config allows user to pass `configUrl` query string. This allows to load config without recompiling application. If the `configUrl` query string is passed, the worklist and modes will load from the referenced json rather than the default .env config. If there is no `configUrl` path provided, the default behaviour is used and there should not be any deviation from current user experience.
Points to consider while using `dangerouslyUseDynamicConfig`:
- User have to enable this feature by setting `dangerouslyUseDynamicConfig.enabled:true`. By default it is `false`. diff --git a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupSegment.tsx b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupSegment.tsx index 5c1fee88e25..677f3b1246a 100644 --- a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupSegment.tsx +++ b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupSegment.tsx @@ -175,11 +175,12 @@ const HoveringIcons = ({ return (
{!disableEditing && createIcon('row-edit', onEdit)} - {createIcon( - isLocked ? 'row-lock' : 'row-unlock', - onToggleLocked, - isLocked ? 'text-[#3d5871]' : null - )} + {!disableEditing && + createIcon( + isLocked ? 'row-lock' : 'row-unlock', + onToggleLocked, + isLocked ? 'text-[#3d5871]' : null + )} {createIcon( isVisible ? 'row-shown' : 'row-hidden', onToggleVisibility,