get_chemical_structure() is a convenience wrapper for get_classes() that
returns chemical-structure assertions for RxNorm drugs.
Usage
get_chemical_structure(
x,
by = c("rxcui", "name"),
rela_source = c("FDASPL", "DAILYMED", "MEDRT"),
keep_input = TRUE,
show_progress = interactive()
)Arguments
- x
Character vector of RxCUIs or drug names.
- by
One of
"rxcui"or"name".- rela_source
Relationship source. Defaults to FDASPL, DAILYMED, and MEDRT.
- keep_input
Logical; if
TRUE, includes the original input value.- show_progress
Logical. Show a progress bar in interactive sessions. Progress is shown only when at least 5 inputs are supplied.
