# Example 1: Low Risk
# 50yo, No Hx, HR 80, SBP 120, SpO2 98%
# Score = 0
simplified_pesi_score(50, 0, 0, 80, 120, 98)
# Example 2: High Risk
# 85yo (+1), HR 115 (+1), No other factors
# Score = 2
simplified_pesi_score(85, 0, 0, 115, 120, 95)
Run the code above in your browser using DataLab