Output from different medication extraction systems is formatted in different ways.
In order to be able to process the extracted information, we first need to convert
the output from different systems into a standardized format. Extracted expressions
for various drug entities (e.g., drug name, strength, frequency, etc.) each receive
their own column formatted as "extracted expression::start position::stop position".
If multiple expressions are extracted for the same entity, they will be separated by
backticks.
The medExtractR system returns extractions in a long table format, indicating the
entity, extracted expression, and start:stop position of the extraction. To perform
this initial parsing, entities are paired with the closest preceding drug name. The
one exception to this is the dose change entity, which can occur before the drug name
(see Weeks, et al. 2020 for details).
See EHR Vignette for Extract-Med and Pro-Med-NLP as well as Dose Building Using Example Vanderbilt EHR Data for details.