Diagnosis of pyloric stenosis typically relies on the patient's history and physical examination. During physical examination, a hypertrophied pyloric muscle may be palpable, often described as an 'olive-like' mass. If physical examination findings are insufficient or inconclusive, imaging methods are utilized. Ultrasonography is a highly effective and commonly used method for diagnosing pyloric stenosis. Especially in infants, detailed vomiting history (frequency, projectile nature, content, etc.) and the palpable mass during abdominal examination aid in diagnosis.

Upon diagnosis of pyloric stenosis, the infant is hospitalized and prepared for surgery. Any dehydration or electrolyte imbalances in the blood are usually corrected within 24 hours. Surgeons perform a surgical procedure called pyloromyotomy to relieve the obstruction. Most infants resume normal feeding approximately 3-4 hours after the operation. It should be noted that some infants may experience similar types of vomiting within the first 24 hours post-surgery. Patients are typically discharged within 24-48 hours after the operation, but your doctor will continue to monitor your baby's condition.