Library/Health and life sciences
Emergency department congestion
Arrivals: each tick, a new patient arrives with probability arrival-rate (percent per tick).
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.
An illustrative, uncalibrated agent-based model of how patients flow through an emergency department (ED) and how congestion builds when demand exceeds bed capacity.
Mechanism
- Arrivals: each tick, a new patient arrives with probability
arrival-rate(percent per tick). - Triage: arriving patients stand in the triage strip (bottom) and, each tick, get a severity (1 mild, 2 moderate, 3 critical) with probability
triage-speed. Severity shares are set bymild-shareandmoderate-share(the remainder is critical). - Waiting: triaged patients move to the waiting area (middle). They queue until a bed frees up; the longest-waiting patient is admitted first.
- Treatment: a patient in a bed (top strip) is treated for a severity-dependent number of ticks (10 / 20 / 35), then leaves the ED.
- Congestion: with 6 beds, if arrivals outpace treatment, the waiting queue grows and average time in the ED rises — the classic bottleneck behaviour of a real ED.
Controls
- arrival-rate (1–30 %/tick): how busy the ED is.
- triage-speed (10–100 %/tick): how quickly triage clears.
- mild-share / moderate-share (0–100 %): mix of severities; critical share = 100 − mild − moderate.
Monitors & plot
- Patients currently in the ED, bed occupancy %, average time in ED (ticks), and a time-series plot of both.
Units
Time is in ticks; rates are percentages per tick.
Assumptions & limitations
- Fixed 6 beds, single queue, first-come-first-served admission.
- No staff fatigue, no patient deterioration, no transfers, no capacity limits on the waiting area.
- Treatment times are fixed per severity, not drawn from a distribution.
- The model is illustrative only — it is not calibrated to any real hospital and its numbers should not be interpreted as scientific results.
- Field
- Health and life sciences
- Model file
Emergency-department-congestion-c3090f9ca67f.nlogox· 41 KB- Controls
arrival-rate,triage-speed,mild-share,moderate-share- Reporters
pick-severity,treatment-time-for,color-for-severity,avg-wait,occupancy- Procedures
setup,go,spawn-patient,pick-severity,treatment-time-for,color-for-severity,move-to-waiting-area,move-to-bed,avg-wait,occupancy- Experiment
- none pinned in this file
- Documentation
- 5/7 · 278 words in the Info tab