R/funPharm.R
, R/getSBDRxCuiViaRxCui.R
getSBDRxCuiViaRxCui.Rd
This function provides user to get Semantic Branded Drug(SBD) or Semantic Clinical Drug(SCD) RxCui via ingredient RxCui.
getSBDRxCuiViaRxCui(df, RxCuiColName = RxCui, cores = 8)
df | data.frame, a drug ingredient RxCui of the specific indication |
---|---|
RxCuiColName | a column name for RxCui of df |
cores | number of parallel operation |
A new data.table maytreat_SBD_SCD_List
with following columns.
RxCui
drug RxCui
Name
drug name
MinConcept.Id
indication Id
MinConcept.Name
indication name
SBD.rxcui
drug SBD RxCui
After obtaining the data.frame from getRxCuiViaMayTreat()
and getRxCuiViaMayPrevent()
, user can further obtain a commercially available pharmaceutical brand and clinical drug contained these drug ingredients.
The content is to add a column named SBD.rxcui
in the original input data frame, stores the result of converting ingredient to brand drug and clinical drug containing a specific drug component.
# sample of getting SBD or SCD Rxcui list of esophagitis. Esophagitis_SBD_SCD_List <- getSBDRxCuiViaRxCui(df = Esophagitis_List[3,],RxCuiColName = RxCui,cores = 2)#> Error in getSBDRxCuiViaRxCui(df = Esophagitis_List[3, ], RxCuiColName = RxCui, cores = 2): 找不到物件 'Esophagitis_List'#> Error in head(Esophagitis_SBD_SCD_List): 找不到物件 'Esophagitis_SBD_SCD_List'