View source: R/assess_organ_function.R
assess_organ | R Documentation |
Finds the current organ failure score.
assess_organ( .data, method = c("SIRS", "SOFA", "qSOFA"), patientid, time, period = 1, vitals )
.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. |
Returns a dataset with a new column that denotes the desired score
score <- assess_organ(sirs_data, method = "SIRS", patientid = Encounter, time = Service_Timestamp, vitals = c("RR" = "RR","HR" = "HR","Temperature" = "Temperature", "WBC" = "Wbc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.