Community-acquired pneumonia refers to pneumonia you get, or acquire, from your community, such as school, work or the gym.