NeoScan_Physician/app/modules/Dashboard/index.ts
2025-08-22 00:24:24 +05:30

150 lines
3.5 KiB
TypeScript

/*
* File: index.ts
* Description: Main exports for Dashboard module
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
// Export screens
export { default as DashboardScreen } from './screens/DashboardScreen';
// Export navigation
export {
DashboardStackNavigator,
DashboardStackParamList,
DashboardNavigationProp,
DashboardScreenProps,
DashboardScreenProps,
PatientDetailsScreenProps,
AlertDetailsScreenProps,
DepartmentStatsScreenProps,
QuickActionsScreenProps,
navigateToERDashboard,
navigateToPatientDetails,
navigateToAlertDetails,
navigateToDepartmentStats,
navigateToQuickActions,
goBack,
resetToERDashboard,
replaceWithERDashboard,
navigateToERDashboardAndClearStack,
navigateToPatientDetailsAndClearStack,
navigateToAlertDetailsAndClearStack,
} from './navigation';
// Export components
export { default as PatientCard } from './components/PatientCard';
export { default as CriticalAlerts } from './components/CriticalAlerts';
export { default as DashboardHeader } from './components/DashboardHeader';
export { default as QuickActions } from './components/QuickActions';
export { default as DepartmentStats } from './components/DepartmentStats';
export { PredictionCard } from './components/PredictionCard';
export { PredictionsList } from './components/PredictionsList';
// Export hooks
export * from './hooks';
// Export Redux
export {
fetchDashboardData,
refreshDashboardData,
clearError,
setFilter,
setSort,
updateConnectionStatus,
updateLastUpdated,
updateDashboardData,
} from './redux/dashboardSlice';
// Export AI Dashboard Redux
export {
fetchAIDashboardStatistics,
refreshAIDashboardStatistics,
clearError as clearAIDashboardError,
setTimeRange,
setHospital,
setDepartment,
updateDashboardData as updateAIDashboardData,
} from './redux/aiDashboardSlice';
// Export AI Dashboard Selectors
export {
selectAIDashboardData,
selectAIDashboardLoading,
selectAIDashboardRefreshing,
selectAIDashboardError,
selectDashboardMessage,
selectTotalPredictions,
selectTotalPatients,
selectTotalFeedbacks,
selectFeedbackRatePercentage,
selectAverageConfidenceScore,
selectCriticalCasePercentage,
selectConfidenceScores,
selectUrgencyLevels,
selectFeedbackAnalysis,
selectTimeAnalysis,
} from './redux/aiDashboardSelectors';
// Export Predictions Redux
export {
fetchAllPredictions,
setActiveTab,
setSearchQuery,
clearErrors,
clearSearch,
filterPredictions,
} from './redux/predictionsSlice';
// Export Predictions Selectors
export {
selectActiveTab,
selectSearchQuery,
selectAllPredictions,
selectPredictionsWithFeedback,
selectPredictionsWithoutFeedback,
selectIsLoading,
selectError,
selectCurrentPredictions,
selectCurrentLoadingState,
selectCurrentError,
} from './redux/predictionsSlice';
export {
fetchAlerts,
acknowledgeAlert,
markAlertAsRead,
clearError as clearAlertsError,
setFilter as setAlertsFilter,
setSort as setAlertsSort,
addAlert,
removeAlert,
updateAlert,
clearAllAlerts,
markAllAsRead,
} from './redux/alertsSlice';
export {
setLoading,
showModal,
hideModal,
showOverlay,
hideOverlay,
setCurrentScreen,
clearNavigationStack,
toggleDarkMode,
setFontSize,
toggleHighContrast,
setRefreshing,
setScrolling,
updateLastInteraction,
showError,
clearError as clearUIError,
resetUIState,
} from './redux/uiSlice';
/*
* End of File: index.ts
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/