Development and validation of a model to predict the risk of exacerbations in chronic obstructive pulmonary disease