validate_assignments() validates that cases were assigned to all scheduled investigators. By default, it archives any excluded investigators and notifies relevant parties of the omission.

validate_assignments(
  .data = assign_acns(),
  archive = TRUE,
  notify_to = c("Jesse.Smith@shelbycountytn.gov", "Karim.Gilani@shelbycountytn.gov"),
  cnd = c("warning", "error"),
  date = attr(.data, "date")
)

Arguments

.data

Assignment data from assign_acns()

archive

Should excluded investigators be archived?

notify_to

Email addresses to notify of excluded investigators. Set to NULL to disable notifications.

cnd

Should excluded investigators trigger a warning or an error?

date

The date assigned to the output date_tbl

Value

Excluded investigators in a date_tbl