calc_runtime: Calculate the running time for continuous medication data

Description Usage Arguments Details Value

Description

calc_runtime calculates the time at current rate and time from start

Usage

1
calc_runtime(cont.data, drip.off = 12, no.doc = 24, units = "hours")

Arguments

cont.data

A data frame with continuous medication rate data

drip.off

An optional numeric indicating the number of hours a drip should be off to count as a new infusion, defaults to 12 hours

no.doc

An optional numeric indicating the number of hours without documentation which will be used to indicate a drip has ended, defaults to 24 hours

units

An optional character string specifying the time units to use in calculations, default is hours

Details

This function takes a data frame with continuous medication rate data and produces a data frame with the time at each rate and the time from start for each row. This could be used to then calculate the AUC or to summarize the continuous data. The data will be grouped into distinct sets of infusions, for patients who may have been restarted on the drip one or more times.

Value

A data frame


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.