# Example 1: High Risk
# 70yo (+1), SBP 95 (+2), Renal Failure (+3), Ulcer (+1), Visible Vessel (+2)
# Score = 9
rockall_score_complete(70, 95, 100, "renal_liver_metastatic", "all_other", 1)
# Example 2: Low Risk
# 45yo (0), SBP 120 (0), No Comorbs (0), Mallory-Weiss (0), No Stigmata (0)
# Score = 0
rockall_score_complete(45, 120, 70, "none", "mallory_weiss_none", 0)
Run the code above in your browser using DataLab