Description Usage Arguments Details Value Examples
The function calls the R package doseminer to extract dose information from free-text prescribing instructions, then computes the average numerical daily dose according to a given decision rule.
1 | compute_ndd(data, dose_fn = mean, freq_fn = mean, interval_fn = mean)
|
data |
a data frame containing free-text prescribing instructions in a
column called |
dose_fn |
function to summarise range of numbers by a single value |
freq_fn |
function to summarise range of frequencies by a single value |
interval_fn |
function to summarise range of intervals by a single value |
The general formula for computing numerical daily dose (ndd) is given by
ndd = DF * DN / DI,
where
is dose frequency, the number of dose 'events' per day
is dose number, or number of units of drug taken during each dose 'event'
is dose interval, or the number of days between 'dose days', where an interval of 1 means every day
Prescriptions can have a variable dose frequency or dose number, such as '2-4 tablets up to 3 times per day'. In this case, the user can choose to reduce these ranges to single values by taking the minimum, maximum or average of these endpoints.
A data frame mapping the raw text
to structured dosage information.
1 | compute_ndd(cprd, min, min, mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.