# Example 1: High Probability of PFO-related stroke
# 35yo, No HTN, No DM, No Prior Stroke, Non-smoker, Cortical Infarct
# Score: 4(age) + 1(HTN) + 1(DM) + 1(Hx) + 1(Smoke) + 1(Cortical) = 9
rope_risk_score(35, 0, 0, 0, 0, 1)
# Example 2: Low Probability (Incidental PFO likely)
# 65yo, HTN, Smoker, Prior Stroke
# Score: 1(age) + 0 + 1(DM) + 0 + 0 + 0(Subcortical) = 2
rope_risk_score(65, 1, 0, 1, 1, 0)
Run the code above in your browser using DataLab