Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ginberg committed Nov 20, 2023
1 parent a5d1ae1 commit 8880772
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions R/GetCovariatesFromOtherCohorts.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ getDbCohortBasedCovariatesData <- function(connection,
oracleTempSchema = oracleTempSchema,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortTable = cohortTable,
cohortId = cohortId,
cohortIds = cohortIds,
cdmVersion = cdmVersion,
rowIdField = rowIdField,
detailledSettings,
covariateSettings = detailledSettings,
aggregated = aggregated
)

Expand Down
4 changes: 2 additions & 2 deletions extras/CohortBasedCovariatesVignetteDataFetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ covariateData <- getDbCovariateData(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
rowIdField = "subject_id",
covariateSettings = covariateSettings)

Expand Down Expand Up @@ -97,7 +97,7 @@ covariateData <- getDbCovariateData(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
rowIdField = "subject_id",
covariateSettings = covariateSettingsList,
aggregated = TRUE)
Expand Down
18 changes: 9 additions & 9 deletions tests/testthat/test-GetCohortBasedCovariates.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ runCohortBasedBinaryNonAggTest <- function(connection, cdmDatabaseSchema, ohdsiD
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -137,7 +137,7 @@ runCohortBasedBinaryAggTest <- function(connection, cdmDatabaseSchema, ohdsiData
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -180,7 +180,7 @@ runCohortBasedBinaryNonAggTemporalTest <- function(connection, cdmDatabaseSchema
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -224,7 +224,7 @@ runCohortBasedBinaryAggTemporalTest <- function(connection, cdmDatabaseSchema, o
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -271,7 +271,7 @@ runCohortBasedCountsNonAggTest <- function(connection, cdmDatabaseSchema, ohdsiD
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTable = cohortTable,
cohortTableIsTemp = tempTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -315,7 +315,7 @@ runCohortBasedCountsAggTest <- function(connection, cdmDatabaseSchema, ohdsiData
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -361,7 +361,7 @@ runCohortBasedCountsNonAggTemporalTest <- function(connection, cdmDatabaseSchema
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -406,7 +406,7 @@ runCohortBasedCountsAggTemporalTest <- function(connection, cdmDatabaseSchema, o
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTable = cohortTable,
cohortTableIsTemp = tempTable,
cohortId = 1,
cohortIds = c(1),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down Expand Up @@ -455,7 +455,7 @@ runCohortBasedCountsAggMultiCohortTest <- function(connection, cdmDatabaseSchema
cohortDatabaseSchema = ohdsiDatabaseSchema,
cohortTableIsTemp = tempTable,
cohortTable = cohortTable,
cohortId = c(1, 101),
cohortIds = c(1, 101),
cdmVersion = "5",
rowIdField = "subject_id",
covariateSettings = settings,
Expand Down

0 comments on commit 8880772

Please sign in to comment.