Notify Configuration
Lab-wide critical notification settings — mandatory comments, always notify, HIPAA mode, and email options.
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
| Setting | Key | Default | Behaviour |
|---|---|---|---|
| Add Instructions | additional_instruction | "" | Free-text displayed inside the callout modal as a standing protocol reminder |
Mandatory settings
| Setting | Key | Default | Behaviour |
|---|---|---|---|
| Make comments mandatory | mandatory_comments | 0 | Blocks Notify and Mark as Done if the comments field is empty |
| Always send notification | always_notify | 0 | Enforces callout on report signing. Exemptions: auto-approval, auto-dispatch, Sign All, mobile apps |
Email template options
| Setting | Key | Default | Behaviour |
|---|---|---|---|
| HIPAA mode (accession no. instead of patient name) | show_patient_name | 0 | When on, accession number replaces patient name in the email subject and body |
| Send comments in email | share_comment | 0 | When 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.