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") )
.data | Assignment data from |
---|---|
archive | Should excluded investigators be archived? |
notify_to | Email addresses to notify of excluded investigators. Set to
|
cnd | Should excluded investigators trigger a warning or an error? |
date | The date assigned to the output |
Excluded investigators in a date_tbl