Git Product home page Git Product logo

rxnorm's Introduction

rxnorm

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Access drug name and class using RxCUI from the National Library of Medicine RxNorm RESTful API.

Scope

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 → brand names → drug classes.

Installation

You can install rxnorm from GitHub with:

devtools::install_github("nt-williams/rxnorm")

Example

library(rxnorm)

Query the API for the RxNorm name:

get_rx(1011485)
#> [1] "cetirizine hydrochloride 10 MG Disintegrating Oral Tablet [Zyrtec]"

Query the API for the brand name:

get_bn(1011485)
#> [1] "ZYRTEC"

Query the API for the strength of active ingredients:

get_rxcui_strength(861819)
#>      activeIngredientName numeratorValue numeratorUnit denominatorValue
#> 1   sitagliptin phosphate             50            MG                1
#> 2 metformin hydrochloride            500            MG                1
#>   denominatorUnit
#> 1            EACH
#> 2            EACH

Query the API for the WHO ATC drug class:

get_atc(1011485)
#> [1] "R06AE"

We can further parse ATC codes to varying levels of specificy:

get_atc(1011485, "first")
#> [1] "respiratory system"
get_atc(1011485, "second")
#> [1] "antihistamines for systemic use"
get_atc(1011485, "third")
#> [1] "antihistamines for systemic use"
get_atc(1011485, "fourth")
#> [1] "piperazine derivatives"

rxnorm's People

Contributors

nt-williams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rxnorm's Issues

RxNorm does map RxCUI 435 to the level of interest

For RxCUI, there are 2 ATC classes. There is a bug in the package when it comes to parsing those ATC codes into the level of of interest. This is true for other RxCUI with multiple ATC classes as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.