# Example 1: High Risk
# HTN (1), Renal (1), Stroke (1), Elderly (1), Drugs (1)
# Score = 5
has_bled_score(1, 1, 0, 1, 0, 0, 1, 1, 0)
# Example 2: Low Risk
# Only Elderly (1)
# Score = 1
has_bled_score(0, 0, 0, 0, 0, 0, 1, 0, 0)
Run the code above in your browser using DataLab