Handles empty data, verbose notifications.

wastd_create_update_skip(
  data_create,
  data_update,
  data_skip,
  update_existing = FALSE,
  label = "records",
  serializer = "encounters",
  chunksize = 1000,
  api_url = wastdr::get_wastdr_api_url(),
  api_token = wastdr::get_wastdr_api_token(),
  verbose = wastdr::get_wastdr_verbose()
)

Arguments

data_create

Records to create.

data_update

Records to update.

data_skip

Records to skip.

update_existing

Whether to update existing but unchanged records in WAStD. Default: FALSE.

label

The model label for verbose messages, default: records.

serializer

The WAStD API serializer, default: encounters.

chunksize

The number of records to post at a time, default: 1000.

api_url

(character) The WAStD API URL, default get_wastdr_api_url, see wastdr_setup

api_token

(character) The WAStD API token, default get_wastdr_api_token, see wastdr_setup

verbose

Whether to show debug messages. Default: wastdr::get_wastdr_verbose()

Value

A list of three objects:

  • created The WAStD API response for all created records

  • updated The WAStD API response for all updated records

  • skipped The original records for all skipped records