find_bx_window: Function that finds the blood culture window according to the...

View source: R/blood_culture_window.R

find_bx_windowR Documentation

Function that finds the blood culture window according to the CDC definition of Sepsis.

Description

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.

Usage

find_bx_window(.data, timestamp_variable, blood_culture_time)

Arguments

.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

Value

Gives a dataset with a new variable consisting of the difference between two time periods

Examples

## Not run: 
result <- find_bx_window(data, service_time, culture_draw_time)

## End(Not run)

trentgillin/SepsisR documentation built on Nov. 26, 2022, 12:41 p.m.