View source: R/Basic_EndoPathExtractors.R
EndoscopyEvent | R Documentation |
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 only looks within the endoscopy fields. If tissue is taken then this will be extracted with the HistolTypeAndSite function rather than being listed as a result as this is cleaner and more robust.
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
Other Endoscopy specific cleaning functions:
EndoscEndoscopist()
,
EndoscInstrument()
,
EndoscMeds()
# 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.