The utility function add_concept()
is exported for convenience when adding
external datasets and integrating concepts that require other concepts.
While this could be solves by defining a rec_concpt
, in some scenarios
this might not be ideal, as it might be only required that itm
implementations for certain data sources require additional information.
Examples for this include vasopressor rates which might rely on patient
weight, and blood cell counts when expressed as ratio. For performance
reasons, the pulled in concept is internally cached, as this might be used
unchanged many times, when loading several concepts that need to pull in
the given concept. Persistence of cache is session-level and therefore this
utility is intended to be used somewhat sparingly.
add_concept(x, env, concept, var_name = concept, aggregate = NULL)add_weight(x, env, var_name = "weight")
calc_dur(x, val_var, min_var, max_var, grp_var = NULL)
combine_callbacks(...)
A copy of x
with the requested concept merged in.
Object in loading
Data source environment as available as env
in callback
functions
String valued concept name that will be loaded from the default dictionary
String valued variable name
Forwarded to load_concepts()
String valued column name corresponding to the value variable
Column names denoting start and end times
Optional grouping variable (for example linking infusions)
Functions which will be successively applied