get_test_drug_concepts: Get Test Drug Concepts

Description Usage See Also Examples

View source: R/x_get_test.R

Description

Get random records of RxNorm and RxNorm Extension Concepts that are:

  1. Valid,

  2. Not a Class,

  3. Belong to the Drug domain

Usage

1
2
3
4
5
6
7
8
get_test_drug_concepts(
  conn,
  conn_fun = "connectAthena()",
  schema = "omop_vocabulary",
  limit = 100,
  verbose = TRUE,
  render_sql = TRUE
)

See Also

parse_expr render

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library(chariot)
library(tidyverse)

# Get Unfiltered Test Concepts (Invalid Concepts are included)
get_test_concepts()

# The size of the resultset can be altered
get_test_concepts(limit = 25)

# Concepts specific to the Drug domain can be sampled
# RxNorm/RxNorm Extension Concepts
get_test_drug_concepts(limit = 10)

# HemOnc/ATC Classes
get_test_drug_classes(limit = 10)

# Test data can also be taken from tables other than Concept
get_test_data(table = "concept_relationship")
get_test_data(table = "concept_ancestor", limit = 10)

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