# 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