Skip to content

Commit

Permalink
Update ExtractConceptSetsInCohortDefinitionSet.R
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamrao committed Sep 13, 2024
1 parent e5bcb38 commit e12010d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/ExtractConceptSetsInCohortDefinitionSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ extractConceptSetsInCohortDefinitionSet <-
!class(conceptSetsInCohortDefinition) == "try-error"
)) {
conceptSets[[i]] <- conceptSetsInCohortDefinition |>
dplyr::select(-.data$uniqueConceptSetId) |>
dplyr::select(dplyr::all_of(uniqueConceptSetId)) |>
dplyr::mutate(cohortId = cohort$cohortId) |>
dplyr::relocate(.data$cohortId, .data$conceptSetId)
dplyr::relocate(dplyr::all_of(c("cohortId", "conceptSetId")))
}
}
if (length(conceptSets) == 0) {
return(NULL)
}
conceptSets <- dplyr::bind_rows(conceptSets) |>
dplyr::arrange(.data$cohortId, .data$conceptSetId)
dplyr::arrange(dplyr::all_of(c("cohortId", "conceptSetId")))

conceptSetSig <- list()
for (i in (1:nrow(conceptSets))) {
Expand Down

0 comments on commit e12010d

Please sign in to comment.