| lookups | R Documentation |
A lookup table of pre-analysed dosage texts to speed up the processing of new texts. Texts which are difficult to interpret or which cause errors can also be added to this table.
data(lookups)
A data frame with the following 12 variables.
textidnumeric; lookup line identifier
textcharacter; the dosage text
qtynumeric; quantity per dose
unitscharacter; dose units
freqnumeric; dose frequency per time period
totnumeric; total dose per time period
maxcharacter: 'max', 'average', or 'exact'
timenumeric; time interval in number of days
changecharacter: 'first', 'second', or 'nochange'.
If doses for different time periods combined using simplify=TRUE,
change states which dose contributes to the output.
choicecharacter; 'choice', 'asneeded', or 'nochoice'
durationnumeric; duration of prescription
daily_dosenumeric; calculated daily dose
Only a single row is permitted per dosage text.
Users can specify a 'customlookups' table in the same format to provide
alternative lookups. The lookups table is processed by
as.drugdose_lookups.
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/
as.drugdose_singlewords, as.drugdose_multiwords
as.drugdose_patterns, as.drugdose_lookups,
export, addterm
# Import the raw table
data("lookups")
# Convert into the lookup table format
lookups <- as.drugdose_lookups(lookups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.