EndoscMeds: Clean medication column

View source: R/Basic_EndoPathExtractors.R

EndoscMedsR Documentation

Clean medication column

Description

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.

Usage

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)

ropensci/EndoMineR documentation built on March 14, 2023, 3:58 a.m.