# Example 1: Prerenal Azotemia (Dehydration)
# BUN 40 mg/dL, Cr 1.0 mg/dL
# Ratio = 40 (>20)
bun_creatinine_ratio(40, 1.0)
# Example 2: Intrinsic Renal Disease (ATN)
# Urea 10 mmol/L, Cr 300 umol/L
# BUN = 10 * 2.8 = 28 mg/dL
# Cr = 300 / 88.4 = 3.39 mg/dL
# Ratio = 28 / 3.39 = 8.2 (<10)
bun_creatinine_ratio(10, 300, "mmol/L", "umol/L")
Run the code above in your browser using DataLab