Diagnosis usually involves a combination of prenatal and postnatal tests. Prenatal ultrasounds can sometimes detect abnormalities before birth. After birth, a thorough physical examination, along with imaging studies such as ultrasound, voiding cystourethrogram (VCUG), and MRI, can help in diagnosing these conditions. Genetic testing may also be recommended in some cases.