OHDSI/Achilles

exportAO does not generate Metadata and CDM Source reports

Closed this issue · 1 comments

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:

To Reproduce

  1. Invoke Achilles::exportAO() with suitable parameters.
  2. Observe that metadata.csv and cdmsource.csv are missing.

Expected behavior

Achilles::exportAO() should generate metadata.csv and cdmsource.csv, among other reports.

Fixed in a25f5f9