find_qsofa: qSOFA calculation function

find_qsofaR Documentation

qSOFA calculation function

Description

Finds the current qSOFA score

Usage

find_qsofa(
  .data,
  patientid,
  time,
  period = 1,
  vitals = c(RR = NA, SBP = NA, GCS = NA)
)

Arguments

.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

Value

Returns a dataset with a new column denoting the qSOFA total

Examples

result <- find_qsofa(qsofa_data, patientid = Encounter, time = Service_Timestamp, 
vitals = c("RR" = "RR", "SBP" = "SBP", "GCS" = "GCS"))

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