The chances of getting CDI go up with age. Using certain antibiotics makes you more likely to get it. So does staying in the hospital for a long time and having certain health problems.