|
Algorithm 1 Context-Aware Alert Decision Framework |
-
1:
Input: Set of alarms , where
-
2:
Initialize: Effective alert set
-
3:
for all
do
-
4:
// Suppression Check
-
5:
if or or then
-
6:
Discard and log suppression
-
7:
continue
-
8:
end if
-
9:
// Context-Aware Delay Assignment
-
10:
Compute delay:
-
11:
if
-
12:
Discard due to unacceptable delay
-
13:
continue
-
14:
end if
-
15:
// LLM-Based Validation and Nurse Assignment
-
16:
Generate prompt:
-
17:
Query LLM to get: and assigned nurse
-
18:
Compute dynamic threshold
-
19:
if then
-
20:
Discard (Not clinically significant)
-
21:
continue
-
22:
end if
-
23:
// Notification Dispatch
-
24:
Send alert to nurse
-
25:
Start acknowledgment timer
-
26:
if No acknowledgment within then
-
27:
Escalate to next-best nurse
-
28:
end if
-
29:
Update workload and availability for assigned nurse
-
30:
Add to effective alert set:
-
31:
end for
-
32:
Output: Escalated and handled alert set
|