# Example 1: High Risk
# 1 prior hypo (+3), Insulin (+3), Age 70 (+2), No CKD, 0 ED visits
# Score = 3 + 3 + 2 = 8
hypoglycemia_risk_score(1, 1, 0, 0, 70, 0)
# Example 2: Low Risk
# 0 prior, No Insulin, Sulfonylurea (+3), Age 80 (0), No CKD, 0 ED visits
# Score = 3 (Intermediate - wait, check thresholds: Low 0-1, Int 2-6. So Intermediate).
hypoglycemia_risk_score(0, 0, 1, 0, 80, 0)
Run the code above in your browser using DataLab