This cleans medication column from the report assuming such a column exists. It gets rid of common entries that are not needed. It also splits the medication into fentanyl and midazolam numeric doses for use. It should be used after the textPrep function.

EndoscMeds(MedColumn)

Arguments

MedColumn

column of interest as a string vector

Value

This returns a dataframe

See also

Other Endoscopy specific cleaning functions: EndoscEndoscopist(), EndoscInstrument(), EndoscopyEvent()

Examples

MyendoNew <- cbind(EndoscMeds(Myendo$Medications), Myendo)