callback_int: Internal item callback utilities

Description Usage Arguments Value

Description

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.

Usage

1
2
3
add_weight(x, env, weight_var = "weight")

calc_dur(x, val_var, min_var, max_var, grp_var = NULL)

Arguments

x

Object in loading

env

Data source environment as available as env in callback functions

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)

Value

An id_tbl or ts_tbl object, potentially modified by reference.


septic-tank/ricu documentation built on Jan. 30, 2021, 8:40 p.m.