# Example 1: High Risk
# 72yo (+8), Prior Hosp (+14), FVC 55% (+13), Decline -12% (+21)
# Score = 56
du_bois_ipf_score(72, 1, 55, -12)
# Example 2: Low Risk
# 55yo (0), No Hosp (0), FVC 85% (0), Stable FVC (0)
# Score = 0
du_bois_ipf_score(55, 0, 85, 0)
Run the code above in your browser using DataLab