Predicting mortality after hospitalisation for COPD using electronic health records.