OHIF-326, export as CSV. (#1976)
This commit is contained in:
1 parent
68332701ab
commit
42b02a62d3
14 files changed
+211
-50
No files matched your search
+3
-9
@@ -6,15 +6,9 @@ function ActionButtons({ onExportClick, onCreateReportClick }) {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<ButtonGroup color="black" size="inherit">
|
||||
<Button className="text-base px-2 py-2" onClick={onExportClick}>Export</Button>
|
||||
<IconButton
|
||||
className="px-2"
|
||||
color="black"
|
||||
size="initial"
|
||||
variant="outlined"
|
||||
>
|
||||
<Icon name="arrow-down" />
|
||||
</IconButton>
|
||||
<Button className="text-base px-2 py-2" onClick={onExportClick}>
|
||||
Export
|
||||
</Button>
|
||||
</ButtonGroup>
|
||||
<Button
|
||||
className="ml-2 text-base"
|
||||
|
||||
@@ -7,12 +7,13 @@ import {
|
||||
Input,
|
||||
useViewportGrid,
|
||||
} from '@ohif/ui';
|
||||
import { DicomMetadataStore, DICOMSR, utils } from '@ohif/core';
|
||||
import { DicomMetadataStore, utils } from '@ohif/core';
|
||||
import { useDebounce } from '@hooks';
|
||||
import ActionButtons from './ActionButtons';
|
||||
import { useTrackedMeasurements } from '../../getContextModule';
|
||||
import createReportDialogPrompt from '../../_shared/createReportDialogPrompt';
|
||||
import RESPONSES from '../../_shared/PROMPT_RESPONSES';
|
||||
import downloadCSVReport from '../../_shared/downloadCSVReport';
|
||||
|
||||
const { formatDate } = utils;
|
||||
|
||||
@@ -144,21 +145,12 @@ function PanelMeasurementTableTracking({ servicesManager, extensionManager }) {
|
||||
trackedSeries.includes(m.referenceSeriesUID)
|
||||
);
|
||||
|
||||
const promptResult = await createReportDialogPrompt(UIDialogService);
|
||||
|
||||
if (promptResult.action === RESPONSES.CREATE_REPORT) {
|
||||
const additionalFindings = ['ArrowAnnotate'];
|
||||
|
||||
const SeriesDescription =
|
||||
// isUndefinedOrEmpty
|
||||
promptResult.value === undefined || promptResult.value === ''
|
||||
? 'Research Derived Series' // default
|
||||
: promptResult.value; // provided value
|
||||
|
||||
DICOMSR.downloadReport(trackedMeasurements, additionalFindings, {
|
||||
SeriesDescription,
|
||||
});
|
||||
}
|
||||
downloadCSVReport(
|
||||
trackedMeasurements,
|
||||
trackedStudy,
|
||||
trackedSeries,
|
||||
MeasurementService
|
||||
);
|
||||
}
|
||||
|
||||
const jumpToImage = ({ id, isActive }) => {
|
||||
|
||||
Reference in new issue
Block a user