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

getRxCuiViaMayTreat(strmaytreat)

Arguments

strmaytreat

user can input an indication name

Value

A new data.table maytreat_List with following columns.

RxCui drug RxCui

Name drug name

MinConcept.Id indication Id

MinConcept.Name 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.

Examples

# sample of searching an indication esophagitis may treat. Esophagitis_List <- getRxCuiViaMayTreat("esophagitis")
#> Error in resMaytreat %>% filter(t == TRUE) %>% select(RxCui, Name, rxclassMinConceptItem.classId, rxclassMinConceptItem.className) %>% arrange(rxclassMinConceptItem.className) %>% unique(): 沒有這個函數 "%>%"
# sample of getting drug ingredient RxCui list of esophagitis. head(Esophagitis_List)
#> Error in head(Esophagitis_List): 找不到物件 'Esophagitis_List'