Spaces:
Running
Running
File size: 275 Bytes
877add7 | 1 2 3 4 5 6 7 8 9 10 11 12 | """Renal adjustment rules."""
from __future__ import annotations
_RENAL_SENSITIVE = {"metformin_like", "nsaid_like"}
def is_renal_unsafe(drug: str, egfr: float | None) -> bool:
if egfr is None:
return False
return drug in _RENAL_SENSITIVE and egfr < 30.0
|