This extracts Accession Number data data from the report where one is present. The Accession number relates to the actual specimen number as ascribed by the pathology service.

HistolAccessionNumber(dataframe, AccessionColumn, regString)

Arguments

dataframe

dataframe name and

AccessionColumn

the column name as a string.

regString

regular expression needed as a string

Examples

mm<-HistolAccessionNumber(Mypath,'Histology', "SP-\\d{2}-\\d{7}")