2023-03-22 17:45:28 -04:00
|
|
|
import { Types } from '@ohif/core';
|
|
|
|
|
|
2024-12-17 13:49:42 -05:00
|
|
|
import getDataSourcesModule from './getDataSourcesModule';
|
|
|
|
|
import getLayoutTemplateModule from './getLayoutTemplateModule';
|
2022-07-27 16:39:04 +00:00
|
|
|
import getPanelModule from './getPanelModule';
|
2024-12-17 13:49:42 -05:00
|
|
|
import getSopClassHandlerModule from './getSopClassHandlerModule';
|
2022-07-27 16:39:04 +00:00
|
|
|
import getToolbarModule from './getToolbarModule';
|
2023-03-22 17:45:28 -04:00
|
|
|
import getCommandsModule from './commandsModule';
|
2022-09-20 23:40:26 -04:00
|
|
|
import getHangingProtocolModule from './getHangingProtocolModule';
|
2023-05-11 10:01:33 -04:00
|
|
|
import getStudiesForPatientByMRN from './Panels/getStudiesForPatientByMRN';
|
2022-11-24 16:28:10 -05:00
|
|
|
import getCustomizationModule from './getCustomizationModule';
|
2024-04-10 00:57:34 -03:00
|
|
|
import getViewportModule from './getViewportModule';
|
2024-12-17 13:49:42 -05:00
|
|
|
import { id } from './id';
|
2023-03-22 17:45:28 -04:00
|
|
|
import preRegistration from './init';
|
2025-02-28 15:17:55 -05:00
|
|
|
import { createReportDialogPrompt } from './Panels';
|
|
|
|
|
|
2023-09-01 16:19:39 -04:00
|
|
|
import { ContextMenuController, CustomizableContextMenuTypes } from './CustomizableContextMenu';
|
2023-05-29 09:04:49 -04:00
|
|
|
import * as dicomWebUtils from './DicomWebDataSource/utils';
|
2023-09-22 10:23:44 -04:00
|
|
|
import createReportAsync from './Actions/createReportAsync';
|
2024-04-10 10:16:09 -04:00
|
|
|
import StaticWadoClient from './DicomWebDataSource/utils/StaticWadoClient';
|
2024-08-15 14:36:53 -04:00
|
|
|
import { cleanDenaturalizedDataset } from './DicomWebDataSource/utils';
|
2024-11-06 07:15:27 -05:00
|
|
|
import { useViewportsByPositionStore } from './stores/useViewportsByPositionStore';
|
|
|
|
|
import { useViewportGridStore } from './stores/useViewportGridStore';
|
|
|
|
|
import { useUIStateStore } from './stores/useUIStateStore';
|
|
|
|
|
import { useDisplaySetSelectorStore } from './stores/useDisplaySetSelectorStore';
|
|
|
|
|
import { useHangingProtocolStageIndexStore } from './stores/useHangingProtocolStageIndexStore';
|
|
|
|
|
import { useToggleHangingProtocolStore } from './stores/useToggleHangingProtocolStore';
|
|
|
|
|
import { useToggleOneUpViewportGridStore } from './stores/useToggleOneUpViewportGridStore';
|
2025-02-28 15:17:55 -05:00
|
|
|
import { callInputDialogAutoComplete, callInputDialog } from './utils/callInputDialog';
|
2024-11-06 07:15:27 -05:00
|
|
|
import colorPickerDialog from './utils/colorPickerDialog';
|
|
|
|
|
|
|
|
|
|
import promptSaveReport from './utils/promptSaveReport';
|
|
|
|
|
import promptLabelAnnotation from './utils/promptLabelAnnotation';
|
|
|
|
|
import usePatientInfo from './hooks/usePatientInfo';
|
2024-11-12 13:14:47 -05:00
|
|
|
import { PanelStudyBrowserHeader } from './Panels/StudyBrowser/PanelStudyBrowserHeader';
|
2024-11-12 12:34:14 -05:00
|
|
|
import * as utils from './utils';
|
2025-03-06 22:19:47 -05:00
|
|
|
import { Toolbox } from './utils';
|
2025-01-13 10:49:08 -05:00
|
|
|
import MoreDropdownMenu from './Components/MoreDropdownMenu';
|
|
|
|
|
import requestDisplaySetCreationForStudy from './Panels/requestDisplaySetCreationForStudy';
|
2023-03-22 17:45:28 -04:00
|
|
|
const defaultExtension: Types.Extensions.Extension = {
|
2020-05-07 10:34:17 -03:00
|
|
|
/**
|
|
|
|
|
* Only required property. Should be a unique value across all extensions.
|
|
|
|
|
*/
|
2020-05-11 18:56:46 +02:00
|
|
|
id,
|
2023-03-22 17:45:28 -04:00
|
|
|
preRegistration,
|
2024-11-06 07:15:27 -05:00
|
|
|
onModeExit() {
|
|
|
|
|
useViewportGridStore.getState().clearViewportGridState();
|
|
|
|
|
useUIStateStore.getState().clearUIState();
|
|
|
|
|
useDisplaySetSelectorStore.getState().clearDisplaySetSelectorMap();
|
|
|
|
|
useHangingProtocolStageIndexStore.getState().clearHangingProtocolStageIndexMap();
|
|
|
|
|
useToggleHangingProtocolStore.getState().clearToggleHangingProtocol();
|
|
|
|
|
useViewportsByPositionStore.getState().clearViewportsByPosition();
|
|
|
|
|
},
|
2020-05-07 10:34:17 -03:00
|
|
|
getDataSourcesModule,
|
2024-04-10 00:57:34 -03:00
|
|
|
getViewportModule,
|
2020-05-09 20:23:43 +02:00
|
|
|
getLayoutTemplateModule,
|
|
|
|
|
getPanelModule,
|
2022-09-20 23:40:26 -04:00
|
|
|
getHangingProtocolModule,
|
2020-05-11 18:56:46 +02:00
|
|
|
getSopClassHandlerModule,
|
2020-05-13 14:22:08 +02:00
|
|
|
getToolbarModule,
|
2023-03-22 17:45:28 -04:00
|
|
|
getCommandsModule,
|
2022-07-27 16:39:04 +00:00
|
|
|
getUtilityModule({ servicesManager }) {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'common',
|
|
|
|
|
exports: {
|
2023-05-11 10:01:33 -04:00
|
|
|
getStudiesForPatientByMRN,
|
2022-07-27 16:39:04 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
2022-11-24 16:28:10 -05:00
|
|
|
|
|
|
|
|
getCustomizationModule,
|
2020-05-07 10:34:17 -03:00
|
|
|
};
|
2022-07-27 16:39:04 +00:00
|
|
|
|
|
|
|
|
export default defaultExtension;
|
2023-03-22 17:45:28 -04:00
|
|
|
|
2023-05-11 10:01:33 -04:00
|
|
|
export {
|
|
|
|
|
ContextMenuController,
|
2023-05-29 09:04:49 -04:00
|
|
|
CustomizableContextMenuTypes,
|
2023-05-11 10:01:33 -04:00
|
|
|
getStudiesForPatientByMRN,
|
2023-05-29 09:04:49 -04:00
|
|
|
dicomWebUtils,
|
2023-09-22 10:23:44 -04:00
|
|
|
createReportAsync,
|
2024-04-10 10:16:09 -04:00
|
|
|
StaticWadoClient,
|
2024-08-15 14:36:53 -04:00
|
|
|
cleanDenaturalizedDataset,
|
2024-11-06 07:15:27 -05:00
|
|
|
// Export all stores
|
|
|
|
|
useDisplaySetSelectorStore,
|
|
|
|
|
useHangingProtocolStageIndexStore,
|
|
|
|
|
useToggleHangingProtocolStore,
|
|
|
|
|
useToggleOneUpViewportGridStore,
|
|
|
|
|
useUIStateStore,
|
|
|
|
|
useViewportGridStore,
|
|
|
|
|
useViewportsByPositionStore,
|
2025-02-28 15:17:55 -05:00
|
|
|
callInputDialogAutoComplete,
|
2024-11-06 07:15:27 -05:00
|
|
|
promptSaveReport,
|
|
|
|
|
promptLabelAnnotation,
|
|
|
|
|
colorPickerDialog,
|
|
|
|
|
usePatientInfo,
|
2024-11-12 13:14:47 -05:00
|
|
|
PanelStudyBrowserHeader,
|
2024-11-12 12:34:14 -05:00
|
|
|
utils,
|
2025-03-06 22:19:47 -05:00
|
|
|
Toolbox,
|
2025-01-13 10:49:08 -05:00
|
|
|
MoreDropdownMenu,
|
|
|
|
|
requestDisplaySetCreationForStudy,
|
2025-02-28 15:17:55 -05:00
|
|
|
callInputDialog,
|
|
|
|
|
createReportDialogPrompt,
|
2023-05-11 10:01:33 -04:00
|
|
|
};
|