# Example 1: Standard Labs (mg/dL)
# Na 140, Glucose 100, BUN 15, No Ethanol
# Calc = 280 + 5.5 + 5.4 = 290.9
calculate_serum_osmolality(140, 100, 15)
# Example 2: Ethanol Intoxication
# Na 135, Glucose 90, BUN 10, Ethanol 100 mg/dL
# Calc = 270 + 5 + 3.6 + 21.7 = 300.3
calculate_serum_osmolality(135, 90, 10, 100)
Run the code above in your browser using DataLab