Skip to content

Commit 3743f9a

Browse files
committed
Add comments for the Disposition type tuple
1 parent cb302c6 commit 3743f9a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/penn_chime/parameters.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,25 @@
99
from typing import Optional
1010

1111

12-
# (0.02, 7) is 2%, 7 days
13-
# be sure to multiply by 100 when using as a default to the percent widgets!
12+
# Parameters for each disposition (hospitalized, icu, ventilated)
13+
# The rate of disposition within the population of infected
14+
# The average number days a patient has such disposition
15+
16+
# Hospitalized:
17+
# 2.5 percent of the infected population are hospitalized: hospitalized.rate is 0.025
18+
# Average hospital length of stay is 7 days: hospitalized.days = 7
19+
20+
# ICU:
21+
# 0.75 percent of the infected population are in the ICU: icu.rate is 0.0075
22+
# Average number of days in an ICU is 9 days: icu.days = 9
23+
24+
# Ventilated:
25+
# 0.5 percent of the infected population are on a ventilator: ventilated.rate is 0.005
26+
# Average number of days on a ventilator: ventilated.days = 10
27+
28+
# Be sure to multiply by 100 when using the parameter as a default to a percent widget!
29+
30+
1431
Disposition = namedtuple("Disposition", ("rate", "days"))
1532

1633

0 commit comments

Comments
 (0)