You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in cdmTargetCheck():
x names(cdm[[targetCohortTable]] %>% utils::head(1) %>% dplyr::collect()) a choice between: cohort_definition_id, subject_id, cohort_start_date, and cohort_end_date.
! names(cdm[[targetCohortTable]] %>% utils::head(1) %>% dplyr::collect()) must be a choice between: cohort_definition_id, subject_id, cohort_start_date, and cohort_end_date; it can not contain NA; it can not be NULL.
The text was updated successfully, but these errors were encountered:
Can generateTargetDenominatorCohortSet on a simple concept cohort. But get an error in cdmTargetCheck if I use an intersect cohort.
`cdm$gi_bleed <- CohortConstructor::conceptCohort(cdm,
conceptSet = list("gi_bleed" = 192671),
name = "gi_bleed")
cdm$test <- CohortConstructor::demographicsCohort(cdm = cdm,
ageRange = c(0, 45),
sex= "Both",
name = "test")
base and gi_bleed
cdm$test <- cdm$test |>
CohortConstructor::requireCohortIntersect(
targetCohortTable = "gi_bleed",
cohortId = 1,
targetCohortId = 1,
targetEndDate = NULL,
window = list(c(1,Inf)),
intersections = c(1, Inf)
)
cdm <- IncidencePrevalence::generateTargetDenominatorCohortSet(
cdm = cdm,
name = "denominator_test",
targetCohortTable = "test",
targetCohortId = 1)`
Error in
cdmTargetCheck()
:x
names(cdm[[targetCohortTable]] %>% utils::head(1) %>% dplyr::collect())
a choice between: cohort_definition_id, subject_id, cohort_start_date, and cohort_end_date.!
names(cdm[[targetCohortTable]] %>% utils::head(1) %>% dplyr::collect())
must be a choice between: cohort_definition_id, subject_id, cohort_start_date, and cohort_end_date; it can not contain NA; it can not be NULL.The text was updated successfully, but these errors were encountered: