Skip to content

Commit

Permalink
Lower threshold for pre-calculated risk scores
Browse files Browse the repository at this point in the history
200 seems to be too high as the number of pediatric patients seems to be
around 100-150 / wk; weird that this hasn't triggered issues before...
  • Loading branch information
ibacher committed Dec 9, 2024
1 parent cbc38eb commit 41a1d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-resources/plumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ get_week_number <- function(date) {
predict_risk <- function(.data, cohort, age_category) {
# arbitrary cut-off, but we expect one big batch per week
# and several small batches; small batches are handled by this if
if (nrow(.data) < 200) {
if (nrow(.data) < 50) {
cutoffs <- DBI::dbGetQuery(
my_pool,
DBI::sqlInterpolate(
Expand Down

0 comments on commit 41a1d17

Please sign in to comment.