View source: R/Module_Barretts.R
Barretts_PragueScore | R Documentation |
The aim is to extract a C and M stage (Prague score) for Barrett's samples. This is done using a regex where C and M stages are explicitly mentioned in the free text Specfically it extracts the Prague score
Barretts_PragueScore(dataframe, EndoReportColumn, EndoReportColumn2)
dataframe |
dataframe with column of interest |
EndoReportColumn |
column of interest |
EndoReportColumn2 |
second column of interest |
Other Disease Specific Analysis - Barretts Data:
BarrettsAll()
,
BarrettsBxQual()
,
BarrettsParisEMR()
,
Barretts_FUType()
,
Barretts_PathStage()
# The example takes the endoscopy demo dataset and searches the # Findings column (which contains endoscopy free text about the # procedure itself). It then extracts the Prague score if relevant. I # find it easiest to use this on a Barrett's subset of data rather than # a dump of all endoscopies but of course this is a permissible dataset # too aa <- Barretts_PragueScore(Myendo, "Findings", "OGDReportWhole")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.