File size: 221 Bytes
877add7
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""Medication burden helpers."""

from __future__ import annotations


def compute_burden_score(med_count: int, high_risk_count: int = 0) -> float:
    return max(0.0, min(1.0, med_count / 12.0 + high_risk_count * 0.04))