Skip to contents

This extracts the pathological stage from the histopathology specimen. It is done using 'degradation' so that it will look for the worst overall grade in the histology specimen and if not found it will look for the next worst and so on. It looks per report not per biopsy (it is more common for histopathology reports to contain the worst overall grade rather than individual biopsy grades). Specfically it extracts the histopathology worst grade within the specimen FOr the sake of accuracy this should alwats be used after the HistolDx function and this removes negative sentences such as 'there is no dysplasia'. This current function should be used on the column derived from HistolDx which is called Dx_Simplified

Usage

Barretts_PathStage(dataframe, PathColumn)

Arguments

dataframe

dataframe with column of interest

PathColumn

column of interest

See also

Other Disease Specific Analysis - Barretts Data: BarrettsAll(), BarrettsBxQual(), BarrettsParisEMR(), Barretts_FUType(), Barretts_PragueScore()

Examples

# Firstly relevant columns are extrapolated from the
# Mypath demo dataset. These functions are all part of Histology data
# cleaning as part of the package.
# The function then takes the Histology column from the merged data set (v).
# It extracts the worst histological grade for a specimen
b <- Barretts_PathStage(Mypath, "Histology")
rm(v)
#> Warning: object 'v' not found