The aim of the study was to determine how well ICD-10 discharge diagnoses identify patients with community-acquired infections in a medical emergency department ( ED ) , overall and related to sites of infection and patient characteristics .