# Example 1: Low Risk
# BUN 10, Age 40, Purulent(Yes), Community(0), Alb 3.5
# Score = 0 + 0 + 0 + 0 + 0 = 0
rapid_pleural_infection_score(10, 40, 1, 0, 3.5)
# Example 2: High Risk
# BUN 30 (+2), Age 75 (+2), Non-purulent (+1), Hospital (+1), Alb 2.0 (+1)
# Score = 7
rapid_pleural_infection_score(30, 75, 0, 1, 2.0)
Run the code above in your browser using DataLab