api_create: Create MS Bioscreen data entry

Description Usage Arguments See Also

Description

api_create creates a new entry in the bioscreen.

Usage

1
2
3
api_create(sufl_data, endpoint,
  base_url = "https://msbioscreen-uat.herokuapp.com/api/v1",
  token = get_token(), verbose_b = TRUE)

Arguments

sufl_data

a data frame with 1 row and column names that follow the current SUFL specification (1.0). At minimum, sufl_data must contain the identifier columns "source_id" and "external_identifier". For attacks, treatments and visits data, sufl_data must also contain the identifier columns "patient_source_id" and "patient_external_identifier".

endpoint

the data endpoint of interest. Possible values are "subjects", "attacks", "treatments", and "visits".

base_url

the API base URL.

token

HTTP authorization token. Default is to get environment variable 'MSBWAITER_TOKEN'.

verbose_b

print progress messages as function runs?

See Also

api_do_action, api_update, api_delete


UCSF-MSLAB/msbwaiter documentation built on May 9, 2019, 5:19 p.m.