# Example 1: Low Risk
# 39 weeks, Started at 48 hours, TSB 12, Threshold 16 (Diff 4)
# Score = 0 - 7(2) - 4(4) + 50 = -14 - 16 + 50 = 20
rebound_hyperbilirubinemia_score(39, 48, 12, 16)
# Example 2: High Risk
# 36 weeks (<38), Started at 24 hours, TSB 13, Threshold 14 (Diff 1)
# Score = 15 - 7(1) - 4(1) + 50 = 15 - 7 - 4 + 50 = 54
rebound_hyperbilirubinemia_score(36, 24, 13, 14)
Run the code above in your browser using DataLab