EndoscopyEvent: EndoscopyEvent

Description Usage Arguments Value Examples

Description

This extracts the endoscopic event. It looks for the event term and then looks in the event sentence as well as the one above to see if the location is listed. It needs to be run AFTER the HistolTypeAndSite function as emr needs to be added to the event. Used in the OPCS4 coding

Usage

1
EndoscopyEvent(dataframe, EventColumn1, Procedure, Macroscopic, Histology)

Arguments

dataframe

datafrane of interest

EventColumn1

The relevant endoscopt free text column describing the findings

Procedure

Column saying which procedure was performed

Macroscopic

Column describing all the macroscopic specimens

Histology

Column with free text histology (usually microscopic histology)

Value

This returns a character vector

Examples

1
2
# Myendo$EndoscopyEvent<-EndoscopyEvent(Myendo,"Findings",
#"ProcedurePerformed","MACROSCOPICALDESCRIPTION","HISTOLOGY")

sebastiz/EndoMineR_devlop documentation built on May 29, 2019, 7:33 a.m.