# Example 1: Low Risk
# Mild symptoms, No hypotension, No COPD, Solid tumor, No dehydration, Outpatient, Age 45
# Score = 5 + 5 + 4 + 4 + 3 + 3 + 2 = 26
mascc_risk_index("none_mild", 0, 0, "solid", 0, 0, 1, 45)
# Example 2: High Risk
# Severe symptoms, Hypotension, Heme malignancy with fungal hx, Inpatient, Age 70
# Score = 0 + 0 + 4 + 0 + 3 + 0 + 0 = 7
mascc_risk_index("severe", 1, 0, "hematologic", 1, 0, 0, 70)
Run the code above in your browser using DataLab