# Example 1: 70kg patient, Hct 40, Fib 50, Target 100
# TBV = 4900 mL, PV = 2940 mL (29.4 dL)
# Deficit = 50 mg/dL * 29.4 dL = 1470 mg
# Units (at 250mg/unit) = 5.88 -> 6 Units
cryoprecipitate_dosing(50, 100, 70, 40)
# Example 2: 80kg patient, Hct 30, Fib 100, Target 150 (Higher target)
cryoprecipitate_dosing(100, 150, 80, 30)
Run the code above in your browser using DataLab