Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamrao committed Sep 30, 2024
1 parent 1ee792f commit bfa73aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/GetMappedSourceConcepts.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ getMappedSourceConcepts <-
}

tempTableName <- loadTempConceptTable(
conceptIds = conceptIds,
conceptIds = conceptIds |> unique() |> sort(),
connection = connection,
tempEmulationSchema = tempEmulationSchema
)
Expand Down
2 changes: 1 addition & 1 deletion R/GetMappedStandardConcepts.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ getMappedStandardConcepts <-
}

tempTableName <- loadTempConceptTable(
conceptIds = conceptIds,
conceptIds = conceptIds |> unique() |> sort(),
tempEmulationSchema = tempEmulationSchema,
connection = connection
)
Expand Down
7 changes: 4 additions & 3 deletions R/ResolveConceptSetExpression.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
#

#' Given a concept set expression, get the resolved concepts
#' Given a concept set expression, get the resolved concept ids.
#'
#' @template Connection
#'
Expand All @@ -26,7 +26,7 @@
#' @template TempEmulationSchema
#'
#' @return
#' Returns a tibble data frame.
#' Returns a tibble data frame of distinct sorted concept ids.
#'
#' @export
resolveConceptSetExpression <- function(conceptSetExpression,
Expand All @@ -49,8 +49,9 @@ resolveConceptSetExpression <- function(conceptSetExpression,
snakeCaseToCamelCase = TRUE,
tempEmulationSchema = tempEmulationSchema
) |>
dplyr::distinct() |>
dplyr::arrange(conceptId) |>
dplyr::tibble()
dplyr::pull()

return(resolvedConceptIds)
}
6 changes: 3 additions & 3 deletions man/resolveConceptSetExpression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bfa73aa

Please sign in to comment.