assess_organ.RdFinds 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 data frame or tibble 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"))