returnAKIpatients {akiFlagger}R Documentation

Flag patients for AKI

Description

Add in the AKI column in a patient dataframe according to the KDIGO criterion

Usage

returnAKIpatients(
  dataframe,
  HB_trumping = FALSE,
  eGFR_impute = FALSE,
  window1 = as.difftime(2, units = "days"),
  window2 = as.difftime(7, units = "days"),
  padding = as.difftime(0, units = "days"),
  add_min_creat = FALSE,
  add_baseline_creat = FALSE,
  add_imputed_admission = FALSE,
  add_imputed_encounter = FALSE
)

Arguments

dataframe

patient dataset

HB_trumping

boolean on whether to have historical baseline creatinine values trump the local minimum creatinine values

eGFR_impute

boolean on whether to impute missing baseline creatinine values with CKD-EPI equation

window1

rolling window length of the shorter time window; defaults to 48 hours

window2

rolling window length of the longer time window; defaults to 162 hours

padding

padding to add to rolling windows; defaults to 0 hours

add_min_creat

boolean on whether to add the intermediate columns generated during calculation

add_baseline_creat

boolean on whether to add the baseline creatinine values in

add_imputed_admission

boolean on whether to add the imputed admission column in

add_imputed_encounter

boolean on whether to add the imputer encounter id column in

Value

patient dataset with AKI column added in

#Imports

Examples

returnAKIpatients(toy)

[Package akiFlagger version 0.3.0 Index]