exportAO does not generate Metadata and CDM Source reports
Closed this issue · 1 comments
xitology commented
Describe the bug
The function exportAO()
does not generate expected reports metadata.csv
and cdmsource.csv
.
This is because the code is guarded with conditions "METADATA" %in% DatabaseConnector::getTableNames(...)
and "CDM_SOURCE" %in% DatabaseConnector::getTableNames(...)
. But newer versions of DatabaseConnector return table names in lower case, so these conditions will always return FALSE.
See:
- https://github.com/OHDSI/Achilles/blob/main/R/exportAO.R#L531
- https://github.com/OHDSI/Achilles/blob/main/R/exportAO.R#L624
To Reproduce
- Invoke
Achilles::exportAO()
with suitable parameters. - Observe that
metadata.csv
andcdmsource.csv
are missing.
Expected behavior
Achilles::exportAO()
should generate metadata.csv
and cdmsource.csv
, among other reports.