Product EngineeringFeaturesCritical CalloutFrontend

Critical Callout Worklist

CriticalCalloutWorklist module — tabs, filtering, grid status, and Excel export.

👤 Sachin Sharma📅 Updated: Apr 29, 2026🏷️ feature🏷️ frontend🏷️ worklist

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.


Operations Sidebar → Critical Callout Worklist

Route 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 export

Tabs

type WorklistTab = "all" | "pending" | "done";
  • All — every order with at least one critical report, regardless of status
  • Callout Pending — orders with criticalValues = 1 or Callout 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";
};
criticalValuesLabelColor
1 (Pending)Callout Pendingwarning
2 (Done)Callout Doneinfo
4 (Attempted)Callout Attemptedwarning

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.

On this page