Critical Callout Worklist
CriticalCalloutWorklist module — tabs, filtering, grid status, and Excel export.
Critical Callout Worklist
The worklist is a new Operations-level page that shows all orders with at least one critical report. It is accessible from the Operations sidebar and is the canonical place to action bulk callouts.
Navigation
Operations Sidebar → Critical Callout WorklistRoute registered in operationsRoutesAndMenu.tsx and modules/Operations/routes.tsx.
Module structure
Operations/CriticalCalloutWorklist/
├── index.tsx # page container
├── constants.ts # report type strings, debounce
└── utils/
├── interface.ts # WorklistTab, GridCalloutStatus, param interfaces
├── helpers.ts # fetch utilities, date handling
└── exportUtils.js # Excel exportTabs
type WorklistTab = "all" | "pending" | "done";- All — every order with at least one critical report, regardless of status
- Callout Pending — orders with
criticalValues = 1orCallout Attempted = 4 - Callout Done — orders where all critical reports are
criticalValues = 2
Report type constants
File: constants.ts
CRITICAL_CALLOUT_REPORT_TYPE = "staff.fetch.critical_callout_worklist"
CRITICAL_CALLOUT_DOCTOR_REPORT_TYPE = "doctor.fetch.critical_callout_worklist"These strings are sent as query parameters to the backend to identify the worklist context.
Grid status badge
File: utils/interface.ts
type GridCalloutStatus = {
label: string;
color?: "warning" | "info";
};criticalValues | Label | Color |
|---|---|---|
| 1 (Pending) | Callout Pending | warning |
| 2 (Done) | Callout Done | info |
| 4 (Attempted) | Callout Attempted | warning |
Row interaction
Clicking a row opens the CriticalNotificationModal for that order. After the modal is closed, navigation state is preserved so the user returns to the same filtered list.
Excel export
See Export for the full export implementation — columns, row granularity, file naming, and data sources.