Clinical Commander

All dossiers
gi.hemorrhoids.core.v1

Haemorrhoidal Disease & Common Benign Anorectal Conditions (internal/external haemorrhoids Goligher I–IV, thrombosed external haemorrhoid, acute anal fissure, perianal abscess pointer) — rectal bleeding NOT assumed benign

gastroenterologychronicsubacuteadultpregnancyoutpatientacutetransition

Authored 2026-05-16 (autonomous, shard-3). acuity chronic+subacute — chronic haemorrhoidal disease + subacute acute-thrombosis/fissure/bleeding episodes; full 12-phase canonical order with CONTEXT/TREATMENT/MONITORING/FOLLOWUP (chronic tier) AND RED_FLAGS/INITIAL_WORKUP/DISPOSITION for the acute thrombosis/bleeding/perianal-sepsis presentation. LOAD-BEARING RULE encoded: rectal bleeding is NOT assumed haemorrhoidal — workup.lgib is required:true in RED_FLAGS; alarm features / screening gap / iron-deficiency anaemia route to workup.colorectal_screening / workup.colonoscopy_diagnostic before benign attribution. Haemorrhoid attribution of rectal bleeding is the single most common missed colorectal-cancer diagnostic opportunity (Siminoff BioMed Res Int 2015 PMID 26504796). Pivotal differential vs gi.lgib.core.v1 (sibling row + branches_to). GUIDELINE CORRECTION: the build spec cited PMID 29521825 for "ASCRS 2018 hemorrhoids (Davis)" — that PMID is incorrect. The 2018 Davis ASCRS hemorrhoids guideline is PMID 29420423. Per always-latest-guidelines, PRIMARY anchor advanced to the ASCRS 2024 Hemorrhoids CPG (Hawkins, Dis Colon Rectum 2024 — PMID 38294832); 29420423 retained only as lineage. ASCRS anal-fissure anchor advanced from 2017 Stewart (PMID 27926552) to the current 2023 Davids guideline (PMID 36321851). WebSearch-verified this pass — see _research-bundle.md. Effect sizes wired: fibre roughly halves persistent symptoms/bleeding (RR ~0.50; Alonso-Coello PMID 16235372/16405552); excisional haemorrhoidectomy vs RBL complete remission RR 1.68 (95% CI 1.00–2.83; Shanmugam PMID 16034963); thrombosed-external excision <72 h resolution 3.9 vs 24 d & recurrence 6.3% vs 25.4% (Greenspon PMID 15486746); HAL vs RBL single-procedure recurrence ~30% vs ~49% (HubBLe PMID 27236344); excisional superior long-term to stapled (eTHoS PMID 27726951); phlebotonics benefit bleeding/pruritus not pain (Perera PMID 22895941); topical CCB/botulinum as effective as GTN without headache (Nelson PMID 22336789); GTN headache 20–30%. 13 effect sizes total in bundle §5.5.1. All 15 RxCUIs curl-verified via RxNav REST forward+reverse 2026-05-16: psyllium 8928, methylcellulose 6873, PEG3350 221147, lactulose 6218, docusate 82003, hydrocortisone 5492, pramoxine 34347, lidocaine 6387, phenylephrine 8163, nitroglycerin 4917, diltiazem 3443, nifedipine 7417, acetaminophen 161, ibuprofen 5640, diosmin 3489. Procedures (RBL/sclerotherapy/IRC/haemorrhoidectomy/stapled/HAL/LIS/I&D/botulinum/thrombosed-excision/periprocedural-anticoag) marked non_pharm. Special-population branches (≥4 required, 6 wired): pregnancy/postpartum (conservative first-line, drug-safety tiers, defer surgery — population includes pregnancy), elderly (continence-risk pre-sphincterotomy), immunocompromised/HIV (atypical fissure/abscess, Fournier emergency), IBD (route gi.crohns.core.v1, avoid sphincterotomy), anticoagulated (periprocedural HAS-BLED plan), portal hypertension (anorectal varices NOT haemorrhoids — route gi.cirrhosis.core.v1/gi.variceal_bleed.v1). Registry ids confirmed-resolving only: workup.lgib (required:true), workup.colorectal_screening, workup.colonoscopy_diagnostic, workup.acute_abdomen; calc.has_bled (HAS-BLED — verified resolves), calc.ckd_epi_2021, calc.phq9; panel.cbc/iron/cmp/coag/inflammation; cascade.labs_command. No protocols. Manifest is the required stub per spec. No panel file created (in pattern for gi new INTEGRATED dossiers this shard). DEPTH-PASS-2 (2026-05-17, autonomous, shard-3-neuro-sym): evidence.pmids expanded 12 → 36, all WebSearch-verified against pubmed.ncbi.nlm.nih.gov on 2026-05-17 (none NEEDS_SOURCE_REVIEW). Added: RBL-vs-haemorrhoidectomy SR/MA grade II–III (33683503) + 2025 multicentre RCT grade III recurrence 47.5% vs 6.1%, ARD 41% (95% CI 24–59) (39952268); office RBL-vs-sclerotherapy MA (36545183) + HerBS (37133577); RBL-vs-coagulation MA (36002257); MPFF/flavonoid MAs — bleeding RR 1.46 (30012392), persisting-symptoms RR 0.42 / 58% reduction (16736537), postop MPFF MA (35752073); Cochrane stapled-vs-conventional Lumb — prolapse OR 3.38 [1.00–11.47] postop / 4.34 [1.67–11.28] long-term, reintervention OR 6.78 [2.00–23.00] (17054255) + long-term MA (19289667); THD-vs-stapled MA 13.2% vs 6.9% (30421308); thrombosed-external operative-vs-nonoperative 2025 MA (40576944); botulinum-vs-nitrate MA (29166553); HubBLe protocol (23098097); surgical-vs-conservative MA (40596934); CRC-attribution Bayesian cohorts — Astin/Hamilton pooled PPV 8.1% [6.0–11] ≥50 yr (21619747), du Toit/Wauters 10-yr GP cohort (16790459), Hamilton bleeding+bowel-habit combination (16882123), diagnostic-accuracy SR (19935790), alarm-symptom cohort (30792531), stage-specific cohort (37948886), CRC-risk-prediction cohort (17007706); anticoagulation periprocedural — late-post-band bleeding cohort (19095121), post-haemorrhoidectomy 5.92% vs 2.66% (36048039). §5.5.1 effect sizes now ≥20 with 95% CI/RR/OR/ARD wired into regimen rationales + notes. §5.5.2: NEW load-bearing severity_trigger crc_bayesian_override_alarm_constellation_colonoscopy_mandate encodes the LR+ ≥20 constellation (rectal-bleeding + change-in-bowel-habit, binned LR+ ≈ 20+ vs painless-distal binned LR+ ≈ 0.3–0.5) with reference standard = colonoscopy+histology, the four conditional dependencies (age ≥45/50; anoscopy-performed; anticoagulation; portal-HTN/liver-disease) + independence notes + age-stratified pre-test priors + colonoscopy threshold rule + thrombosed-external 72-h window; gi.lgib sibling row rebuilt with binned LRs/conditional-dependency rows; added dedicated gi.variceal_bleed.v1 sibling row → 6 distinct cross-edges by engine_id (gi.lgib, gi.crohns, gi.cirrhosis, gi.variceal_bleed, gi.ibs, symptom.abdominal_pain.ed). Special-pop 6 retained (pregnancy/postpartum, elderly, immunocompromised/HIV-Fournier, IBD/Crohn, anticoagulated, portal-HTN). NO new RxCUIs (all 15 prior preserved & unchanged; new evidence is procedural/cohort = non_pharm). TYPE SAFETY: every SettingPlaybook.setting literal verified valid — outpatient / transition / ed; the ED/acute-care-triage playbook is setting: 'ed' (NOT 'acute'; the prior TS2322 stays fixed). No new registry ids; inputs_required ⊆ required_inputs unchanged; object remains assignable to EngineDossier.

Entry points (6)

  • symptom
    Bright-red blood on stool / paper / dripping — NOT assumed haemorrhoidal until colorectal source excluded (Siminoff 2015 PMID 26504796; ASCRS 2024)
    rectal_bleeding
  • symptom
    Perianal lump / prolapsing tissue with defecation (internal haemorrhoid grading) (ASCRS 2024)
    anorectal_prolapse
  • symptom
    Acute severe perianal pain — thrombosed external haemorrhoid vs anal fissure vs perianal abscess pivot (Greenspon 2004 PMID 15486746; ASCRS 2023)
    acute_perianal_pain
  • symptom
    Pruritus ani / mucous discharge / soiling (haemorrhoidal symptom or alternative anorectal pathology) (ASCRS 2024)
    pruritus_ani
  • problem_list
    Known haemorrhoids / anal fissure on problem list — refractory-symptom or procedure-planning visit (ASCRS 2024/2023)
    known_haemorrhoids_or_fissure
  • lab_abnormality
    Iron-deficiency anaemia with anorectal symptoms — alarm feature mandating colorectal workup (NOT attributable to haemorrhoids) (ASCRS 2024)
    iron_deficiency_anaemia

Required inputs (17)

  • agerequired
    demographic • used at CONTEXT
    Age ≥45 (or per current CRC screening) with rectal bleeding is an alarm feature mandating colorectal-source exclusion; younger patients are ~2.3× more likely to have a missed CRC diagnosis when bleeding is attributed to haemorrhoids (Siminoff 2015 PMID 26504796; ASCRS 2024)
  • sexrequired
    demographic • used at CONTEXT
    Anterior-midline fissure is more common in women (typical/idiopathic); pregnancy applies only to women; informs continence-risk counselling before sphincterotomy (ASCRS 2023)
  • rectal_bleedingrequired
    symptom • used at ENTRY
    Bright-red rectal bleeding is the central presenting symptom AND the load-bearing safety pivot — it is NOT assumed haemorrhoidal; character, persistence and atypia drive colorectal-source exclusion (ASCRS 2024; Siminoff 2015 PMID 26504796)
  • anorectal_prolapserequired
    symptom • used at BRANCHING_WORKUP
    Prolapse pattern (reduces spontaneously / needs manual reduction / irreducible) assigns Goligher grade I–IV and selects the management arm (ASCRS 2024)
  • acute_perianal_painrequired
    symptom • used at FRAME
    Pain pattern partitions painless internal haemorrhoid vs painful thrombosed external haemorrhoid vs fissure vs perianal abscess; thrombosis duration drives the 72-h excision window (Greenspon 2004 PMID 15486746)
  • alarm_featuresrequired
    symptom • used at RED_FLAGS
    Change in bowel habit, weight loss, iron-deficiency anaemia, family history CRC/IBD, bleeding atypical for haemorrhoids, incomplete prior screening, persistent/atypical bleeding — each overrides benign attribution and mandates colorectal-source exclusion (ASCRS 2024; Siminoff 2015 PMID 26504796)
  • bowel_habit_constipation_strainingrequired
    history • used at CONTEXT
    Constipation/straining is the central modifiable driver of haemorrhoids and fissure; bowel-habit modification + fibre is first-line for all (ASCRS 2024/2023; Alonso-Coello PMID 16235372)
  • pregnancy_statusrequired
    history • used at CONTEXT
    Pregnancy/postpartum haemorrhoids & fissure are very common — conservative first-line, drug-safety tiers (fibre/sitz safe; topical cautious; avoid systemic NSAID near term), defer surgery (ASCRS 2024)
  • anticoagulant_antiplateletrequired
    medication • used at CONTEXT
    Anticoagulant/antiplatelet therapy materially raises post-RBL/sclerotherapy/surgical bleeding — HAS-BLED-informed periprocedural hold/bridge plan required before any office procedure or surgery (ASCRS 2024)
  • immunocompromise_hiv
    history • used at CONTEXT
    Immunocompromise/HIV → atypical fissure/abscess, lower threshold to investigate, perianal sepsis is a Fournier-gangrene emergency (ASCRS 2023)
  • ibd_history
    history • used at BRANCHING_WORKUP
    Lateral/multiple/non-healing fissure or perianal abscess/fistula suggests Crohn — route to gi.crohns.core.v1 and AVOID lateral internal sphincterotomy (impaired healing + incontinence) (ASCRS 2023)
  • portal_hypertension_cirrhosis
    history • used at DIFFERENTIAL
    In portal hypertension/cirrhosis, dilated anorectal collaterals are VARICES, not haemorrhoids — banding/injection/excision risks severe bleeding; route to gi.cirrhosis.core.v1 / gi.variceal_bleed.v1 (ASCRS 2024)
  • continence_prior_anorectal_surgery
    history • used at RISK_STRATIFICATION
    Baseline continence and prior anorectal surgery/obstetric injury quantify incontinence risk before lateral internal sphincterotomy (most effective fissure procedure but highest incontinence risk) (ASCRS 2023; Nelson PMID 22336789)
  • cbcrequired
    lab • used at INITIAL_WORKUP
    Anaemia from chronic anorectal bleeding; iron-deficiency anaemia is an alarm feature mandating colonoscopy (NOT attributable to haemorrhoids) (ASCRS 2024)
  • ferritin_iron_studies
    lab • used at INITIAL_WORKUP
    Iron-deficiency pattern with anorectal bleeding mandates colorectal-source exclusion before benign attribution (ASCRS 2024; Siminoff 2015 PMID 26504796)
  • inr_coagulation
    lab • used at INITIAL_WORKUP
    INR/coagulation in anticoagulated patients informs the periprocedural bleeding plan and bleeding-risk stratification (ASCRS 2024)
  • creatinine
    lab • used at TREATMENT
    Renal function for dose review of any renally-cleared adjunct and CKD-EPI 2021 eGFR (minor) (ASCRS 2024)

12-phase flow (12)

  1. 1FRAME
    Establish scope — chronic haemorrhoidal disease vs an acute subacute episode (thrombosed external haemorrhoid / acute anal fissure / significant bleeding / perianal abscess pointer); adult vs pregnancy/postpartum; the painless-internal-bleeding vs painful-thrombosed-external/fissure pivot (ASCRS 2024/2023)
    inputs: acute_perianal_pain
    advance: condition (haemorrhoid / fissure / thrombosed external / abscess), acuity and population framed
  2. 2ENTRY
    Recognise the presenting trigger — bright-red rectal bleeding (NOT assumed haemorrhoidal), prolapse/perianal lump, acute severe perianal pain, pruritus/discharge, known-disease review, or iron-deficiency anaemia with anorectal symptoms (ASCRS 2024; Siminoff 2015 PMID 26504796)
    inputs: rectal_bleeding
    advance: one entry trigger present
  3. 3CONTEXT
    Age (CRC pre-test probability), sex, bowel habit/constipation/straining, pregnancy/postpartum status, anticoagulant/antiplatelet therapy, immunosuppression/HIV, IBD history, prior anorectal surgery/continence, family history CRC/IBD (ASCRS 2024/2023)
    inputs: age, sex, bowel_habit_constipation_straining, pregnancy_status, anticoagulant_antiplatelet, immunocompromise_hiv
    actions: panel.cmp
    advance: demographics + bowel habit + pregnancy + anticoagulation + comorbidity captured
  4. 4RED_FLAGS
    RECTAL BLEEDING IS NOT ASSUMED HAEMORRHOIDAL — alarm features (age ≥45 / per current screening, change in bowel habit, weight loss, iron-deficiency anaemia, family history CRC/IBD, bleeding atypical for haemorrhoids, incomplete prior screening, persistent/atypical bleeding) mandate colorectal-source exclusion; perianal abscess / Fournier gangrene (immunocompromised/diabetic — perianal sepsis) is a surgical emergency; brisk bleeding / haemodynamic compromise → gi.lgib.core.v1. Haemorrhoid attribution of rectal bleeding is the most common missed CRC diagnostic opportunity (Siminoff 2015 PMID 26504796; ASCRS 2024)
    inputs: alarm_features, age, rectal_bleeding
    actions: workup.lgib, workup.colorectal_screening, workup.colonoscopy_diagnostic, workup.acute_abdomen
    advance: no alarm feature and no perianal sepsis, OR colorectal-source workup / surgical-emergency route activated
  5. 5INITIAL_WORKUP
    Perianal inspection + digital rectal exam + anoscopy/proctoscopy (the diagnostic standard for internal haemorrhoids/fissure); CBC for anaemia from chronic bleeding; iron studies if iron-deficiency pattern; INR/coagulation if anticoagulated. The load-bearing branch: any alarm / screening gap / iron-deficiency anaemia → colorectal-source workup (colonoscopy) BEFORE benign attribution (ASCRS 2024; Siminoff 2015 PMID 26504796)
    inputs: cbc, ferritin_iron_studies, inr_coagulation
    actions: panel.cbc, panel.iron, panel.coag, workup.lgib, workup.colonoscopy_diagnostic, cascade.labs_command
    advance: anoscopy/DRE done, anaemia/coag assessed, and colorectal source excluded or routed
  6. 6BRANCHING_WORKUP
    Classify external vs internal vs mixed; assign Goligher grade I (no prolapse) / II (prolapse, spontaneous reduction) / III (prolapse, manual reduction) / IV (irreducible); fork thrombosed-external (duration for 72-h window) vs acute anal fissure (posterior-midline typical) vs perianal abscess. LATERAL / multiple / painless / non-healing fissure → secondary-cause workup (Crohn, malignancy, TB, syphilis, HIV) and route to gi.crohns.core.v1; anaemia → iron-deficiency + mandatory colonoscopy (ASCRS 2024/2023)
    inputs: anorectal_prolapse, ibd_history
    actions: workup.colonoscopy_diagnostic, workup.lgib
    advance: grade + external/internal/mixed + thrombosis/fissure/abscess phenotype + secondary-cause status assigned
  7. 7DIFFERENTIAL
    Haemorrhoids vs colorectal/anal carcinoma (THE pivotal miss — Siminoff 2015 PMID 26504796), anorectal varices in portal hypertension (NOT haemorrhoids — do NOT band/inject), anal fissure (idiopathic vs secondary), perianal abscess/fistula, rectal prolapse, condylomata acuminata, pruritus ani, proctitis/IBD, solitary rectal ulcer syndrome (ASCRS 2024/2023)
    inputs: portal_hypertension_cirrhosis
    advance: benign anorectal diagnosis confirmed AND colorectal/anal malignancy + anorectal varices excluded or routed
  8. 8RISK_STRATIFICATION
    Goligher grade + symptom burden + bleeding-related anaemia severity + thrombosis acuity (<72 h excision window) + periprocedural bleeding risk (HAS-BLED if anticoagulated) + host-risk modifiers (pregnancy, IBD, immunocompromise, portal HTN, baseline continence pre-sphincterotomy) (ASCRS 2024/2023)
    inputs: anorectal_prolapse, continence_prior_anorectal_surgery, anticoagulant_antiplatelet
    actions: calc.has_bled
    advance: grade + anaemia severity + thrombosis window + periprocedural bleeding risk + continence risk documented
  9. 9TREATMENT
    CONSERVATIVE for all + grade I–II: bulk fibre (psyllium/methylcellulose — roughly halves persistent symptoms/bleeding, RR ~0.50; Alonso-Coello PMID 16235372/16405552), fluids, bowel-habit modification, sitz baths, short-course duration-limited topical analgesic/steroid (skin-atrophy limit), ± MPFF/diosmin flavonoid (bleeding/pruritus benefit, NOT pain; Perera PMID 22895941). OFFICE PROCEDURES grade I–III refractory: rubber-band ligation (most effective non-surgical — excisional better remission RR 1.68 [1.00–2.83] but more morbidity, Shanmugam PMID 16034963), sclerotherapy, infrared coagulation. SURGERY grade III–IV/refractory/mixed/thrombosed: excisional haemorrhoidectomy (most effective, most pain), stapled haemorrhoidopexy (less early pain, inferior long-term — eTHoS PMID 27726951), HAL-Doppler (vs RBL — HubBLe PMID 27236344). Thrombosed external <72 h → excision (resolution 3.9 vs 24 d, recurrence 6.3% vs 25.4%; Greenspon PMID 15486746). Anal-fissure ladder: fibre + sitz → topical CCB (diltiazem/nifedipine) or GTN (first-line medical; GTN headache 20–30%) → botulinum toxin → lateral internal sphincterotomy (most effective, incontinence risk; Nelson PMID 22336789). Periprocedural anticoagulation hold/bridge plan. Pregnancy: conservative first-line, drug-safety tiers, defer surgery (ASCRS 2024/2023)
    inputs: bowel_habit_constipation_straining, pregnancy_status, anticoagulant_antiplatelet, creatinine
    advance: grade/phenotype-appropriate plan executed (conservative / office procedure / surgery / fissure ladder step) with periprocedural anticoagulation managed
  10. 10DISPOSITION
    Primary-care conservative management for most chronic haemorrhoidal disease and acute anal fissure; colorectal referral (transition) for office procedure, surgery, refractory disease, or grade III–IV; ED for acutely thrombosed external haemorrhoid with severe pain within the 72-h excision window, significant/symptomatic bleeding, or perianal sepsis/Fournier gangrene (ASCRS 2024/2023)
    inputs: acute_perianal_pain, alarm_features
    advance: destination set (primary-care / colorectal referral / ED) and colorectal-source exclusion status documented
  11. 11MONITORING
    Symptom/bleeding response at 4–8 weeks; anal-fissure healing on topical therapy (re-evaluate at 6–8 wk; non-healing → escalate ladder / secondary-cause workup); ENFORCE topical-steroid duration limit (≤7–14 days — skin atrophy); GTN headache/hypotension/PDE5i-interaction monitoring; post-procedure bleeding/pain/urinary retention; continence after sphincterotomy; anaemia trend on iron repletion; re-screen emergent alarm features → re-enter RED_FLAGS colorectal workup (ASCRS 2024/2023; Nelson PMID 22336789)
    inputs: cbc, creatinine, continence_prior_anorectal_surgery
    actions: panel.cbc, panel.iron
    advance: treatment response assessed, fissure healing tracked, drug-duration and continence/bleeding safety documented
  12. 12FOLLOWUP
    Recurrence counselling + sustained bowel-habit/fibre maintenance; CONFIRM age-appropriate colorectal cancer screening is completed/up to date (the safety close-out — never close a rectal-bleeding episode without it); pregnancy postpartum resolution counselling (most resolve); escalate non-responders to colorectal referral; route IBD (gi.crohns.core.v1), portal-HTN/varices (gi.cirrhosis.core.v1), or malignancy as identified (ASCRS 2024/2023)
    inputs: age, pregnancy_status, bowel_habit_constipation_straining
    actions: workup.colorectal_screening
    advance: recurrence/bowel-habit counselling delivered, CRC screening confirmed up to date, follow-up scheduled, onward routing done