knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(esft)
This vignette will go over the details of the weekly summary calculations and explain them in laymans' terms.
The first step is to prepare the data and parameters required for the summary functions. Further details on the parameters can be found in the specific function files.
# User input - we set the country to be afghanistan country <- "AFG" user <- user_input() # data loading data(throughput, package = "esft") data(hours_per_shift, package = "esft") # parameters params <- get_parameters() test_strat <- set_testing_strategy() test_params <- get_diagnostic_parameters() lab_params <- get_lab_parameters() # capacity mapping capacity <- get_country_capacity(iso3c = country) country_test_capacity <- get_country_test_capacity(iso3c = country) diagnostic_capacity <- calc_diagnostic_capacity( country_diagnostic_capacity = country_test_capacity, throughput, hours_per_shift = hours_per_shift, shifts_per_day = 1 ) t_labs <- total_labs(diagnostic_capacity) max_tests <- max_tests_per_day(diagnostic_capacity)
This function calls cases weekly, which outputs the beginning segment of the first section of the Weekly Summary tab in the ESFT.
mydata <- load_imperial_data(country_code = country) cases <- cases_weekly(params, capacity, test_strategy_params = test_strat, data = mydata, user = user, data_source = "Imperial" )
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
Max of hospital demand for the dates inclusive in the week specified. Hospital demand is the number of people who would be using a hospital bed given enough healthcare capacity. Note: this is only included if the data source is the imperial SEIR fit data.
$$ \text{Hospital demand} = \max\limits_{t_{0}\rightarrow t_{n}} (\text{Hospital demand}) $$
Max of ICU demand for the dates inclusive in the week specified. ICU demand is the number of people who would be using an ICU bed given enough healthcare capacity. Note: this is only included if the data source is the imperial SEIR fit data.
$$ \text{ICU demand} = \max\limits_{t_{0}\rightarrow t_{n}} (\text{ICU demand}) $$
Sum of hospital incidence for the dates included in the week specified. Hospital incidence is the number of people who would be getting a hospital bed at the current time. Note: this is only included if the data source is the imperial SEIR fit data.
$$ \text{Hospital incidence} = \sum_{t_{0}}^{t_{n}}\text{Hospital incidence} $$
Sum of ICU incidence for the dates included in the week specified. ICU incidence is the number of people who would be getting an ICU bed at the current time. Note: this is only included if the data source is the imperial SEIR fit data.
$$ \text{ICU incidence} = \sum_{t_{0}}^{t_{n}}\text{ICU incidence} $$
Sum of all infections (Imperial) or cases (WHO) for the dates included in the week specified.
$$ \text{Infections} = \sum_{t_{0}}^{t_{n}}\text{Infections} $$
Cumulative infections for the dates included in the week specified, up until the end date of the week specified.
Equivalent to the ICU incidence if Imperial, or the new cases multiplied by the proportion critical if WHO.
Equivalent to the hospital incidence if Imperial, or the new cases multiplied by the proportion severe if WHO.
The new moderate cases is the sum of the new severe and critical cases times the proportion of moderate cases over the sum of the proportions of severe and critical cases.
$$ Cases_{moderate} = (Cases_{severe} + Cases_{critical})*\frac{P_{moderate}}{(P_{severe} + P_{critical})} $$
There was an alternate method of multiplying the total new infections by the moderate proportion of cases, however this method was not used further in the ESFT and additionally resulted in much higher case counts than any other calculation.\
The new mild cases is the sum of the new severe and critical cases times the proportion of mild cases over the sum of the proportions of severe and critical cases.
$$ Cases_{mild} = (Cases_{severe} + Cases_{critical})*\frac{P_{mild}}{(P_{severe} + P_{critical})} $$
There was an alternate method of multiplying the total new infections by the moderate mild of cases, however this method was not used further in the ESFT and additionally resulted in much higher case counts than any other calculation.
Cumulative sum of ICU incidence up to the end date of the specified week ($t_{n}$).\
Cumulative sum of hospital incidence up to the end date of the specified week ($t_{n}$).\
Cumulative sum of new moderate cases up to the end date of the specified week ($t_{n}$).\
Cumulative sum of new mild cases up to the end date of the specified week ($t_{n}$).\
Equivalent to the sum of all new mild, moderate, severe, and critical cases, multiplied by the number of negatives per positive test. These are the cases that are suspected to be positive but are in fact true negative.
$$ Cases_{suspected} = (Cases_{mild} + Cases_{moderate} + Cases_{severe} + Cases_{critical})*\text{(Number of negatives per positive test)} $$
This function calls patients weekly, which outputs the middle segment of the first section in the Weekly Summary tab in the ESFT.
patients <- patients_weekly(params, capacity, data = cases, user = user, data_source = "Imperial" )
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
ICU demand for that week if Imperial source data (nr. 4, cases_weekly
),
cumulative critical cases minus the cumulative removed critical cases if WHO
source data.
Hospital demand for that week if Imperial source data (nr. 3, cases_weekly
),
cumulative severe cases minus the cumulative removed severe cases if WHO
source data.
Cumulative moderate cases minus the cumulative removed moderate cases (which are cumulative moderate cases shifted back by the length of stay of moderate cases in hospital/isolation).\
$$ \text{Moderate Patients Uncapped} = \text{Cumulative}(Cases_{moderate}) - \text{Cumulative Removed}(Cases_{moderate}) $$
where\
$$ \text{Cumulative Removed}(Cases_{moderate}) = \text{Cumulative}(Cases_{moderate})\text{ at }t_{n - stay_{moderate}} $$
Cumulative mild cases minus the cumulative removed mild cases (which are cumulative mild cases shifted back by the length of stay of mild cases in isolation).\
$$ \text{Mild Patients Uncapped} = \text{Cumulative}(Cases_{mild}) - \text{Cumulative Removed}(Cases_{mild}) $$
where \
$$ \text{Cumulative Removed}(Cases_{mild}) = \text{Cumulative}(Cases_{mild})\text{ at }t_{n - stay_{mild}} $$
The minimum of crit_patients_nocap (uncapped critical patients, nr. 3) and the number of beds allocated to critical COVID-19 patients. \ $$ \text{Critical beds in use} = \min(\text{Critical Patients Uncapped}, n_{\text{Critical COVID-19 beds}}) $$
The minimum of sev_patients_nocap (uncapped severe patients, nr. 4) and the number of beds allocated to severe COVID-19 patients. \ $$ \text{Severe beds in use} = \min(\text{Severe Patients Uncapped}, n_{\text{Severe COVID-19 beds}}) $$
Sum of critical and severe beds in use by week. \ $$ \text{Total beds in use} = \text{Critical beds in use} + \text{Severe beds in use} $$
Sum of severe and critical beds in use (nr. 9) divided by the number of hospital beds per care unit, specified in the parameters. \ $$ \text{Hospital facilities in use} = \frac{\text{Total beds in use}}{\text{Hospital beds per care unit}} $$\
Cumulative removed critical cases are calculated weekly by taking the difference between the cumulative critical cases (cum_critical_cases) and the uncapped critical patients (crit_patients_nocap, nr. 3). \ $$ \text{Cumulative Removed}(Cases_{critical}) = \text{Cumulative}(Cases_{critical}) - \text{Critical Patients Uncapped} $$
Then you find the removed critical patients by taking the difference between each week's cumulative removed critical cases and the cumulative removed critical cases from the week before. \ $$ \text{Removed}(Patients_{critical}) = \text{Cumulative Removed}(Cases_{critical}){t_n} - \text{Cumulative Removed}(Cases{critical}){t_{n-1}} $$
Cumulative removed severe cases are calculated weekly by taking the difference between the cumulative severe cases (cum_severe_cases) and the uncapped severe patients (sev_patients_nocap, nr. 4). \ $$ \text{Cumulative Removed}(Cases_{severe}) = \text{Cumulative}(Cases_{severe}) - \text{Severe Patients Uncapped} $$
Then you find the removed severe patients by taking the difference between each week's cumulative removed severe cases and the cumulative removed severe cases from the week before. \ $$ \text{Removed}(Patients_{severe}) = \text{Cumulative Removed}(Cases_{severe}){t_n} - \text{Cumulative Removed}(Cases{severe}){t_{n-1}} $$
The removed moderate patients are the new moderate cases shifted back by the average number of weeks of stay in isolation of moderate cases.\
$$ \text{Removed}(Patients_{moderate}) = Cases_{moderate}({t_{(n-stay_{moderate})}}) $$
The removed mild patients are the new mild cases shifted back by the average number of weeks of stay in isolation of mild cases. \ $$ \text{Removed}(Patients_{mild}) = Cases_{mild}({t_{(n-stay_{mild})}}) $$ \ For the following calculations:
The outcomes are dependent on the average length of stay in hospital of severe and critical patients, and of the previous week's bed occupancy levels. At the moment, these calculations take a 0 occupancy starting point, and so the first rows up to the average length of stay for critical and severe patients are 0. Further package development could focus on incorporating existing levels of bed occupancy, but for now the numbers depend heavily on where users subset their forecasting period. See user_manual for explicit instructions on how to subset the outputs in order to replicate the ESFT exactly.
For discharged critical patients, this is approximately equal to the number of admitted critical patients capped by bed use (crit_patients_admitted_cap) the number of weeks ago that comprise average stay for critical patients. \ $$ \text{Discharged}(Patients_{critical}) = \text{Admitted Capped Cases}{critical}({t{(n-stay_{critical})}}) $$
For discharged severe patients, this is approximately equal to the number of admitted severe patients capped by bed use (sev_patients_admitted_cap) the number of weeks ago that comprise average stay for severe patients. \ $$ \text{Discharged}(Patients_{severe}) = \text{Admitted Capped Cases}{severe}({t{(n-stay_{severe})}}) $$
If the severe beds in use the week previous plus the new severe cases of this week minus the discharged severe patients this week is more than the total number of severe beds allocated for COVID-19 patients, then the admitted number of severe patients capped by bed use is equal to the number of total severe beds for covid use minus the currently occupied beds (i.e. the beds in use the week previous minus the weeks discharged severe patients). If the number of new severe cases needing beds is less than or equal to the number of severe beds available for COVID-19, then the number of admitted capped severe patients is equal to the number of severe beds allocated to COVID-19 patients. \ $$ \text{Let } x = \text{Severe beds in use}{t(n-1)} - \text{Discharged}(Patients{severe}) \ \text{Admitted}(Patients_{severe}) = \left{\begin{array}{lr} n_{\text{Severe COVID-19 beds}} - x, & Cases_{severe} - x > n_{\text{Severe COVID-19 beds}} \ n_{\text{Severe COVID-19 beds}} \end{array}\right. $$
If the critical beds in use the week previous plus the new critical cases of this week minus the discharged critical patients this week is more than the total number of critical beds allocated for COVID-19 patients, then the admitted number of critical patients capped by bed use is equal to the number of total critical beds for covid use minus the currently occupied beds (i.e. the beds in use the week previous minus the weeks discharged critical patients). If the number of new critical cases needing beds is less than the number of critical beds available for COVID-19, then the number of admitted capped critical patients is equal to the number of critical beds allocated to COVID-19 patients. \ $$ \text{Let } x = \text{Critical beds in use}{t(n-1)} - \text{Discharged}(Patients{critical}) \ \text{Admitted}(Patients_{critical}) = \left{\begin{array}{lr} n_{\text{Critical COVID-19 beds}} - x, & Cases_{critical} - x > n_{\text{Critical COVID-19 beds}} \ n_{\text{Critical COVID-19 beds}} \end{array}\right. $$
This function calls patients weekly, which outputs the end segment of the first section in the Weekly Summary tab in the ESFT.
tests <- diagnostics_weekly( params = params, patients, cases, diagnostic_parameters = test_params, testing_scenario = test_strat )
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
Sum of new severe and critical cases multiplied by the number of tests for diagnosis for severe or critical cases. \ $$ \text{Uncapped Tests for Diagnosis of Severe and Critical Cases} = (Cases_{severe} + Cases_{critical})*N_{tests-diagnosis} $$
The sum of the removed severe patients times 1 minus the infection fatality rate of severe patients times the number of tests for release for severe or critical patients and the removed critical patients times 1 minus the infection fatality rate of critical patients times the number of tests for release for severe or critical patients. \ $$ \begin{align} \text{Uncapped Tests for Release of Severe and Critical Cases} = \text{Removed}(Patients_{severe})(1-IFR_{severe})N_{tests-release} + \ \text{Removed}(Patients_{critical})(1-IFR_{critical})N_{tests-release} \end{align} $$
Sum of capped severe and critical patients that were admitted multiplied by the number of tests for diagnosis for severe or critical patients. \ $$ \begin{align} \text{Capped Tests for Diagnosis of Severe and Critical Cases} = (\text{Admitted}(Patients_{critical}) + \text{Admitted}(Patients_{severe}))N_{tests-diagnosis} \end{align*} $$
The sum of the discharged severe patients times 1 minus the infection fatality rate of severe patients times the number of tests for release for severe or critical patients and the discharged critical patients times 1 minus the infection fatality rate of critical patients times the number of tests for release for severe or critical patients. \ $$ \begin{align} \text{Capped Tests for Release of Severe and Critical Cases} = \text{Discharged}(Patients_{severe})(1-IFR_{severe})N_{tests-release} + \ \text{Discharged}(Patients_{critical})(1-IFR_{critical})N_{tests-release} \end{align} $$
New moderate cases times the number of tests for diagnosis for mild or moderate cases. \ $$ Tests_{moderate} = Cases_{moderate}*N_{diagnosis} $$
New mild cases times the number of tests for diagnosis for mild or moderate cases. \ $$ Tests_{mild} = Cases_{mild}*N_{diagnosis} $$
Number of suspected positive cases that are negative times the number of tests for diagnosis for mild or moderate cases. \ $$ Tests_{suspected} = Cases_{suspected}*N_{diagnosis} $$
Testing strategy as specified in the parameter setting segment, in string form.
This function calls patients weekly, which outputs the end segment of the first section in the Weekly Summary tab in the ESFT.
# Loading Healthcare Work Force Estimates data(hwfe, package = "esft") caps <- list( hcws_inpatients_cap = 5448, hcws_screening_cap = 919 ) hcw_caps <- hcw_caps(params, capacity, throughput, hwfe, patients, overrides = caps ) hcws <- hcws_weekly( params, capacity, # from get_country_capacity lab_params, # get_lab_parameters tests, # from diagnostics_weekly patients, # patients_weekly t_labs, # total_labs hcw_caps )
Country code.
Number of hospital beds in country, sourced from the capacity function output. Used as the maximum for number of available hospital beds.
Number of cases screened per HCW per day. Equal to eight divided by the sum of all the time devoted over 24 hours to screening for every kind of HCW. \ $$ \text{Cases screened per HCW per day} = \frac{8}{\sum{t_{screening}(HCW)}} $$
Number of beds (or beds allocated to covid) times the number of hygienists per bed (nr. 11). \ $$ \text{Cap of Cleaners for Inpatients} = n_{\text{COVID beds}}*\text{Hygienists per bed} $$
Percent HCWs allocated to treating COVID-19 (nr. 16) multiplied by the number of HCWs available. \ $$ \text{Cap of HCWs for Inpatients} = P_{\text{treating COVID-19}}*n_{HCWs} $$
The sum of HCWs per severe bed and HCWs per critical bed. The HCWs per severe bed is found by taking the sum of all the time devoted over 24 hrs to severe pateitns by HCWs, dividing this by eight, and then multiplying this by the sum of the total critical beds in use over the forecast period divided by the sum of the total beds in use over the forecast period. HCWs per critical bed is the equivalent calculation for critical patients. \ $$ \text{HCWs per severe bed} = \frac{\sum T_{severe}}{8}\frac{\sum Beds_{severe}}{\sum Beds_{total}} \ \text{HCWs per critical bed} = \frac{\sum T_{critical}}{8}\frac{\sum Beds_{critical}}{\sum Beds_{total}} \ \text{HCWs per bed} = \text{HCWs per severe bed} + \text{HCWs per critical bed} $$
This is equivalent to hcws_per_bed (nr. 7). \ $$ \text{HCWs per inpatient} = \text{HCWs per bed} $$
This is the reciprocal of nr. 3, or one divided by the number of cases screened per HCW per day. \ $$ \text{HCWs per outpatient} = \frac{1}{\text{Cases screened per HCW per day}} $$
This is the percent of HCWs dedicated to screening COVID-19 cases (nr. 14) multiplied by the number of HCWs available. \ $$ \text{Cap of HCWs for Screening} = P_{\text{screening COVID}}*n_{HCWs} $$
Calculated as the sum of hygienists per severe bed and hygienists per critical bed. The hygienists per severe bed is calculated as follows: severe patient time per 24 hours per cleaner is found from the HWFE dataset and is then divided by eight. This term is multiplied by the sum of severe beds in use over the sum of total beds in use through the whole forecast period, which is then multiplied by 10. Hygienists per critical bed is the equivalent for critical patients. \ $$ \text{Hygienists per severe bed} = \frac{T_{severe}}{8}\frac{\sum Beds_{severe}}{\sum Beds_{total}}10 $$
Number of lab staff from capacity multiplied by the lab cap. The lab cap is the mean of the means of the covid capacity of the different categories of test processing machines. \ $$ Lab_{cap} = \sf{mean}(capacity_{\text{high throughput COVID}}, capacity_{\text{near patient COVID}}, capacity_{\text{manual covid}}) $$
where \ $$ capacity_{\text{high throughput COVID}} = \sf{mean}(capacities_{\text{high throughput COVID}}) $$
from the throughput data.
Percent critical cases are the sum of total critical beds in use over the forecast period divided by the sum of the total beds in use over the forecast period. \ $$ p_{critical} = \frac{\sum Beds_{critical}}{\sum Beds_{total}} $$
The percent of HCWS dedicated to screening COVID-19 cases, these are the proportion leftover who are not allocated to the COVID-19 response and who are also not allocated to non-COVID-19 healthcare duties. \ $$ P_{\text{screening COVID}} = 1 - P_{\text{non COVID-19}} - P_{\text{treating COVID-19}} $$
Percent severe cases are the sum of total severe beds in use over the forecast period divided by the sum of the total beds in use over the forecast period. \ $$ p_{severe} = \frac{\sum Beds_{severe}}{\sum Beds_{total}} $$
The percent of HCWs dedicated to treating COVID-19 are found by multiplying the ratio of inpatient HCWs to outpatient HCWS (nr. 19) by one minus the percent of HCWs allocated to non-COVID-19 healthcare activities. \ $$ P_{\text{treating COVID-19}} = ratio_{\frac{HCW_{inpatient}}{HCW_{outpatient}}}*(1-P_{\text{non COVID-19}}) $$
Probability of a new case being inpatient is the sum of proportions of infections that are severe and critical. \ $$ prob_{inpatient} = prop_{severe}+prop_{critical} $$
Probability of a new case being outpatient is the sum of proportions of infections that are mild and moderate. \ $$ prob_{outpatient} = prop_{mild}+prop_{moderate} $$
The ratio of inpatient to outpatient HCWs is equal to the probability of a patient being inpatient multiplied by the HCWs per inpatient, divided by the sum of the probability of a patient being inpatient multiplied by the HCWs per inpatient and the the probability of a patient being outpatient multiplied by the HCWs per outpatient. \ $$ ratio_{\frac{HCW_{inpatient}}{HCW_{outpatient}}} = \frac{prob_{inpatient}HCW_{inpatient}}{prob_{inpatient}HCW_{inpatient} + prob_{outpatient}*HCW_{outpatient}} $$
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
The minimum of the total beds in use multiplied by the HCWs per bed and the HCW inpatient cap. \ $$ \text{Capped HCW}{inpatient} = min(\text{Total beds in use}*HCW{\text{per bed}}, HCW_{cap-inpatient}) $$
Total beds in use multiplied by the HCWs per bed. \ $$ \text{Uncapped HCW}{inpatient} = \text{Total beds in use}*HCW{\text{per bed}} $$
Total beds in use multiplied by the number of recommended informal caregivers per hospitalised patient. \ $$ \text{Uncapped Informal Caregivers}= \text{Total beds in use}*Caregiver_{\text{per hospitalised patient}} $$
Minimum of the inpatient cleaner cap and the total beds in use multiplied by the number of hygienists per bed. \ $$ \text{Capped Cleaner}{inpatient} = min(\text{Total beds in use}*Hygienists{\text{per bed}}, Hygienist_{cap-inpatient}) $$
Total beds in use multiplied by the number of ambulance workers per bed. \ $$ \text{Capped Ambulance Personnel}{inpatient}= \text{Total beds in use}*Ambulancier{\text{per bed}} $$
Total beds in use multiplied by the number of biological engineers per bed. \ $$ \text{Capped Bio Eng}{inpatient}= \text{Total beds in use}*BioEng{\text{per bed}} $$
The sum of tests for mild and moderate patients times the number of informal caregivers by isolating case. \ $$ \text{Uncapped Informal Caregivers}{isolation}= (Tests{mild}+Tests_{moderate})*Caregivers_{\text{per isolating case}} $$
The minimum of the total labs multiplied by the number of lab staff per lab and the lab staff cap. \ $$ \text{Capped Lab Staff} = min(T_{labs}*LabStaff_{\text{per lab}}, LabStaff_{cap}) $$
The total number of labs multiplied by the number of hygienists per lab. \ $$ \text{Total Cleaners Lab} = T_{labs}*Hygienists_{\text{per lab}} $$
This function calls patients weekly, which outputs the end segment of the first section in the Weekly Summary tab in the ESFT.
screening_hcws <- screening_hcws_weekly( tests, hcw_caps, capacity ) added_tests <- additional_testing( hcws, screening_hcws, test_strat, tests ) n_tests <- total_tests(tests, added_tests, max_tests) test_ratios <- test_ratio(diagnostic_capacity, test_params)
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
The number of uncapped screening HCWs is equal to the total number of tests for mild, moderate, and suspected cases divided by eight, multiplied by the number of cases screened per HCW per day.
\ $$ \text{Uncapped HCW}{screening} = \frac{(Tests{suspected} + Tests_{mild} + Tests_{moderate})}{8}*\text{Cases Screened Per HCW per Day} $$
The capped number of screening HCWs is equal to the minimum of the uncapped HCWs for screening and the cap for screening HCWs.
\ $$ \text{Capped HCW}{screening} = min(\text{Uncapped HCW}{screening}, \text{Cap of HCWs for Screening}) $$
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
The number of tests for HCWs every week is equal to the sum of all of the capped inpatient or lab staff and personnel multiplied by the number of tests per HCW per week as specified in the parameters. \ $$ \begin{align} \text{Tests}{HCW} = \text{Tests per HCW per Week} * \ (\text{Capped HCW}{inpatient} + \text{Capped Cleaner}{inpatient} + \ \text{Capped Ambulance Personnel}{inpatient} + \text{Capped Bio Eng}{inpatient} + \ \text{Capped HCW}{screening} + \text{Capped Lab Staff} + \text{Total Cleaners Lab}) \end{align} $$
If the condition for testing contacts weekly is true & specified, the number of total tests for contacts weekly is equal to the sum of potential uncapped tests for all categories and conditions multiplied by the percentage of contacts tested ($p_{\text{contacts tested}}$) and the average number of contacts per positive case ($n_{\text{avg contacts per positive case}}$). \ $$ \text{Let } x = \text{Uncapped Tests for Diagnosis of Severe and Critical Cases} + \ \text{Uncapped Tests for Release of Severe and Critical Cases} + \ Tests_{mild} + Tests_{moderate}\ Tests_{contacts} = \left{\begin{array}{lr} p_{\text{contacts tested}}n_{\text{avg contacts per positive case}}x, & \text{Testing Contacts = True} \ 0 \end{array}\right. $$
Date that the week begins, inclusive ($t_{0}$).
Date that the week ends, inclusive ($t_{n}$).
The capped number of total tests is the minimum of the uncapped total tests and the max tests per day multiplied by seven. \ $$ \begin{align} \text{Capped Tests}{total} = min(\text{Uncapped Tests}{total}, Tests_{max}7) \end{align*} $$
Uncapped total tests equals the sum of the capped tests for diagnosis for severe and critical patients, for release of severe and critical patients, the tests for mild, moderate, and suspected cases, in addition to the tests for HCWs and contacts of cases. \ $$ \begin{align} \text{Uncapped Tests}{total} = \text{Capped Tests Diagnosis Severe and Critical} + \ \text{Capped Tests for Release Severe and Critical} + Tests{mild} + \ Tests_{moderate} + Tests_{suspected} + Tests_{HCW} + Tests_{contacts} \end{align} $$
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.