# Example 1: Prolonged DAPT Candidate
# 55yo (0), Smoker (+1), MI at presentation (+1), Diabetes (+1)
# Score = 3
dapt_score(55, 1, 1, 1, 0, 0, 0, 0, 0)
# Example 2: Standard DAPT Candidate
# 70yo (-1), Prior MI (+1), No other factors
# Score = 0
dapt_score(70, 0, 0, 0, 1, 0, 0, 0, 0)
Run the code above in your browser using DataLab