Skip to content

Commit

Permalink
Merge pull request #423 from OHDSI/requirecohort-bug
Browse files Browse the repository at this point in the history
Bug in `requireCohortIntersect`
  • Loading branch information
edward-burn authored Jan 15, 2025
2 parents 5bf85fd + d775738 commit 717d8c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/requireCohortIntersect.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ requireCohortIntersect <- function(cohort,
window = window,
censorDate = censorDate,
nameStyle = "intersect_cohort",
name = name
name = subsetName
)

subsetCohort <- subsetCohort |>
Expand Down Expand Up @@ -138,6 +138,7 @@ requireCohortIntersect <- function(cohort,
reason <- glue::glue("{reason}, censoring at {censorDate}")
}

# add additional columns
x <- cohort |>
dplyr::inner_join(subsetCohort, by = c(cols)) |>
dplyr::compute(name = name, temporary = FALSE) |>
Expand Down

0 comments on commit 717d8c2

Please sign in to comment.