# Example 1: High Probability
# No prior eps, Stones present (+2), No surgery, Epigastric pain (+2),
# Worsening (+1), 2 days duration (+1), Severe pain (+3), Lipase 25x (+2)
# Score = 2 + 2 + 1 + 1 + 3 + 2 = 11
acute_pancreatitis_prediction_model(0, 1, 0, 1, 1, 2, 8, 25)
# Example 2: Low Risk
# 1 prior ep (0), No stones, Recent surgery (-2), No epigastric pain,
# Not worsening, 10 days duration (0), Mild pain (0), Lipase 5x (0)
# Score = -2
acute_pancreatitis_prediction_model(1, 0, 1, 0, 0, 10, 2, 5)
Run the code above in your browser using DataLab