Clinical Commander

All dossiers
peds.pyloric-stenosis.v1

Infantile hypertrophic pyloric stenosis (IHPS)

pediatricsacutepediatricacuteinpatient

NEW Phase C dossier — authored 2026-05-15 for shard-5-obped-id wave 10. Covers infantile hypertrophic pyloric stenosis (IHPS) in infants 2-8 wk — the most common surgical condition of infancy. Classic non-bilious projectile vomiting + hungry-after-vomit + weight loss + dehydration + palpable olive (LR+ ~ 25 when present); hypochloremic hypokalemic metabolic alkalosis is the classic lab pattern; bedside US (pyloric muscle thickness ≥ 3 mm + channel length ≥ 14-17 mm per Hernanz-Schulman 2003) is definitive; Ramstedt pyloromyotomy is curative AFTER pre-op metabolic correction targeting Cl > 100, K+ > 3.5, HCO3 < 30. Manifest field intentionally blanked (manifest: "") per shard-5 precedent on peds.febrile-infant.core.v1 + peds.nec.v1 + peds.intussusception.v1 + peds.appendicitis.v1 + id.influenza.core.v1 + id.neonatal-sepsis.early-late.v1 + id.sepsis.peds.v1 — seed manifest authoring at prisma/seed/manifests/peds.pyloric-stenosis.v1.{ts,atoms.ts} is out-of-shard scope and deferred to a future shard once the manifest + atoms cycle ships. Refined Phase-C-wave-10 pattern: 3-file new-dossier batch (TS + brief + research bundle) WITHOUT touching _registry.ts — registration will be picked up in a wave-roll-up commit (parallel-agent staging conflict avoidance per shard refined pattern). Distinct from peds.intussusception.v1 (different age band 6 mo - 3 y; different presentation paroxysmal pain + currant-jelly stool + sausage mass; different therapy pneumatic enema first); peds.nec.v1 (preterm neonate Bell-staged surgical-medical GI emergency; pneumatosis intestinalis is the pathognomonic anchor); peds.appendicitis.v1 (older child / adolescent with RLQ pain + PAS scoring); peds.febrile-infant.core.v1 (0-90 d febrile infant — sepsis-focused workup; out of scope for non-febrile vomiting infant); id.sepsis.peds.v1 (Phoenix-2024 criteria; routes here if severe dehydration in IHPS precipitates shock physiology). Sibling differentiation explicitly encoded for peds.intussusception.v1 + peds.nec.v1 + id.sepsis.peds.v1. Phenotype matrix (8-axis: age band × duration × sex × first-born × macrolide exposure × dehydration severity × severe alkalosis × atypical presentation — collapsed by clinical meaning) encoded indirectly via regimen_axes (pediatric_ihps_preop_correction_and_perioperative) + severity_triggers (9 phenotype-specific triggers) + setting playbooks (ed = primary venue / inpatient = pre-op correction + post-op recovery / icu = severe alkalosis + severe hypokalemia + severe dehydration + preterm with comorbidity + post-anesthesia apnea / outpatient = pediatrician + pediatric surgery + GI / hepatology follow-up). First-class TS phenotype field is schema-blocked. Severity triggers (9): ihps_with_severe_metabolic_alkalosis (severe — defer OR until corrected; APSA + pediatric anesthesia society), severe_dehydration_in_infant (severe — IVF resus 20 mL/kg NS bolus + maintenance), failed_us_clinical_dx (moderate — repeat US in 24-48 h; consider GE reflux ddx; UGI series for malrotation), post_pyloromyotomy_emesis (mild — typically self-limited 24-48 h; expect resolution), prolonged_emesis_with_jaundice (severe — biliary atresia < 60 d Kasai window; Gilbert + hemolysis differentials), macrolide_associated_ihps (mild — counsel avoid macrolides in neonates < 6 wk), recurrent_or_persistent_emesis_postop (severe — incomplete myotomy or occult perforation; surgical re-evaluation), preterm_infant_with_atypical_presentation (severe — lower imaging threshold; PICU/NICU level care), older_infant_pyloric_dysfunction_atypical (moderate — broader ddx; eosinophilic gastroenteritis + gastroparesis + pyloric dysfunction; pediatric GI consult). Bayesian linkage (per §5.5.2): pre-test priors documented in _research-bundles/peds.pyloric-stenosis.v1.md — overall pediatric IHPS ~ 2-4 per 1000 live births (Western populations; lower in Asian + African ancestries); peak 4-6 wk; male predominance 4:1; first-born most over-represented. Key LRs: pyloric muscle thickness ≥ 3 mm + channel length ≥ 14-17 mm on US LR+ > 50 (essentially diagnostic); palpable olive LR+ ~ 25 when present (sensitivity ~ 50% in experienced operator hands); visible peristaltic waves LR+ ~ 5; non-bilious projectile vomiting + age 2-8 wk LR+ ~ 3-4; hypochloremic alkalosis (Cl < 100) + age-appropriate cohort LR+ ~ 6-8; paradoxical aciduria LR+ ~ 4-5; failure of gastric emptying on real-time US LR+ ~ 10-15. Conditional dependencies modeled: age-band × pretest-probability coupling; macrolide-exposure × pretest-probability coupling (erythromycin RR ~ 8-10, azithromycin RR ~ 2-3); severity-of-alkalosis × OR-timing coupling (OR contraindicated until Cl > 100, K+ > 3.5, HCO3 < 30); severity-of-dehydration × IVF-bolus coupling; jaundice + emesis × biliary-atresia coupling (< 60 d Kasai window); preterm × atypical-presentation coupling. Decision thresholds: T_test_imaging (bedside US) at clinical suspicion (low T_test because US is bedside-accessible + no radiation); T_treat (pyloromyotomy) at US-confirmed + corrected metabolic state; T_defer_OR at uncorrected alkalosis; T_repeat_US at negative initial US + persistent symptoms; T_upper_gi_series at failed US + malrotation concern; T_hepatology_urgent at direct bilirubin > 2; T_picu_admit at HCO3 > 35 OR K+ < 3 OR severe dehydration unresponsive OR preterm with comorbidity. Cross-dossier routing: id.sepsis.peds.v1 (if shock physiology meets Phoenix-2024); peds.intussusception.v1 differential (different age band; different imaging anchor); peds.nec.v1 differential (preterm neonate vs term infant); peds.appendicitis.v1 differential (older child / adolescent); pediatric hepatology (jaundice + direct bilirubin > 2). ROS/DDx LR seed data NOT touched (cross-cutting; not in shard scope). Settings (4): ed (primary venue — bedside US + CMP + pediatric surgery consult + initiate IVF correction), inpatient (pre-op IVF + electrolyte correction over 12-48 h + post-op recovery + early feed advance + family education + discharge planning), icu (PICU/NICU/HDU for severe alkalosis HCO3 > 35 + severe hypokalemia K+ < 3 + severe dehydration unresponsive + preterm with comorbidity + post-anesthesia apnea + intraoperative perforation with peritonitis), outpatient (pediatrician + pediatric surgery + GI / hepatology follow-up; macrolide-avoidance counseling; routine vaccination per ACIP). Drug guidance grounded in APSA + AAP + NASPGHAN + ACR Appropriateness Criteria + Hernanz-Schulman 2003 + CDC + AAP macrolide advisory + pediatric anesthesia society + Solomkin IDSA intra-abdominal 2010 (peds-adapted) + Cantey SCOUT 2016 stewardship + SSC peds 2020 for shock physiology. RxCUIs referenced (all RxNav-verified live 2026-05-25): sodium chloride / NS (9863), KCl (8591), cefazolin (2180 — corrected from prior erroneous 2186 which resolves to cefotaxime), ondansetron (26225), acetaminophen (161), morphine (7052; HALVED infant dose), piperacillin-tazobactam (74169), metronidazole (6922). Open gaps: (1) Phenotype matrix not first-class TS field — schema-blocked. (2) Bayesian LR seed data not encoded — lives in narrative + research bundle only this pass; ROS/DDx seed edit cross-cutting. (3) Prehospital not a DossierSetting value — schema-blocked. (4) calc.pediatric_pyloric_stenosis_severity (composite Cl + K+ + HCO3 + dehydration %) not yet registered in clinical-tools-registry.ts — pending registry addition. (5) workup.pyloric_stenosis not yet registered — pending registry addition. (6) protocol.pyloric_stenosis.preop.v1 not yet registered — pending registry addition. (7) Manifest file not authored this pass — shard precedent for manifest: "" with seed deferred. (8) Co-located test file (peds.pyloric-stenosis.v1.test.ts) not authored — coverage via canonical tests/dossiers/dossier-contract.test.ts only. (9) _registry.ts NOT modified this commit — refined Phase-C-wave-10 pattern; registration will be picked up in a wave-roll-up commit. (10) APSA + AAP + ACR Appropriateness Criteria + Hernanz-Schulman Radiology 2003 + CDC + AAP macrolide advisory + NASPGHAN PMIDs deferred to next research:pubmed loop. Status declared PLANNED with manifest: "" matching audit-resolved actual_status — audit gate honored. Per shard precedent, this is acceptable for new Phase C dossiers awaiting manifest authoring in a future shard.

Entry points (9)

  • symptom
    Infant 2-8 wk old with progressive non-bilious projectile vomiting, hungry-after-vomit, weight loss or poor weight gain — classic IHPS ENTRY signal (APSA + AAP infant-vomiting guidance; Hernanz-Schulman *Radiology* 2003 US criteria)
    projectile_non_bilious_vomiting_in_infant_2_to_8wk
  • symptom
    Palpable "olive" in RUQ / epigastrium during/after a feed when the infant is relaxed — LR+ ~ 25 when present (sensitivity ~ 50% in experienced operator hands)
    palpable_olive_in_ruq_or_epigastrium
  • symptom
    Visible peristaltic waves moving left-to-right across the upper abdomen after a feed — LR+ ~ 5 for IHPS
    visible_peristaltic_waves_left_to_right_after_feed
  • lab_abnormality
    Cl < 100 mEq/L + K+ < 3.5 mEq/L + HCO3 > 30 mEq/L in an infant 2-8 wk old with persistent vomiting — classic IHPS pattern; severe alkalosis is an OR contraindication until corrected (pediatric anesthesia society)
    hypochloremic_hypokalemic_metabolic_alkalosis_in_infant
  • imaging
    Pyloric muscle thickness ≥ 3 mm AND pyloric channel length ≥ 14-17 mm on bedside US — definitive diagnostic per Hernanz-Schulman *Radiology* 2003 + ACR Appropriateness Criteria; sensitivity > 97%, specificity ~ 100%
    pyloric_us_thickness_ge_3mm_length_ge_14_to_17mm
  • history
    Macrolide exposure (erythromycin > azithromycin) within the first 2 weeks of life — strongest pharmacologic association with IHPS (relative risk ~ 8-10 erythromycin, ~ 2-3 azithromycin); CDC + AAP advisory recommends avoiding macrolides in neonates < 6 weeks unless no alternative
    macrolide_exposure_within_2_weeks_infant
  • history
    First-born male infant 2-8 wk old with persistent non-bilious vomiting — strongest demographic risk (4:1 male predominance; first-born most over-represented)
    first_born_male_infant_with_persistent_vomiting
  • history
    Family history of IHPS (especially maternal-side) — heritable association documented; raises pretest probability in age-appropriate cohort
    family_history_of_ihps_especially_maternal
  • symptom
    Jaundice + persistent vomiting in infant — broaden ddx aggressively (biliary atresia is CRITICAL with < 60 d Kasai window; Gilbert-related, hemolytic anemia, breastfeeding jaundice); pediatric hepatology / GI consult mandatory
    jaundice_with_persistent_vomiting_in_infant

Required inputs (30)

  • age_in_weeks_or_days_at_presentationrequired
    demographic • used at CONTEXT
    Age band drives pretest probability + atypical-presentation index. Peak 4-6 wk; very early (< 2 wk) and late (> 8 wk) atypical bands require broader ddx workup. Preterm infants may present > 8 wk with blunted findings
  • sex_at_birthrequired
    demographic • used at CONTEXT
    Male predominance 4:1; first-born males most over-represented; raises pretest probability in age-appropriate cohort
  • weight_kgrequired
    demographic • used at CONTEXT
    Weight-based dosing for all fluids + electrolytes + analgesia + antibiotics; serial weights track recovery trajectory pre- and post-op
  • gestational_age_at_birth_term_vs_pretermrequired
    demographic • used at CONTEXT
    Preterm infants may present > 8 wk with blunted findings; lower threshold for imaging + ICU/NICU level of care given baseline frailty
  • hr_pediatricrequired
    vital • used at CONTEXT
    Tachycardia + dehydration in prolonged duration; bradycardia raises concern for advanced dehydration / metabolic derangement
  • sbp_pediatricrequired
    vital • used at RED_FLAGS
    Hypotension by age-appropriate threshold → severe dehydration / shock concern; IVF resuscitation 20 mL/kg NS bolus before any OR; routes to id.sepsis.peds.v1 if Phoenix-2024 criteria met
  • capillary_refill_pediatricrequired
    vital • used at CONTEXT
    Capillary refill > 3 s + mottling = dehydration / shock — severe dehydration is OR contraindication until corrected
  • mucous_membranes_and_tear_productionrequired
    vital • used at CONTEXT
    Dry mucous membranes + absent tear production = clinically meaningful dehydration; AAP DDC / Gorelick scoring
  • duration_of_symptoms_in_daysrequired
    symptom • used at RISK_STRATIFICATION
    Duration > 7 d correlates with deeper metabolic derangement + severe dehydration; affects pre-op IVF correction duration
  • pattern_of_vomiting_projectile_non_biliousrequired
    symptom • used at CONTEXT
    Projectile non-bilious is classic IHPS; bilious raises malrotation concern (urgent UGI series); bloody raises NEC or allergic enterocolitis concern
  • hunger_after_vomit_vs_lethargyrequired
    symptom • used at CONTEXT
    Hungry-after-vomit pattern is classic IHPS; lethargy raises sepsis / infection concern (route to id.sepsis.peds.v1 or peds.febrile-infant.core.v1 differential)
  • weight_trend_vs_growth_curverequired
    symptom • used at CONTEXT
    Weight loss or poor weight gain (vs natural growth curve) is classic IHPS; normal weight gain pattern supports GER differential
  • palpable_olive_on_abdominal_exam
    symptom • used at CONTEXT
    LR+ ~ 25 when present; sensitivity ~ 50% in experienced operator hands; absent olive does NOT rule out IHPS (imaging is the anchor)
  • visible_peristaltic_waves_after_feed
    symptom • used at CONTEXT
    LR+ ~ 5 when present; supports IHPS in age-appropriate cohort
  • jaundice_with_direct_bilirubin_level
    symptom • used at RED_FLAGS
    Direct hyperbilirubinemia > 2 mg/dL + persistent vomiting MANDATES urgent hepatology workup (biliary atresia < 60 d Kasai window); also Gilbert, hemolytic anemia, breastfeeding jaundice
  • macrolide_exposure_in_first_2_weeks_of_liferequired
    history • used at CONTEXT
    Erythromycin > azithromycin documented post-licensure surveillance association; relative risk ~ 8-10 (erythromycin) and ~ 2-3 (azithromycin) vs unexposed; CDC + AAP advisory
  • family_history_of_ihpsrequired
    history • used at CONTEXT
    Maternal-side family history particularly noted; heritable association documented; raises pretest probability in age-appropriate cohort
  • first_born_statusrequired
    history • used at CONTEXT
    First-born males most over-represented in IHPS cohorts; raises pretest probability
  • maternal_smoking_during_pregnancy
    history • used at CONTEXT
    Modest risk elevation documented; not a deciding factor alone but raises pretest probability in age-appropriate cohort
  • feeding_pattern_breast_vs_bottle
    history • used at CONTEXT
    Bottle feeding modestly raises risk vs breastfeeding; not a deciding factor but informs counseling
  • prostaglandin_e1_exposure_for_ductal_dependent_chd
    history • used at CONTEXT
    PGE1 used to maintain ductal patency in ductal-dependent congenital heart disease — documented IHPS association in neonates; relevant for the rare CHD-comorbid case
  • cmp_with_chloride_potassium_bicarbonaterequired
    lab • used at INITIAL_WORKUP
    Cl < 100 mEq/L + K+ < 3.5 mEq/L + HCO3 > 30 mEq/L is the operational severe-alkalosis pattern; OR contraindicated until corrected
  • urinalysis_with_urine_chloride_and_ph
    lab • used at INITIAL_WORKUP
    Paradoxical aciduria pattern (urine pH < 5.5 despite metabolic alkalosis); urine Cl low in volume-depletion + Cl-responsive alkalosis
  • cbc_with_diff_pediatricrequired
    lab • used at INITIAL_WORKUP
    Hemoconcentration from dehydration; rules out sepsis differential; baseline pre-op
  • glucose_pediatricrequired
    lab • used at INITIAL_WORKUP
    Hypoglycemia from prolonged poor feeding + dehydration is a concern; document baseline pre-op
  • total_and_direct_bilirubin
    lab • used at INITIAL_WORKUP
    Direct bilirubin > 2 mg/dL + persistent vomiting → urgent hepatology workup (biliary atresia < 60 d Kasai window); Gilbert-related hyperbilirubinemia is benign association in IHPS (~ 5% of cases)
  • type_and_screen_pediatric
    lab • used at BRANCHING_WORKUP
    Pre-surgical type-and-screen routine; transfusion need rare for uncomplicated pyloromyotomy
  • abdominal_ultrasound_pyloric_first_linerequired
    imaging • used at INITIAL_WORKUP
    First-line imaging — pyloric muscle thickness ≥ 3 mm AND channel length ≥ 14-17 mm; accessory signs target / antral nipple / failure of gastric emptying; sensitivity > 97%, specificity ~ 100% per Hernanz-Schulman 2003; ACR Appropriateness Criteria
  • upper_gi_contrast_study_if_us_non_diagnostic_or_malrotation_concern
    imaging • used at BRANCHING_WORKUP
    Second-line — string sign + shoulder sign + mushroom sign in IHPS; corkscrew duodenum in malrotation; reserved for non-diagnostic US OR malrotation differential
  • kub_xray_for_general_obstruction_pattern
    imaging • used at BRANCHING_WORKUP
    Non-specific for IHPS itself; useful only for free air or massive distention; some centers obtain pre-op as baseline

12-phase flow (12)

  1. 1FRAME
    Frame the suspected IHPS presentation: age band (< 2 wk atypical-early / 2-3 wk / 3-5 wk / 5-8 wk classic peak 4-6 wk / > 8 wk atypical-late) drives pretest probability + atypical-presentation index. Sex + first-born + family history drive demographic priors (4:1 male predominance, first-born most over-represented). Duration of symptoms drives metabolic-derangement depth + dehydration severity. Macrolide exposure in first 2 wk drives pharmacologic association (erythromycin > azithromycin).
    inputs: age_in_weeks_or_days_at_presentation, sex_at_birth, duration_of_symptoms_in_days, macrolide_exposure_in_first_2_weeks_of_life
    advance: Age + sex + duration + macrolide-exposure tagged; pretest probability + atypical-presentation framing set
  2. 2ENTRY
    Recognise via classic clinical features (progressive non-bilious projectile vomiting + hungry-after-vomit + weight loss or poor weight gain + dehydration) OR pathognomonic exam (palpable olive — LR+ ~ 25 when present; visible peristaltic waves — LR+ ~ 5) OR classic lab pattern (hypochloremic hypokalemic metabolic alkalosis) OR imaging signature (pyloric muscle thickness ≥ 3 mm AND channel length ≥ 14-17 mm on US).
    inputs: pattern_of_vomiting_projectile_non_bilious, hunger_after_vomit_vs_lethargy, weight_trend_vs_growth_curve
    advance: IHPS suspected by clinical features, exam, lab pattern, or US signature
  3. 3CONTEXT
    Age + sex + weight + gestational age + vitals + duration + vomiting pattern + hunger-after-vomit + weight trend + palpable olive + visible peristalsis + macrolide exposure + family history + first-born status + maternal smoking + feeding pattern + PGE1 exposure (rare CHD-comorbid case).
    inputs: age_in_weeks_or_days_at_presentation, sex_at_birth, weight_kg, gestational_age_at_birth_term_vs_preterm, hr_pediatric, capillary_refill_pediatric, mucous_membranes_and_tear_production, pattern_of_vomiting_projectile_non_bilious, hunger_after_vomit_vs_lethargy, weight_trend_vs_growth_curve, macrolide_exposure_in_first_2_weeks_of_life, family_history_of_ihps, first_born_status
    advance: Demographic + risk-factor + clinical context + hydration status documented
  4. 4RED_FLAGS
    Severe metabolic alkalosis (Cl < 100, K+ < 3.5, HCO3 > 30) → defer OR until corrected; severe dehydration (> 10%, hypotension by age, capillary refill > 3 s, mottling) → IVF resus 20 mL/kg NS bolus + reassess; bilious emesis → urgent UGI series for malrotation (NOT classic IHPS); bloody emesis → NEC or allergic enterocolitis differential; jaundice with direct bilirubin > 2 → urgent hepatology workup (biliary atresia < 60 d Kasai window); preterm with comorbidity → lower threshold for ICU/NICU level care.
    inputs: sbp_pediatric, jaundice_with_direct_bilirubin_level
    advance: OR-contraindication red flags evaluated; resuscitation initiated if needed; multidisciplinary consults triggered
  5. 5INITIAL_WORKUP
    IV access + NPO; CMP with chloride + potassium + bicarbonate (target Cl > 100, K+ > 3.5, HCO3 < 30 pre-op); CBC + glucose + total/direct bilirubin (if jaundiced); urinalysis with urine Cl + pH (paradoxical aciduria); bedside abdominal US for pyloric muscle thickness ≥ 3 mm AND channel length ≥ 14-17 mm (sensitivity > 97% per Hernanz-Schulman 2003); pediatric surgery consult triggered by positive US.
    inputs: cmp_with_chloride_potassium_bicarbonate, cbc_with_diff_pediatric, glucose_pediatric, abdominal_ultrasound_pyloric_first_line
    actions: panel.cbc, panel.renal
    advance: IV access + NPO + labs returned + US obtained; pediatric surgery consult initiated if US-positive
  6. 6BRANCHING_WORKUP
    Source-directed: upper-GI contrast study if US non-diagnostic + persistent vomiting OR malrotation differential (string + shoulder + mushroom signs in IHPS; corkscrew duodenum in malrotation); KUB if free-air concern; total/direct bilirubin + hepatology consult if jaundice + persistent vomiting (biliary atresia < 60 d Kasai window); type-and-screen if surgical management likely (routine pre-op); UGI study repeat in 24-48 h if borderline US measurements + persistent symptoms (pyloric muscle may hypertrophy further).
    inputs: upper_gi_contrast_study_if_us_non_diagnostic_or_malrotation_concern, total_and_direct_bilirubin, type_and_screen_pediatric
    advance: Pre-surgical workup ready if surgical management indicated; alternative diagnoses excluded
  7. 7DIFFERENTIAL
    GER (most common differential — non-projectile, infant well-appearing, growing along curve, normal labs, normal pyloric US); malrotation with midgut volvulus (bilious emesis at any age; UGI series with corkscrew duodenum); duodenal atresia (bilious emesis in first 24-48 h of life; double-bubble on KUB); sepsis-related ileus (febrile, lethargic; routes to peds.febrile-infant.core.v1 or id.neonatal-sepsis.early-late.v1); intussusception (different age band 6 mo - 3 y; target sign on US — `peds.intussusception.v1`); eosinophilic gastroenteritis (eosinophilia on CBC + endoscopy with eosinophil infiltration); food protein-induced allergic enterocolitis (bloody stool + atopic family); gastroparesis (rare in infants; gastric emptying study); biliary atresia (direct hyperbilirubinemia > 2 + acholic stool; < 60 d Kasai window); cow milk protein intolerance (bloody emesis; resolves with formula change).
    advance: Mimics excluded by US + UGI series (if obtained) + clinical features; IHPS diagnosis confirmed or alternative pathway entered
  8. 8RISK_STRATIFICATION
    Tier 1 (life-threatening — uncorrected alkalosis with severe dehydration): OR DEFERRED until corrected; PICU/NICU/HDU level care; serial labs q4-6h. Tier 2 (severe — moderate-severe alkalosis): pre-op IVF correction 12-48 h targeting Cl > 100, K+ > 3.5, HCO3 < 30; inpatient ward with serial labs q6-8h. Tier 3 (moderate — classic case mild dehydration mild alkalosis): pre-op IVF correction over 12-24 h; serial labs q8-12h. Tier 4 (mild — borderline US + persistent symptoms): repeat US in 24-48 h; consider UGI series for malrotation; pediatric GI consult for GER ddx. Tier 5 (atypical — preterm or > 8 wk presentation): broader ddx; lower imaging threshold; PICU/NICU level care if preterm with comorbidity. Jaundice tier: direct bilirubin > 2 → hepatology urgent.
    inputs: cmp_with_chloride_potassium_bicarbonate, sbp_pediatric, gestational_age_at_birth_term_vs_preterm
    advance: Tier assigned + correction pathway chosen + admit-vs-PICU decision documented
  9. 9TREATMENT
    Pre-op IVF correction: NS or LR 20 mL/kg IV bolus over 30-60 min if severe dehydration / shock (max ~ 60 mL/kg cumulative bolus before reassessing for fluid overload); then maintenance D5 1/2NS + 20 mEq/L KCl at 1.5 × maintenance with measured deficit replacement after first void documented. Target Cl > 100, K+ > 3.5, HCO3 < 30 over 12-48 h before OR. Pediatric surgical evaluation + OR scheduling (laparoscopic Ramstedt pyloromyotomy preferred at most centers; open via right upper transverse incision is the historical alternative). Pre-op antibiotic prophylaxis cefazolin 25-30 mg/kg IV single dose at induction (routine pre-op prophylaxis; no prolonged course for uncomplicated). Anesthesia + airway management per pediatric anesthesia society; avoid muscle relaxants requiring full reversal in the infant cohort. Intraoperative perforation rate < 1%; if perforation → expand antibiotics to pip-tazo or meropenem + metronidazole × 5-7 d (Solomkin IDSA peds-adapted PMID 20583865).
    inputs: weight_kg, cmp_with_chloride_potassium_bicarbonate, abdominal_ultrasound_pyloric_first_line
    actions: panel.renal
    advance: Resuscitation complete + metabolic correction complete (Cl > 100, K+ > 3.5, HCO3 < 30); pre-op antibiotics given; pyloromyotomy performed
  10. 10DISPOSITION
    Post-laparoscopic pyloromyotomy → inpatient ward 24-48 h LOS for feed advance + monitoring; post-open pyloromyotomy → inpatient ward 48-72 h LOS; PICU/NICU/HDU for severe alkalosis (HCO3 > 35) + severe hypokalemia (K+ < 3) + severe dehydration unresponsive to bolus + preterm with comorbidity; outpatient surgical follow-up at 2-4 weeks for wound check + weight-gain review.
    inputs: sbp_pediatric, cmp_with_chloride_potassium_bicarbonate
    advance: Disposition + level of care set; post-op monitoring plan in place
  11. 11MONITORING
    Post-op laparoscopic uncomplicated: vitals q4h × first 24 h then per protocol; serial abdominal exams q4h; feed advance from clear liquids → formula/breastmilk as tolerated within 4-6 h (early feeding well tolerated); first 24-48 h emesis common and typically self-limited (residual edema; rates 50-80% reported); transition to ad-lib feeding by 24 h; wound inspection daily; early ambulation. Post-op perforation case: as above + IV antibiotic course continuation × 5-7 d + serial labs (CBC + CMP) + watch for post-op abscess (rising CRP + persistent fever + worsening exam → CT for evaluation). Discharge planning: family education on feed advance + return precautions (return of projectile vomiting, fever, wound issues → ED) + surgical follow-up at 2-4 weeks.
    inputs: pattern_of_vomiting_projectile_non_bilious, weight_trend_vs_growth_curve
    advance: Recovery progressing; feeds advanced; weight stable; discharge criteria approaching
  12. 12FOLLOWUP
    Post-op pediatric surgical follow-up at 2-4 weeks for wound check + scar inspection + weight-gain review; pediatrician follow-up within 1-2 weeks for routine well-baby care including weight-gain trajectory + feeding tolerance + family education on macrolide-avoidance principle in neonates < 6 weeks (CDC + AAP advisory); long-term outcomes excellent (most infants recover completely with no long-term sequelae); recurrence after pyloromyotomy < 1-2% (incomplete myotomy). Atypical / preterm / older infant cases: ongoing pediatric GI follow-up for differential broader workup if persistent symptoms (eosinophilic gastroenteritis, gastroparesis, pyloric dysfunction without classical hypertrophy). Jaundice cases: pediatric hepatology follow-up for biliary atresia workup if applicable (< 60 d Kasai window) OR Gilbert-related management.
    advance: Follow-up scheduled + return precautions delivered + family education on macrolide-avoidance complete + atypical-case ddx workup queued if persistent symptoms