Internal item callback utilities
The utility function add_weight()
is exported for convenience when adding
external datasets and integrating concepts such as vasopressor rates which
rely on patient weight. For this to function, the newly added dataset must
offer a weight
concept. For performance reasons, the weight concept is
internally cached, as this might be used unchanged many times, when loading
several concepts that need to pull in patient weight data.
add_weight(x, env, weight_var = "weight") calc_dur(x, val_var, min_var, max_var, grp_var = NULL)
x |
Object in loading |
env |
Data source environment as available as |
weight_var |
String valued name of the newly added weight column |
val_var |
String valued column name corresponding to the value variable |
min_var, max_var |
Column names denoting start and end times |
grp_var |
Optional grouping variable (for example linking infusions) |
An id_tbl
or ts_tbl
object, potentially modified by reference.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.