Nothing
test_that("addCohortSurvival validates outcomeDateVariable", {
conn <- structure(list(), dbms = "sql server")
expect_error(
OdysseusSurvivalModule:::addCohortSurvival(
connection = conn,
cdmDatabaseSchema = "cdm",
cohortDatabaseSchema = "cohort",
targetCohortTable = "cohort",
targetCohortId = 1,
outcomeCohortTable = "cohort",
outcomeDateVariable = "bad_col"
),
"outcomeDateVariable"
)
})
test_that("addCohortSurvival validates chunkSize", {
conn <- structure(list(), dbms = "sql server")
expect_error(
OdysseusSurvivalModule:::addCohortSurvival(
connection = conn,
cdmDatabaseSchema = "cdm",
cohortDatabaseSchema = "cohort",
targetCohortTable = "cohort",
targetCohortId = 1,
outcomeCohortTable = "cohort",
chunkSize = -10
),
"chunkSize"
)
})
test_that("addCohortSurvival validates followUpDays", {
conn <- structure(list(), dbms = "sql server")
expect_error(
OdysseusSurvivalModule:::addCohortSurvival(
connection = conn,
cdmDatabaseSchema = "cdm",
cohortDatabaseSchema = "cohort",
targetCohortTable = "cohort",
targetCohortId = 1,
outcomeCohortTable = "cohort",
followUpDays = -1
),
"followUpDays"
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.