# Example 1: High Risk
# 5 day stay (+4), Acute (+3), CCI 5 (+5), 2 ED visits (+2)
# Score = 14
lace_readmission_index(5, 1, 5, 2)
# Example 2: Low Risk
# 2 day stay (+2), Elective (0), CCI 0 (0), 0 ED visits (0)
# Score = 2
lace_readmission_index(2, 0, 0, 0)
Run the code above in your browser using DataLab