Description Usage Arguments Details Value
View source: R/encounter_metrics.R
length_of_intervention
returns the total length of the specified
intervention.
1 2 | length_of_intervention(enc_info_df, interventions_df, intervention_name,
time_units)
|
enc_info_df |
|
interventions_df |
|
intervention_name |
|
time_units |
|
Computes the total length of intervention, per encounter. Encounters with no events of the specified interventions are assumed to not have had the intervention, and a value of zero is given. The function currently works only for interventions that have both a start time and end time.
data_frame:
chr
: patient_id_encounter
num
: length of intervention_name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.