Hospital-acquired pneumonia is a serious pneumonia your child can get at a hospital or a healthcare facility. It usually affects children who have to use a breathing machine, are in the intensive care unit or have a weak immune system.