patterns: Patterns Lookup Table for Extracting Components of Dosage...

Description Usage Format Details References Examples

Description

This lookup table is used in the final stage of standardising dosage text and extracting structured information. It is used after multiwords but instead of replacing a phrase, it extracts components of the dose. The rules in this table are applied one after the other in ascending order of the order column.

Usage

1

Format

A data frame with observations on the following 15 variables.

words

character; pattern phrase

qty

character; dose quantity or regular expression component for extracting quantity from the matched text.

units

a character vector

freq

a character vector

tot

a character vector

priority

a numeric vector

max

a character vector

time

a character vector

change

a logical vector

choice

a character vector

doubledose

a character vector

duration

a character vector

comment

a character vector

category

a character vector

order

a numeric vector

Details

The structured elements can be extracted using regular expression symbols, e.g. \1

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

1
2
3
4
data("patterns")

# Convert to patterns dictionary for analysis
patterns <- as.drugdose_patterns(patterns)

CALIBERdrugdose documentation built on Aug. 5, 2020, 3 p.m.