Description Usage Arguments See Also Examples
View source: R/x_search_phrase.R
Search for concepts that end with a phrase in the Concept Synonym table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
phrase |
String to search. |
case_insensitive |
Should the search ignore case?, Default: TRUE |
vocab_schema |
OMOP Vocabulary schema, Default: 'omop_vocabulary' |
conn |
Connection object. If provided, diverts queries to the connection instead of the local Athena instance without caching features. |
cache_only |
Loads from the cache and does not query the database. A NULL object is returned if a resultset was not cached. |
skip_cache |
Skip the caching altogether and directly query the database. |
override_cache |
If TRUE, the cache will not be loaded and will be overwritten by a new query. For override_cache to take effect, skip_cache should be FALSE. |
cache_resultset |
(deprecated) If TRUE, the resultset from the query will first be loaded from the cache. The query will be executed if a cached resultset is not retrieved for this particular query, after which the resultset will be cached. If FALSE, Athena or conn will be directly queried without any caching operations. |
render_sql |
If TRUE, the SQL will be printed back in the console prior to execution. Default: FALSE |
verbose |
If TRUE, prints loading and querying operations messages to the console. Default: FALSE |
sleepTime |
Argument for 'Sys.sleep()' in between queries to allow for halting function execution, especially in cases where other chariot functions are executing multiple queries in succession and require cancellation. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | library(tidyverse)
library(chariot)
# Search the OMOP Vocabulary for an exact match to the phrase
# "Myocardial Infarction" insensitive to case.
search_exact_phrase(phrase = "Myocardial Infarction",
case_insensitive = TRUE)
# Repeat with case sensitivity
search_exact_phrase(phrase = "Myocardial Infarction",
case_insensitive = FALSE)
# Search concepts that contain the phrase "Myocardial Infarction"
search_like_phrase(phrase = "Myocardial infarction")
search_like_phrase(phrase = "Myocardial infarction",
case_insensitive = FALSE)
# Search concepts that start with or end with the phrase "Myocardial Infarction"
search_starts_with_phrase(phrase = "Myocardial infarction")
search_ends_with_phrase(phrase = "Myocardial infarction")
# Search a phrase by splitting into smaller words that are each included in a
# 'LIKE' clause
search_split_phrase(phrase = "Myocardial infarction",
split = " ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.