======== An R tool that lets you manage cohort definitions sourced from CSVs
in R, use the following commands to install CohortManager (if you have prior package installations of aony of these packages, you may need to first unistall them using the command remove.packages()).
r
install.packages("devtools")
library(devtools)
install_github("chrisknoll/CohortManager")
If you do not have existing CSV files, create an empty directory to store these, and execute the following to create empty files:
r
directoryPath <- "{path to empty directory}";
CohortManager::initCsv(directoryPath)
Set the CohortManager options for the WebAPI path and sourceKey:
directoryPath <- {path to empty directory};
CohortManager::initCsv(directoryPath)
Call CohortManager::setDataDirectory(path). This will verify all tequired files and columns are found.
Ensure that all files are saved before calling sync(). Do hot have the CohortDefinitions.csv file open in excell when calling sync() because the file is modified with he server-side cohort definition IDs, and if the file is open, it will report 'access deined'.
CohortManager is licensed under Apache License 2.0
CohortManager is being developed in R Studio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.