multiwords: Multiwords Lookup Table for Simplifying a Dosage Text

multiwordsR Documentation

Multiwords Lookup Table for Simplifying a Dosage Text

Description

Lookup table for converting

Usage

data(multiwords)

Format

A data frame with observations on the following 4 variables.

words

character; regular expression to match dosage text in a standardised format (one space between words, no capitals)

replacement

character; replacement text

comments

character; comments

order

numeric; order in which the rules are applied

Details

The rules are applied in order, and each subsequent rule acts on text which has been modified by previous rules.

References

Shah AD, Martinez C. An algorithm to derive a numerical daily dose from unstructured text dosage instructions. Pharmacoepidemiol Drug Saf 2006; 15(3): 161-166. doi: 10.1002/pds.1151 http://onlinelibrary.wiley.com/doi/10.1002/pds.1151/

Examples

data("multiwords")

# Convert to multiwords dictionary for analysis
multiwords <- as.drugdose_multiwords(multiwords)

CALIBERdrugdose documentation built on July 4, 2024, 3:01 p.m.