Differential diagnosis between community-acquired pneumonia and non-pneumonia diseases of the chest in the emergency ward