validate_assignments: Validate Case Assignments

Description Usage Arguments Value

View source: R/validate_assignments.R

Description

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.

Usage

1
2
3
4
5
6
7
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


jesse-smith/covidassign documentation built on Aug. 23, 2021, 12:59 a.m.