Skip to content

Commit

Permalink
Update GetConceptRecordCount.R
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamrao committed May 10, 2024
1 parent f3de058 commit 6f5de62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/GetConceptRecordCount.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ getConceptRecordCount <- function(conceptIds = NULL,
stratifyByYearMonth = FALSE,
stratifyByAgeGroup = FALSE,
stratifyByIncidence = FALSE,
getOverallCounts = FALSE,
domainTableName = c(
"drug_exposure",
"condition_occurrence",
Expand Down Expand Up @@ -274,6 +275,11 @@ getConceptRecordCount <- function(conceptIds = NULL,
dplyr::filter(incidence != 'Y')
}

if (!getOverallCounts) {
iterations <- iterations |>
dplyr::filter(includeConceptId == 'Y')
}

existingOutput <- c()

for (i in (1:nrow(iterations))) {
Expand Down

0 comments on commit 6f5de62

Please sign in to comment.