get_concept: Lookup a Concept Id

Description Usage Value Examples

View source: R/x_lookup.R

Description

Lookup a Concept Id

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
get_concept(
  concept_id,
  vocab_schema = "omop_vocabulary",
  conn,
  conn_fun = "connectAthena()",
  cache_only = FALSE,
  skip_cache = FALSE,
  override_cache = FALSE,
  render_sql = FALSE,
  verbose = FALSE,
  sleepTime = 1
)

Value

Concept Class object if the 'concept_id' argument is found in the Concept table. If it is not found, nothing is returned.

Examples

1
2
3
4
5
6
7
8
9
library(tidyverse)
library(chariot)

lookup_atc_class_ingredients(atc_concept_obj = 21601787)

lisinopril_class <- get_concept(concept_id = 21601787)
lisinopril_class

lookup_atc_class_ingredients(atc_concept_obj = lisinopril_class)

patelm9/chariot documentation built on Feb. 19, 2022, 11:29 a.m.