Learn R Programming

cliot (version 1.0.0)

gupta_pneumonia_risk: Gupta Postoperative Pneumonia Risk

Description

Calculates the percentage risk of developing postoperative pneumonia based on the Gupta et al. (2013) model derived from the NSQIP database. This calculator is designed for adult patients undergoing non-cardiac and cardiac surgeries.

Usage

gupta_pneumonia_risk(age, copd, functional_status, asa_class, sepsis_status,
                     smoker, procedure_type)

Value

A list containing:

Pneumonia_Risk_Percent

The estimated probability of postoperative pneumonia.

Arguments

age

Numeric. Patient age in years.

copd

Numeric (0 or 1). History of COPD. (1 = Yes).

functional_status

String. Preoperative functional status. Options: "independent", "partially_dependent", "totally_dependent".

asa_class

Numeric. ASA Physical Status Classification (1-5).

sepsis_status

String. Preoperative sepsis category. Options: "none", "sirs" (Systemic Inflammatory Response Syndrome), "sepsis", "septic_shock".

smoker

Numeric (0 or 1). Current smoker (within 1 year). (1 = Yes).

procedure_type

String. Surgical procedure category. Valid options include: "anorectal", "aortic", "bariatric", "brain", "breast", "cardiac", "ent", "foregut_hepatopancreatobiliary", "gallbladder_appendix_adrenal_spleen", "hernia_ventral_inguinal", "intestinal", "neck_thyroid_parathyroid", "obgyn", "orthopedic", "other_abdominal", "peripheral_vascular", "skin", "spine", "thoracic_non_cardiac", "urology", "vein".

References

Gupta H, Gupta PK, Schuller D, et al. Development and validation of a risk calculator for predicting postoperative pneumonia. Mayo Clin Proc. 2013;88(11):1241-1249. doi:10.1016/j.mayocp.2013.06.027

Examples

Run this code

# Example 1: High Risk (Aortic Surgery)
# 75yo, COPD, Totally Dependent, ASA 4, Sepsis, Smoker
gupta_pneumonia_risk(75, 1, "totally_dependent", 4, "sepsis", 1, "aortic")

# Example 2: Low Risk (Hernia Repair)
# 40yo, Independent, ASA 1, No Sepsis/Smoke
gupta_pneumonia_risk(40, 0, "independent", 1, "none", 0, "hernia_ventral_inguinal")

Run the code above in your browser using DataLab