readPatients.xl(),that table then is pushed to “other tables” in the CDM reference usingpatientsCDM().generateTestTable() creates an Excel file withsheets that correspond to OMOP-CDM tables.
patientsCDM() now acceptscdmName asargument to allow for custom cdm name.
getEmptyCDM() returns an empty cdm object.
readPatients() now has a parameter to select eitherExcel or CSV files as an input.
readPatients.xl() andreadPatients.csvare also exported functions for convenience.
graphCohort() provides a visualisation of cohorttimelines.
JSONS are saved in the testthat/testCases folder as default forbetter test self-containment.
Tested with MIMIC database.