# Example 1: Hypoalbuminemia masking hypercalcemia
# Calcium 10.5 mg/dL (High normal), Albumin 2.5 g/dL (Low)
# Corrected = 10.5 + 0.8 * (4.0 - 2.5) = 11.7 (Hypercalcemia)
calcium_correction_hypoalbuminemia(10.5, 2.5)
# Example 2: SI Units
# Calcium 2.2 mmol/L, Albumin 30 g/L
calcium_correction_hypoalbuminemia(2.2, 30, "mmol/L", "g/L")
Run the code above in your browser using DataLab