Negative control outcome generation no longer requires the use of DatabaseConnector::insertTable. This is revised to build the SQL necessary to create the temporary table that maps the outcome_concept_id to the cohort_id. This change was necessary as unit tests on some platforms were failing due to the insert casting to the wrong column data type.
exportCohortStatsTables gains a tablePrefix parameter to allow for the export of results with the "cg_" prefix for consistency with the resultsDataModelSpecification.csv
Adds a new table cg_cohort_definition_neg_ctrl to the results data model to hold the negative control outcome cohort definitions.
The RDBMS specific tests now use runCohortGeneration to perform a full set of tests for generating cohorts with subsets and negative control outcomes. Previously negative control outcome generation was not tested against each RDBMS.
Adds
runCohortGeneration
function per #165.This work also includes the following changes:
DatabaseConnector::insertTable
. This is revised to build the SQL necessary to create the temporary table that maps theoutcome_concept_id
to thecohort_id
. This change was necessary as unit tests on some platforms were failing due to the insert casting to the wrong column data type.exportCohortStatsTables
gains atablePrefix
parameter to allow for the export of results with the "cg_" prefix for consistency with the resultsDataModelSpecification.csvcg_cohort_definition_neg_ctrl
to the results data model to hold the negative control outcome cohort definitions.runCohortGeneration
to perform a full set of tests for generating cohorts with subsets and negative control outcomes. Previously negative control outcome generation was not tested against each RDBMS.