View source: R/organ_dysfunction_scores.R
find_sirs | R Documentation |
Finds the current organ failure score using SIRS (Systematic Inflammatory Response Syndrome)
find_sirs( .data, patientid, time, period = 1, vitals = c(Temperature = NA, RR = NA, HR = NA, WBC = NA) )
.data |
The dataset you are working with. Must include heart rate (hr), respiratory rate (rr), white blood cell count (wbc), and temperature. |
patientid |
A value indicating the unique patient id, usually an encounter number. |
time |
A POSIXct value indicating the timestamp for when vitals where 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 what columns represent the vitals needed to calculate SIRS, it is important to have temperature in Celsius and WBC in mmm^3 |
Retuns a dataset with a new column denoting the SIRS total
dataset <- find_sirs(sirs_data, Encounter, Service_Timestamp, vitals = c("RR" = "RR", "Temperature" = "Temperature", "HR" = "HR", "WBC" = "Wbc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.