# Example 1: Good Prognosis
# Vol 15 (<30 -> 4), Age 60 (<70 -> 2), Lobar (2), GCS 14 (2), No impairment (1)
# Score = 11
func_ich_score(15, 60, "lobar", 14, 0)
# Example 2: Poor Prognosis
# Vol 40 (30-60 -> 2), Age 82 (0), Deep (1), GCS 7 (0), Impairment Yes (0)
# Score = 3
func_ich_score(40, 82, "deep", 7, 1)
Run the code above in your browser using DataLab