validate_upload: Validate Case Assignment Upload

Description Usage Arguments Value

View source: R/validate_upload.R

Description

validate_upload() validates that all assigned cases were uploaded. By default, it archives accepted and rejected cases and notifies relevant parties of the status. Note that, unlike validate_assignments(), a notification is sent even if all cases are uploaded correctly.

Usage

1
2
3
4
5
6
7
validate_upload(
  .data,
  archive = TRUE,
  notify_to = c("Jesse.Smith@shelbycountytn.gov", "Karim.Gilani@shelbycountytn.gov"),
  cnd = c("warning", "error"),
  date = attr(.data, "date")
)

Arguments

.data

Upload data from upload_assigments()

archive

Should accepted and rejected cases be archived?

notify_to

Email addresses to notify of case assignment. Set to NULL to disable notification.

cnd

Should rejected cases trigger a warning or an error?

date

The date to use in notification

Value

The input data


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