Chronic constipation (outpatient symptom triage)
Promoted SCAFFOLDED->INTEGRATED 2026-05-31. Decision surface = regimen_axes chronic_constipation_ladder (fiber/lifestyle -> osmotic -> stimulant -> secretagogue/prokinetic; PAMORA for OIC; biofeedback for dyssynergia), encoding the AGA/ACG ladder already described in this engine; no registry change. Added resolving workup.colorectal_screening (alarm-feature CRC eval). Evidence re-sourced + PubMed-verified via get_article_metadata: 37211380 (Gastroenterology 2023 AGA-ACG CIC guideline) + 27033126 (Nat Rev Gastroenterol Hepatol 2016); prior array was fabricated/placeholder. Laxative RxCUIs are candidate-floor and need RxNav revalidation before PRODUCTION. Phase C shard-3-neuro-sym wave-11 expansion (2026-05-15) — pattern-matches symptom.diarrhea.ed.v1 (wave-10), symptom.cough.ed.v1 (wave-10), symptom.nausea_vomiting.ed.v1 (wave-10), symptom.weakness.ed.v1 (c1c2bc96 wave-9). Engine scope: outpatient chronic constipation triage + cause stratification + stepwise pharmacologic ladder; covers normal-transit (IBS-C) / slow-transit / pelvic-floor dyssynergia / OIC / medication-induced / hypothyroid / hypercalcemia / DM2 autonomic neuropathy / structural-alarm / pediatric functional with encopresis / pregnancy / IBD-related / hospital constipation / fecal impaction. Bayesian linkage (LR+, LR−, pre-test priors by age/sex, alarm-feature thresholds, T_treat) lives in companion depth bundle _briefs/symptom.constipation.v1.depth.md. 4 sibling-differentiation rows cover key look-alikes (Crohn flare with proximal constipation / UC with proctitis / paradoxical overflow diarrhea / abdominal pain ED for SBO concerns). 7 severity triggers (≥7 per spec): alarm_features_new_onset_age_over_50 + fecal_impaction_with_overflow + sbo_perforation_strangulation_suspicion + opioid_induced_constipation_refractory + pelvic_floor_dyssynergia_outlet + severe_hypothyroidism_myxedema_features + hypercalcemia_severe_with_constipation. KEY SAFETY RULES: AVOID oral laxatives until impaction cleared (manual disimpaction first); deprescribe offending meds (anticholinergic / CCB / opioid taper if feasible / iron / antacid Al); biofeedback FIRST-LINE for pelvic-floor dyssynergia (not laxatives); PAMORA preserves central analgesia (does NOT cross BBB); colonoscopy MANDATORY for new-onset >50 or alarm features. Calculators wired (0): chronic outpatient phenotype rarely overlaps acute calculators. Bristol stool form / ROME IV — schema-blocked; ticketed in shard-3 state file. Panels wired: panel.cbc + panel.renal + panel.lft + panel.thyroid + panel.inflammation. Schema-blocked: workup.constipation / workup.anorectal_manometry / workup.colonoscopy_screening / calc.bristol_stool / calc.rome_iv_constipation — NOT in clinical-tools-registry; manual application in setting playbook required_assessments + ticketed in shard-3 state file. Regimen_axes intentionally empty — engine is triage-only. Stepwise pharmacologic ladder (lifestyle → PEG → lactulose/Mg → bisacodyl/senna → linaclotide / plecanatide / lubiprostone → prucalopride → PAMORA methylnaltrexone / naloxegol / naldemedine → manual disimpaction for impaction) lives in setting_playbooks.outpatient.drug_actions. Setting playbook: single `outpatient` per chronic engine spec — ED triage and inpatient management routed via escalation_triggers and disposition_criteria when needed (impaction failing outpatient, SBO concern, severe hypothyroidism, severe hypercalcemia). SCAFFOLDED status: no workup.constipation in clinical-tools-registry; PRODUCTION audit would fail. Will promote once registry entries land.
Entry points (15)
- symptomChronic <3 bowel movements/week + straining + lumpy/hard stools + abdominal pain/bloating relieved by defecation — primary normal-transit constipation / IBS-C (ROME IV); first-line PEG + lifestyle (Bharucha AGA 2013 PMID 28144963)primary_normal_transit_chronic_IBSC
- symptomSevere refractory constipation + delayed colonic transit on radiopaque marker / scintigraphy — slow-transit constipation (colonic inertia); prosecretory (linaclotide / plecanatide / lubiprostone) or 5HT4 (prucalopride) per ACG (Vazquez 2021 PMID 31000341)slow_transit_constipation
- symptomConstipation + impaired evacuation + paradoxical pelvic-floor contraction on balloon expulsion / anorectal manometry — pelvic-floor dyssynergia; BIOFEEDBACK first-line (not laxatives)pelvic_floor_dyssynergia
- symptomChronic opioid use + constipation refractory to first-line laxatives — opioid-induced constipation (OIC); PAMORA (methylnaltrexone 12 mg SC, naloxegol 12.5-25 mg PO, naldemedine 0.2 mg PO) per AGA (PMID 30094000)opioid_induced_constipation
- symptomConstipation + offending medication (anticholinergic, CCB, opioid, iron, aluminum antacid, antipsychotic, TCA, ondansetron) — drug-induced; deprescribe / substitutemedication_induced_constipation
- symptomConstipation + cold intolerance + fatigue + weight gain + bradycardia + elevated TSH — hypothyroidism (severe → route endo.myxedema-coma.core.v1); levothyroxine + constipation typically resolves with replacementhypothyroid_constipation
- symptomConstipation + bones-stones-groans-moans + Ca >12 — hypercalcemia (PTH-dependent vs malignancy); workup cause + IVF + bisphosphonate / denosumab / calcitonin / cinacalcethypercalcemia_constipation
- symptomLong-standing DM2 + constipation alternating with diarrhea + gastroparesis features — diabetic autonomic neuropathy; glycemic control + prokinetics + osmotic / stimulantdm2_autonomic_neuropathy_constipation
- symptomNew-onset constipation >50 + alarm features (rectal bleeding, anemia, weight loss, family hx CRC, nocturnal sx, sudden change in caliber) — route ED + colonoscopy STAT (CRC, stricture, volvulus, SBO concern)structural_obstruction_alarm_features
- symptomPediatric (≥1 yr) chronic constipation + retentive posturing + encopresis (paradoxical soiling) — functional constipation per NASPGHAN/ESPGHAN; PEG 1-1.5 g/kg/d disimpaction + maintenance + behavioralpediatric_functional_constipation_with_encopresis
- symptomPregnancy + constipation — physiologic (progesterone) + iron supplements; psyllium / PEG safe; AVOID stimulant laxatives long-term + AVOID castor oil (uterine stimulation)pregnancy_constipation
- symptomKnown IBD + proximal constipation (especially proctitis / distal UC) — route gi.crohns.core.v1 / gi.ulcerative-colitis.core.v1; address active disease; topical mesalamine + PEGibd_related_constipation
- symptomHospitalized / postoperative / immobile / opioid-exposed inpatient + no BM >3 days — hospital constipation; bowel regimen (PEG + senna + bisacodyl PRN); rule out ileus / SBOhospital_constipation_immobile
- symptomSevere constipation + DRE confirms hard stool in rectum ± paradoxical overflow diarrhea — fecal impaction; manual disimpaction + enemas (saline, mineral oil); AVOID oral laxatives until clearedfecal_impaction_with_or_without_overflow
- lab_abnormalityConstipation + K <3.5 OR Mg <1.5 — electrolyte-induced motility failure; replete + recheckhypokalemia_or_hypomagnesemia_constipation
Required inputs (28)
- agerequireddemographic • used at CONTEXTAge shifts priors: pediatric → functional with encopresis; elderly → medication-induced / opioid / fecal impaction / structural; new-onset >50 → mandatory CRC screen (Bharucha PMID 28144963)
- sexrequireddemographic • used at CONTEXTFemale predominance for IBS-C / slow-transit / pelvic-floor dyssynergia; pregnancy-specific; obstetric injury sequelae (rectocele)
- duration_and_patternrequiredsymptom • used at FRAMEROME IV: >6 months symptoms with last 3 months meeting criteria + <3 BM/wk + 25%+ straining/lumpy/incomplete; new-onset (especially >50) shifts toward structural / alarm features
- bristol_stool_formrequiredsymptom • used at FRAMEBristol 1-2 (hard / lumpy) → constipation; mixed pattern → IBS-mixed; useful for response to therapy
- straining_incomplete_evacuationrequiredsymptom • used at FRAMEStraining + sensation of incomplete evacuation + digital maneuvers → pelvic-floor dyssynergia (anorectal manometry + biofeedback); part of ROME IV
- alarm_features_red_flag_screenrequiredsymptom • used at RED_FLAGSAlarm: age >50 new-onset, rectal bleeding/melena, unintentional weight loss >5%, family hx CRC, anemia, nocturnal sx, sudden change in stool caliber → STAT colonoscopy + ED if obstruction concern (ACG)
- abdominal_pain_or_bloatingrequiredsymptom • used at ENTRYPain relieved by defecation + bloating → IBS-C subtype; severe pain + distension + obstipation → SBO concern (route ED)
- overflow_or_paradoxical_diarrheasymptom • used at ENTRYParadoxical diarrhea around impaction → fecal impaction with overflow (elderly / nursing home); manual disimpaction needed before laxatives
- medication_review_anticholinergic_opioid_ccb_ironrequiredhistory • used at CONTEXTAnticholinergic (TCA, antihistamine, antipsychotic), CCB (especially verapamil), opioid (chronic), iron, aluminum antacid, ondansetron, calcium-channel-blocker, antiparkinsonian → drug-induced; deprescribe or substitute
- chronic_opioid_userequiredhistory • used at CONTEXTChronic opioid (chronic pain, post-surgical, cancer) → OIC distinct entity; PAMORA (methylnaltrexone / naloxegol / naldemedine) first-line per AGA PMID 30094000
- endocrine_hypothyroid_dm_hypercalcemiarequiredhistory • used at CONTEXTHypothyroidism + DM2 autonomic + hypercalcemia + hyperparathyroidism → endocrine-driven; address cause first; check TSH, Ca, glucose
- neurologic_parkinson_ms_spinal_cordhistory • used at CONTEXTParkinson disease + MS + spinal cord injury + autonomic neuropathy + amyloid → neurogenic; bowel regimen + suppositories + manual evacuation; route to neuro engine for primary disease
- colorectal_history_prior_surgery_radiationhistory • used at CONTEXTPrior colorectal surgery / pelvic radiation / hemorrhoids / fissure / stricture / rectocele → structural / functional outlet; consider colorectal referral
- family_history_crc_ibdhistory • used at CONTEXTFamily hx CRC (especially first-degree <60 or multiple) → earlier screening + workup new-onset constipation; family hx IBD → consider underlying IBD
- pregnancy_statushistory • used at CONTEXTPregnancy → physiologic + iron-induced; psyllium / PEG safe; AVOID castor oil + chronic stimulant; senna acceptable short-term
- sbprequiredvital • used at CONTEXTHypotension + obstipation + distension → SBO with shock concern (route ED)
- hrrequiredvital • used at CONTEXTTachycardia + abdominal sx → SBO / sepsis overlap; bradycardia → hypothyroid
- tempvital • used at CONTEXTFever + constipation + distension → SBO with strangulation / perforation / diverticulitis; route ED
- cbc_with_diffrequiredlab • used at INITIAL_WORKUPAnemia (iron-deficiency) + new-onset constipation → mandatory CRC workup; leukocytosis → infectious / SBO complication
- bmp_calcium_phosphorusrequiredlab • used at INITIAL_WORKUPHypokalemia + hypomagnesemia + hypercalcemia → motility failure; BUN/Cr for CKD with constipation (sevelamer, calcium-binders); glucose for DM2 autonomic
- tsh_t4_freerequiredlab • used at INITIAL_WORKUPTSH elevated + T4 low → hypothyroidism (severe → myxedema route); levothyroxine repletion typically resolves constipation
- lft_albuminlab • used at INITIAL_WORKUPAlbumin / LFT — nutrition / weight-loss screen; hypoalbuminemia → severe IBD / malabsorption / malignancy
- crp_inflammationlab • used at INITIAL_WORKUPCRP — inflammatory screen if IBD / diverticulitis / malignancy concern
- abdominal_xray_kubimaging • used at INITIAL_WORKUPKUB — stool burden visualization, megacolon, SBO, free air; useful for impaction assessment + treatment-response monitoring
- colonoscopy_alarm_features_or_age_screenimaging • used at BRANCHING_WORKUPColonoscopy — mandatory for new-onset >50, alarm features (bleeding, anemia, weight loss, family hx, nocturnal, caliber change); also catches CRC at screening age
- anorectal_manometry_with_balloon_expulsionimaging • used at BRANCHING_WORKUPAnorectal manometry + balloon expulsion test → pelvic-floor dyssynergia (paradoxical contraction + failed expulsion); refers to GI motility specialist + biofeedback
- colonic_transit_marker_or_scintigraphyimaging • used at BRANCHING_WORKUPSitz marker (Sitzmarks) or radionuclide scintigraphy → slow-transit constipation (colonic inertia); guides prosecretory / 5HT4 / surgical consideration
- defecography_mri_or_fluoroscopicimaging • used at BRANCHING_WORKUPDefecography (MR or fluoroscopic) → rectocele, intussusception, enterocele, pelvic-floor descent; functional outlet abnormalities
12-phase flow (12)
- 1FRAMEROME IV duration + pattern (chronic >6 mo); Bristol stool form 1-2; straining + incomplete evacuation + digital maneuvers — anchors phenotype (Bharucha AGA 2013 PMID 28144963; Vazquez ACG 2021 PMID 31000341)inputs: duration_and_pattern, bristol_stool_form, straining_incomplete_evacuationadvance: ROME IV criteria evaluated + phenotype tentative
- 2ENTRYAbdominal pain / bloating (IBS-C overlap); overflow diarrhea (impaction); alarm features (RED_FLAGS); functional outlet symptomsinputs: abdominal_pain_or_bloating, overflow_or_paradoxical_diarrhea, alarm_features_red_flag_screenadvance: phenotype-defining features captured
- 3CONTEXTAge + sex + vitals + medication review (anticholinergic / opioid / CCB / iron / antacid Al) + chronic opioid + endocrine (hypothyroid, DM2 autonomic, hypercalcemia, hyperparathyroidism) + neurologic (Parkinson, MS, spinal cord) + colorectal surgical / radiation / hemorrhoid / fissure / stricture / rectocele + family hx CRC/IBD + pregnancyinputs: age, sex, sbp, hr, medication_review_anticholinergic_opioid_ccb_iron, chronic_opioid_use, endocrine_hypothyroid_dm_hypercalcemia, neurologic_parkinson_ms_spinal_cord, colorectal_history_prior_surgery_radiation, family_history_crc_ibd, pregnancy_statusadvance: context complete
- 4RED_FLAGSAge >50 new-onset; rectal bleeding / melena; unintentional weight loss >5%; family hx CRC; iron-deficiency anemia; nocturnal sx; sudden change in stool caliber; severe pain + obstipation + distension + fever → SBO / strangulation / perforation / volvulus / diverticulitis with abscess — route ED + colonoscopy STATinputs: alarm_features_red_flag_screen, sbp, tempadvance: no immediate alarm OR routed to ED / colonoscopy
- 5INITIAL_WORKUPCBC (anemia → CRC workup); BMP + Ca + Mg + PO4 (electrolyte motility, hypercalcemia, CKD); TSH (hypothyroid); LFT + albumin (malabsorption); CRP (inflammatory); KUB (stool burden, megacolon, SBO)inputs: cbc_with_diff, bmp_calcium_phosphorus, tsh_t4_free, lft_albumin, crp_inflammation, abdominal_xray_kubactions: panel.cbc, panel.renal, panel.lft, panel.thyroidadvance: initial workup reviewed + cause stratification
- 6BRANCHING_WORKUPAlarm features OR new-onset >50 → colonoscopy (CRC, stricture, IBD). Refractory + outlet sx → anorectal manometry + balloon expulsion (pelvic-floor dyssynergia → biofeedback). Refractory + delayed transit → Sitz marker / scintigraphy (slow-transit). Functional outlet imaging → defecography. Pregnancy → psyllium / PEG safe. Hypothyroid → TSH + T4 + levothyroxine. Hypercalcemia → PTH + workup. OIC → PAMORA per AGA. Drug-induced → deprescribe. Impaction → manual disimpaction first.inputs: colonoscopy_alarm_features_or_age_screen, anorectal_manometry_with_balloon_expulsion, colonic_transit_marker_or_scintigraphy, defecography_mri_or_fluoroscopicadvance: definitive pathway selected
- 7DIFFERENTIALPrimary normal-transit IBS-C (most common); slow-transit (colonic inertia); pelvic-floor dyssynergia (outlet); opioid-induced (OIC); medication-induced (anticholinergic / CCB / iron); endocrine (hypothyroid, DM2 autonomic, hypercalcemia, hyperparathyroidism); neurologic (Parkinson, MS, spinal cord); structural (CRC, stricture, volvulus, rectocele); IBD with proctitis; pregnancy physiologic; pediatric functional with encopresis; fecal impaction with/without overflow; hospital / immobile / postoperative; electrolyte (K, Mg).advance: phenotype ranked
- 8RISK_STRATIFICATIONAlarm-feature score (any one triggers colonoscopy); CRC risk by age/family hx; pelvic-floor severity (need biofeedback); opioid dose / chronicity (need PAMORA); impaction severity (manual vs enema vs OR); SBO severity if structuraladvance: risk stratification documented
- 9TREATMENTLifestyle: fiber 25-30 g/d (psyllium / wheat dextrin / methylcellulose), hydration 2 L/d, exercise. Osmotic: PEG 17 g/d (first-line per AGA / ACG), lactulose 15-30 mL BID, MgOH 30 mL or Mg citrate (caution CKD). Stimulant: bisacodyl 5-10 mg PO/PR, senna 8.6-17.2 mg PO. Prosecretory: linaclotide 145 µg (IBS-C 290 µg), plecanatide 3 mg, lubiprostone 24 µg (caution pregnancy). 5HT4: prucalopride 2 mg PO daily (CIC + slow-transit). OIC PAMORA: methylnaltrexone 12 mg SC q48h, naloxegol 12.5-25 mg PO daily, naldemedine 0.2 mg PO daily. Biofeedback (pelvic-floor dyssynergia first-line). Manual disimpaction + enemas (impaction). Address cause: levothyroxine (hypothyroid), DM glycemic control + prokinetic, hypercalcemia tx, deprescribe offending meds, IBD tx routing.inputs: medication_review_anticholinergic_opioid_ccb_ironadvance: stepwise ladder initiated + cause addressed
- 10DISPOSITIONHome: most outpatients; lifestyle + osmotic + lifestyle counseling + return precautions; pregnancy counseling. Outpatient GI referral: refractory + alarm + pelvic-floor / slow-transit workup. ED: severe pain + obstipation + distension + fever (SBO / perforation / strangulation / diverticulitis); fecal impaction failing outpatient disimpaction. Inpatient: severe impaction + ileus + AMS + electrolyte derangement + comorbid acute illness. ICU: rare — severe ileus + volvulus + perforation + shock.advance: disposition assigned
- 11MONITORINGBM frequency + Bristol stool form trend (1-2 → 3-5 goal); response to osmotic vs prosecretory vs PAMORA at 2-4 weeks; repeat BMP if osmotic + CKD (Mg); colonoscopy result + downstream routing; biofeedback completion in pelvic-floor; PAMORA tolerance + opioid dose trackingadvance: response documented or escalation triggered
- 12FOLLOWUPLifestyle counseling reinforcement (fiber + hydration + exercise + toilet posture); deprescribing offending meds; chronic IBD on biologic / mesalamine; biofeedback for pelvic-floor; surgical referral for refractory rectocele / megacolon (Hartmann or subtotal colectomy); CRC screening intervals; OIC on chronic opioid PAMORA; pregnancy obstetric coordination; pediatric NASPGHAN/ESPGHAN bowel programadvance: long-term plan in place + follow-up scheduled