getRxCuiViaMayTreat: Get ingredient RxCui via specific indication

View source: R/getRxCuiViaMayTreat.R

getRxCuiViaMayTreatR Documentation

Get ingredient RxCui via specific indication

Description

This function provides user to get drug ingredient RxCui of the specific indication may treat.

Usage

getRxCuiViaMayTreat(strmaytreat)

Arguments

strmaytreat

user can input an indication name

Details

The data source is from the U.S. Veterans Administration's MED-RT database. Since RxNorm integrates the US Veterans Administration MED-RT drug vocabulary and provides API (/rxclass/relaSources) that mediates RxCui into the drug vocabulary. Therefore, we establishes a function through this API, so that users can obtain complete contraindications, indications and other information in the MED-RT vocabulary through the drug RxCui. In addition to drug contraindications and indications for RxNorm coding, this study also uses web crawler technology to crawl information on contraindications and indications for all drugs in the MED-RT data sheet. Establish a function for finding drugs from contraindications and indications.

Value

A new data.table maytreat_List with following columns.

RxCui drug RxCui

Name drug name

MinConcept.Id indication Id

MinConcept.Name indication name

Examples

# sample of searching an indication esophagitis may treat.
Esophagitis_List <- getRxCuiViaMayTreat("esophagitis")
# sample of getting drug ingredient RxCui list of esophagitis.
head(Esophagitis_List)

DHLab-CGU/pharm documentation built on July 2, 2022, 7:16 a.m.