write_rxnorm_path_lookup: Write RxNorm Path Lookup

write_rxnorm_path_lookupR Documentation

Write RxNorm Path Lookup

Description

Write the tibble returned by read_rxnorm_paths() to a Postgres table.

Usage

write_rxnorm_path_lookup(
  conn,
  conn_fun = "pg13::local_connect()",
  target_schema = "rxmap",
  table_name = "lookup_rxnorm_paths",
  umls_version,
  umls_release_dt,
  url = "https://lhncbc.nlm.nih.gov/RxNav/applications/RxNavViews.html#label:appendix",
  check_for_updates = FALSE,
  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.

url

Source URL. It is not hardcoded in case the URL changes in the future. Default: 'https://lhncbc.nlm.nih.gov/RxNav/applications/RxNavViews.html#label:appendix'

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.

See Also

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


meerapatelmd/metathesaurus documentation built on May 23, 2022, 7:41 a.m.