# Example 1: 0 Criteria, High D-dimer (Rule Out due to high threshold)
# No signs, No hemoptysis, PE not most likely, D-dimer 800
# Threshold = 1000. 800 < 1000 -> Ruled Out.
years_pe_algorithm(0, 0, 0, 800)
# Example 2: 1 Criteria, Moderate D-dimer (CTPA Indicated)
# PE most likely (1), D-dimer 600
# Threshold = 500. 600 >= 500 -> CTPA Indicated.
years_pe_algorithm(0, 0, 1, 600)
Run the code above in your browser using DataLab