Prediction of community-acquired pneumonia outcome in admissions using machine learning