time_regex | R Documentation |
A vector of regular expressions to identify different forms of time
expressions for last dose time. These are the default values used in link{extract_lastdose}
.
time_regex
A vector with 5 regular expressions for the following categories.
Time is indicated by the presence of ‘am’ or ‘pm’ following a numeric expression.
Time is given in military time, for unambiguous times of 13:00-23:59.
Am/pm indication is implicit through a qualifying term like ‘last night’ or ‘this morning’. The qualifier occurs after the time, e.g., ‘10 last night.’
Am/pm indication is implicit through a qualifying term like ‘last night’ or ‘this morning’. The qualifier occurs before the time, e.g., ‘last night at 10.’
Time (in hours) between the last dose and most recent lab value
Certain expressions which might be considered ambiguous are excluded from the regular expressions presented here. For instance, expressions such as ‘600’ could refer to either 6am or 6pm.
data(time_regex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.