Diagnosis of structural defects can occur prenatally or postnatally. Prenatal diagnosis often involves imaging techniques such as ultrasound and MRI, as well as genetic testing through amniocentesis or chorionic villus sampling. After birth, a physical examination, imaging studies, and other diagnostic tests can confirm the presence and extent of the defect.