Long-term prognosis in community-acquired pneumonia