It’s best to discuss this with your baby’s healthcare provider. Typically, NEC is diagnosed by an abdominal X-ray. Your child’s healthcare provider may put a needle into his or her abdominal cavity. This is to look for intestinal fluid in your child’s abdomen which is a sign of a hole in the intestines.