phoenix_hepatic {phoenix} | R Documentation |
Phoenix Hepatic Score
Description
Apply the Phoenix Hepatic scoring based on total bilirubin and ALT.
Usage
phoenix_hepatic(
bilirubin = NA_real_,
alt = NA_real_,
data = parent.frame(),
...
)
Arguments
bilirubin |
numeric vector; units of mg/dL |
alt |
alanine aminotransferase; a numeric vector; units of IU/L |
data |
a |
... |
pass through |
Value
a integer vector with values 0 or 1
As with all other Phoenix organ system scores, missing values in the data set will map to a score of zero - this is consistent with the development of the criteria.
Phoenix Hepatic Scoring
1 point for total bilirubin greater or equal to 4 mg/dL and/or ALT strictly greater than 102 IU/L.
References
See reference details in phoenix-package
or by calling
citation('phoenix')
.
See Also
-
phoenix
for generating the diagnostic Phoenix Sepsis score based on the four organ systems: -
phoenix8
for generating the diagnostic Phoenix 8 Sepsis criteria based on the four organ systems noted above and
vignette('phoenix')
for more details and examples.
Examples
# using the example sepsis data set
hep_example <- sepsis[c("pid", "bilirubin", "alt")]
hep_example$score <- phoenix_hepatic(bilirubin, alt, sepsis)
hep_example
# example data set with all possilbe hepatic scores
DF <- expand.grid(bil = c(NA, 3.2, 4.0, 4.3), alt = c(NA, 99, 102, 106))
phoenix_hepatic(bilirubin = bil, alt = alt, data = DF)