Skip to main content
. 2022 Nov 23;19(23):15539. doi: 10.3390/ijerph192315539
Algorithm 1 Simulating patient-to-nurse assignment based on acuity levels
1: Find the first available nurse (nurse assigned to patient agents with a total acuity level less than the maximum acuity level of the nurse, LPu);
2: Check if the to-be-assigned patient agent has an acuity level, LPi, less than or equal to the access acuity level that the nurse can handle;
3: If step 2 is true, assign the patient agent to the available nurse directly before the premedication stage;
4: Increase the number of assigned patient agents to the nurse, LAu, by the value equal to the acuity level, LPi, of the last assigned patient agent;
5: After patient agent discharge, decrease the number of assigned patient agents to the nurse by the value equal to the acuity level, LPi, of the discharged patient agent;
6: Repeat step 1 to 5 for all patient agents