This extracts other specific diagnoses from the report. These have been hard coded to look for dysplasia cancer and GIST. Optional use for the user to add regular expressions as well. All the diagnoses are extracted into one column and made unique.
HistolExtrapolDx(dataframe, Column, userString)
dataframe | dataframe containing histology results, |
---|---|
Column | the column to extract dysplasia, cancer, and GIST from- often the Histology diagnosis column |
userString | user defined string search for (regular expression) |
oo<-HistolExtrapolDx(Mypath,'Diagnosis',"")