# Example 1: High Risk
# pH 7.25 (+13), SBP 85 (+11), RR 35 (+9), P/F 200 (+6), BUN 40 (+5)
# Score = 13 + 11 + 9 + 6 + 5 = 44
scap_pneumonia_score(7.25, 85, 35, 60, 0.3, 40, 0, 70, 0)
# Example 2: Low Risk
# pH 7.4, SBP 120, RR 20, P/F 300, BUN 15, Alert, Age 50, Unilobar
# Score = 0
scap_pneumonia_score(7.4, 120, 20, 90, 0.21, 15, 0, 50, 0)
Run the code above in your browser using DataLab