# Example 1: Low Probability of Survival
# 85yo (+11), SNF (+6), Renal (+4), Neuro Intact (-15)
# Score = 11 + 6 + 4 - 15 = 6 (Average Probability? No wait, +6 is Average range -5 to 13)
# Let's check risk group: Score 6 -> Average Probability (3-15%)
go_far_cardiac_arrest_score(85, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0)
# Example 2: Very Low Probability
# 75yo (+5), Metastatic Cancer (+7), Sepsis (+7), Hypotension (+5), Not Neuro Intact (0)
# Score = 24
go_far_cardiac_arrest_score(75, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0)
Run the code above in your browser using DataLab