addCohortsWebApi.Rd
This function adds cohort jsons from ATLAS to a subfolder in input/cohortsToCreate. The subfolder is specified by the type.
addCohortsWebApi(
folderName,
cohortIds,
webApiBaseUrl = Sys.getenv("WEBAPI_URL"),
webApiAuthMethod = Sys.getenv("WEBAPI_AUTHMETHOD"),
webApiUser = Sys.getenv("WEBAPI_USERNAME"),
webApiPassword = Sys.getenv("WEBAPI_PASSWORD"),
cohortFolder = here::here("input/cohortsToCreate")
)
the name of the folder to add the cohorts
a vector of cohorts ids used to identify the cohorts to upload from webapi into the input/cohortsToCreate folder of the project
the base URL to access webapi, defaults to a system envrionment variable
the webApi Authentication method, defaults to a system envrionment variable
the user name used to access WebApi, defaults to a system envrionment variable
the password used to access webApi, defaults to a system envrionment variable
the input/cohortsToCreate folder to save the cohorts, defaults to the folder within the active project binding