Learn R Programming

medExtractR (version 0.4.1)

medExtractR-package: Medication Extraction With R

Description

Provides a function medExtractR for extracting dose attributes for medications within a given electronic health record (EHR) note.

Arguments

Examples

Run this code
# NOT RUN {
note1 <- "Progrf Oral Capsule 1 mg 3 capsules by mouth twice a day - last
dose at 10pm"
note2 <- "Currently on lamotrigine 150-200, but will increase to lamotrigine 200mg bid"
medExtractR(note1, c("prograf", "tacrolimus"), 60, "mg", 2, lastdose=TRUE)
medExtractR(note2, c("lamotrigine", "ltg"), 130, "mg", 1, strength_sep = "-")
# }

Run the code above in your browser using DataLab