You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/penn_chime/presentation.py
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -32,32 +32,48 @@ def display_header(st, m, p):
32
32
ifm.detection_probability
33
33
else"unknown"
34
34
)
35
+
36
+
infection_warning_str= (
37
+
"""(Warning: The number of known infections is greater than the estimate of infected patients based on inputs for current hospitalization, market share, and hospitalization rate. Please verify the market share value in the sidebar, and see if the hospitalization rate needs to be lowered.)"""
38
+
ifp.known_infected>m.infected
39
+
else""
40
+
)
41
+
42
+
infected_population_warning_str= (
43
+
"""(Warning: The number of estimated infections is greater than the total regional population. Please verify the values entered in the sidebar.)"""
"""**IMPORTANT NOTICE**: Admissions and Census calculations were previously **undercounting**. Please update your reports generated before """+p.change_date() +""". See more about changes [here](https://github.com/CodeForPhilly/chime/labels/models)."""
49
64
)
50
65
st.markdown(
51
-
"""*This tool was developed by the [Predictive Healthcare team](http://predictivehealthcare.pennmedicine.org/) at
52
-
Penn Medicine. For questions on how to use this tool see the [User docs](https://code-for-philly.gitbook.io/chime/). Code can be found on [Github](https://github.com/CodeForPhilly/chime).
53
-
Join our [Slack channel](https://codeforphilly.org/chat?channel=covid19-chime-penn) if you would like to get involved!*"""
66
+
"""*This tool was developed by the [Predictive Healthcare team](http://predictivehealthcare.pennmedicine.org/) at [Penn Medicine](https://www.pennmedicine.org) to assist hospitals and public health officials with hospital capacity planning, but can be used anywhere in the world. Customize it for your region by modifying data inputs in the left pane, or read the [User Documentation](https://code-for-philly.gitbook.io/chime/) to learn more.*"""
54
67
)
55
68
56
69
st.markdown(
57
70
"""The estimated number of currently infected individuals is **{total_infections:.0f}**. The **{initial_infections}**
58
71
confirmed cases in the region imply a **{detection_prob_str}** rate of detection. This is based on current inputs for
59
72
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Region size (**{S}**),
60
73
and Hospital market share (**{market_share:.0%}**).
74
+
75
+
{infection_warning_str}
76
+
{infected_population_warning_str}
61
77
62
78
An initial doubling time of **{doubling_time}** days and a recovery time of **{recovery_days}** days imply an $R_0$ of
63
79
**{r_naught:.2f}**.
@@ -78,7 +94,9 @@ def display_header(st, m, p):
78
94
relative_contact_rate=p.relative_contact_rate,
79
95
r_t=m.r_t,
80
96
doubling_time_t=abs(m.doubling_time_t),
81
-
impact_statement=("halves the infections every"ifm.r_t<1else"reduces the doubling time to")
97
+
impact_statement=("halves the infections every"ifm.r_t<1else"reduces the doubling time to"),
0 commit comments