assess_organ: Assess Organ Failure Function

View source: R/assess_organ_function.R

assess_organR Documentation

Assess Organ Failure Function

Description

Finds the current organ failure score.

Usage

assess_organ(
  .data,
  method = c("SIRS", "SOFA", "qSOFA"),
  patientid,
  time,
  period = 1,
  vitals
)

Arguments

.data

The dataset you are working with.

method

A character value indicating what method you would like to use to score organ failure.

patientid

A character or numeric value unique to each patient.

time

A POSIXct value that represents when a vital was taken.

period

A numeric value that indicates how long one vital is good for, default is one hour. Note: This will only fill in missing vitals.

vitals

A character vector denoting the certain vitals necessary for each organ failure score.

Value

Returns a dataset with a new column that denotes the desired score

Examples

score <- assess_organ(sirs_data, method = "SIRS", patientid = Encounter, 
time = Service_Timestamp, vitals = c("RR" = "RR","HR" = "HR","Temperature" = "Temperature",
"WBC" = "Wbc"))

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