get_rxnorm_map: Get the RxNorm Map Between 2 TTY

View source: R/rxnorm_map.R

get_rxnorm_mapR Documentation

Get the RxNorm Map Between 2 TTY

Description

Get the RxNorm Map Between 2 TTY. This map ignores any variability from the rel/rela.

Usage

get_rxnorm_map(
  conn,
  conn_fun = "pg13::local_connect()",
  from_tty = c("BN", "BPCK", "DF", "DFG", "ET", "GPCK", "IN", "MIN", "PIN", "PSN",
    "SBD", "SBDC", "SBDF", "SBDG", "SCD", "SCDC", "SCDF", "SCDG", "SY", "TMSY"),
  to_tty = c("BN", "BPCK", "DF", "DFG", "ET", "GPCK", "IN", "MIN", "PIN", "PSN", "SBD",
    "SBDC", "SBDF", "SBDG", "SCD", "SCDC", "SCDF", "SCDG", "SY", "TMSY"),
  full_path = FALSE,
  schema = "umls",
  verbose = TRUE,
  render_sql = TRUE,
  render_only = FALSE,
  checks = ""
)

Arguments

conn

Database connection via DatabaseConnector.

conn_fun

Instead of supplying of a direct database connection, an expression can be supplied that automatically connects and disconnects the connection once the function is run.

from_tty

The RxNorm TTY to start from.

to_tty

The RxNorm TTY to end at.

full_path

By default, regardless of path length, only the from_tty and to_tty values are returned. If TRUE, the entire path is returned instead.

schema

For Postgres executions only, the schema to write all the tables to, Default: 'umls'

verbose

If TRUE, details on the activity are returned in the console, such as when the querying starting and was completed.

render_sql

If TRUE, the SQL statement for the operation is returned in the console.

Value

Tibble of the mappings between the aui, code, and str between the two start and end tty arguments. If full_path is TRUE, the intermediate tty values are also provided. Every set is prefixed with the tty value. The returned map is derived from a full join and therefore, blank mappings between tty are also included in the tibble.

See Also

Other RxNorm Map: get_rxnorm_ingredient_map(), get_rxnorm_tty_lookup(), read_rxnorm_paths(), setup_rxmap(), write_rxnorm_map(), write_rxnorm_path_lookup()


meerapatelmd/setupMetathesaurus documentation built on May 25, 2022, 6:19 a.m.