Assign General Cases to Investigators

assign_general(
  .data,
  date = attr(.data, "date"),
  api_token = Sys.getenv("redcap_NCA_token")
)

Arguments

.data

Data frame of cases to assign, passed from translate_acns()

date

The date to use when checking whether investigators are scheduled

api_token

The API token for the Case Assignment REDcap project. The default pulls this from the environment variable redcap_CA_token.

Value

The input .data with general cases assigned via investigator, team, and assign_date columns