Skip to content

Commit

Permalink
remove unnecessary attrition
Browse files Browse the repository at this point in the history
closes #307
  • Loading branch information
edward-burn committed Sep 23, 2024
1 parent bbe0b4a commit 47d3a60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/conceptCohort.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ conceptCohort <- function(cdm,
}

cli::cli_inform(c("i" = "Applying cohort requirements."))
cdm[[name]] <- fulfillCohortReqs(cdm = cdm, name = name) |>
omopgenerics::recordCohortAttrition("cohort requirements")
cdm[[name]] <- fulfillCohortReqs(cdm = cdm, name = name)
cdm[[name]] <- newCohortTable(table = cdm[[name]],
.softValidation = TRUE)

cli::cli_inform(c("i" = "Collapsing records."))
cdm[[name]] <- cdm[[name]] |>
joinOverlap(name = name, gap = 0) |>
omopgenerics::recordCohortAttrition("Overlapping records collapsed")


joinOverlap(name = name, gap = 0)
cdm[[name]] <- newCohortTable(table = cdm[[name]],
.softValidation = TRUE)

cli::cli_inform(c("v" = "Cohort {.strong {name}} created."))

Expand Down

0 comments on commit 47d3a60

Please sign in to comment.