Community-acquired pneumonia -pneumonia beginning outside of the hospital or within first 48 hours after admission to the hospital.
Nosocomial pneumonia -pneumonia beginning 48 hours after admission to the hospital.