find_bx_window.Rd
According to the CDC, in order for sepsis to take place, organ dysfunction and antibiotic administration must have taken place within 2 days before or 2 days after blood cultures being drawn.
find_bx_window(.data, timestamp_variable, blood_culture_time)
.data | The dataset you are working with. |
---|---|
timestamp_variable | The time for the variable you want to test it it occurs within the blood culture window |
blood_culture_time | The timestamp of your blood culture value |
Gives a dataset with a new variable consisting of the difference between two time periods
if (FALSE) { result <- find_bx_window(data, service_time, culture_draw_time) }