Product EngineeringFeaturesCritical CalloutFrontend

Notify Configuration

Lab-wide critical notification settings — mandatory comments, always notify, HIPAA mode, and email options.

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

Notify Configuration

File: CriticalNotification/CriticalNotificationConfiguration.tsx

The Notify Configuration tab appears inside CriticalNotificationModal alongside the callout action tab. It controls lab-wide notification behaviour — changes apply to all users of the lab.

Settings are persisted via the Preferences API under the key critical_notification_settings (stored as a JSON string). On modal open, they are read by getPreference("critical_notification_settings").


Default values

File: helpers.tsx

export const defaultCriticalNotificationSettings: CriticalNotificationSetting = {
  additional_instruction: "",
  is_email:            1,
  mandatory_comments:  0,
  always_notify:       0,
  show_patient_name:   0,
  share_comment:       0,
};

Settings reference

Instructions

SettingKeyDefaultBehaviour
Add Instructionsadditional_instruction""Free-text displayed inside the callout modal as a standing protocol reminder

Mandatory settings

SettingKeyDefaultBehaviour
Make comments mandatorymandatory_comments0Blocks Notify and Mark as Done if the comments field is empty
Always send notificationalways_notify0Enforces callout on report signing. Exemptions: auto-approval, auto-dispatch, Sign All, mobile apps

Email template options

SettingKeyDefaultBehaviour
HIPAA mode (accession no. instead of patient name)show_patient_name0When on, accession number replaces patient name in the email subject and body
Send comments in emailshare_comment0When on, the callout comment is appended to the notification email

CriticalNotificationSetting interface

interface CriticalNotificationSetting {
  additional_instruction: string;
  is_email:           number;
  mandatory_comments: number;
  always_notify:      number;
  show_patient_name:  number;
  share_comment:      number;
}

Save flow

always_notify close behaviour

When always_notify is enabled, clicking Close in the configuration panel also triggers onCloseModal — ensuring the parent modal closes and the enforcement is applied on the next report sign action.

On this page