Diagnosis typically involves a combination of clinical observation and diagnostic tests. Pediatricians may consider the infant's gestational age, feeding patterns, and growth metrics. Diagnostic tests such as abdominal X-rays, ultrasound, and specialized blood tests can also be employed to identify underlying issues.