# Example 1: Busy ED
# 2 critical, 4 hour wait, 10 in waiting room, 25 total patients, 20 beds, 35k visits
cedocs_score(2, 4, 10, 25, 20, 35000)
# Example 2: Overcrowded ED
# 5 critical, 8 hour wait, 25 in waiting room, 50 total patients, 30 beds, 50k visits
cedocs_score(5, 8, 25, 50, 30, 50000)
Run the code above in your browser using DataLab