knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Access drug name and class using RxCUI from the National Library of Medicine RxNorm RESTful API.
rxnorm
is an R package providing a basic interface to query the National Library of Medicine RxNorm RESTful API using RxCUI. The goal is to provide a simple way to translate RxCUI into drug categories with incremental levels of generality: specific drug names r knitr::asis_output("\U02192")
brand names r knitr::asis_output("\U02192")
drug classes.
You can install rxnorm
from GitHub with:
devtools::install_github("nt-williams/rxnorm")
library(rxnorm)
Query the API for the RxNorm name:
get_rx(1011485)
Query the API for the brand name:
get_bn(1011485)
Query the API for the strength of active ingredients:
get_rxcui_strength(861819)
Query the API for the WHO ATC drug class:
get_atc(1011485)
We can further parse ATC codes to varying levels of specificy:
get_atc(1011485, "first") get_atc(1011485, "second") get_atc(1011485, "third") get_atc(1011485, "fourth")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.