find_qsofa.Rd
Finds the current qSOFA score
find_qsofa( .data, patientid, time, period = 1, vitals = c(RR = NA, SBP = NA, GCS = NA) )
.data | Your dataset. Must have respiratory rate (rr), systolic blood pressure (sbp). and glasgow coma scale (gcs). |
---|---|
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 qSOFA |
result <- find_qsofa(qsofa_data, patientid = Encounter, time = Service_Timestamp, vitals = c("RR" = "RR", "SBP" = "SBP", "GCS" = "GCS"))