Description Usage Arguments Value Examples
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
1 | EndoscopyEvent(dataframe, EventColumn1, Procedure, Macroscopic, Histology)
|
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) |
This returns a character vector
1 2 | # Myendo$EndoscopyEvent<-EndoscopyEvent(Myendo,"Findings",
#"ProcedurePerformed","MACROSCOPICALDESCRIPTION","HISTOLOGY")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.