A model that simulates the flow of patients in a hospital emergency room using SIMPY
- The model mimics the random arrival of patients at an emergency room (ER).
- The patients are assessed as being low, medium or high priority.
- Higher priority patients are always selected next (keeping the lowest priority patient who is already being consulted by a doctor).
python emergency-room.py
The following inputs will appear to be filled:
- Days for the simulation
- Average patient arrival time in minutes
- Number of doctors
- Average time in medical consultation (minutes)
- Standard deviation in time in medical consultation (minutes)
The simulation will generate 3 graphs:
- The first with the relationship between each patient (with their priority) and the waiting time.
- The second graph shows the number of patients waiting during the days
- Finally, a graph of the occupation of doctors during the days of the simulation is shown
Liked it? Find me on LinkedIn