Cirrhosis (chronic, compensated + decompensated)
Manifest is full and current (AASLD 2024 + AASLD 2023 ACLF + Baveno VII + AASLD MASLD + AASLD HCC + ACG ALD + BMJ BP) with 6 phenotypes (compensated, decompensated, ACLF, alcohol, MASH, viral) and complete medication/dosing tables. Problem-package at src/lib/tier3/problem-package/packages/cirrhosis/ has full atoms; a sibling decompensation-focused package at gi.cirrhosis_decompensation.inpatient/ provides the `_design-brief.md` cited above. Workups acute_cholangitis-like wiring uses hepatic_encephalopathy + sbp_workup + hepatorenal_syndrome (all in clinical-tools-registry). Calculators MELD-Na + MELD 3.0 wired; Maddrey, FIB-4, APRI also in manifest. Gaps for PRODUCTION: evidence.pmids array empty (manifest cites guideline labels but no numeric PMIDs); no engine-specific test_files; regimen_axes empty (carvedilol, propranolol, spironolactone, furosemide, lactulose, rifaximin, albumin, terlipressin, octreotide, ceftriaxone, prednisolone all in manifest.medications without RxCUI verification).
Entry points (7)
- symptomJaundice / scleral icterusjaundice
- symptomNew or worsening ascitesascites
- symptomVariceal bleed — hematemesis / melenahematemesis_melena
- symptomHepatic encephalopathy / confusion / asterixishepatic_encephalopathy
- lab_abnormalityThrombocytopenia + abnormal LFTs / synthetic dysfunctionthrombocytopenia_with_lft_abn
- imagingCirrhotic morphology on US/CT/MRIcirrhotic_liver_us
- problem_listExisting cirrhosis on problem list (visit / readmission)cirrhosis
Required inputs (19)
- agerequireddemographic • used at CONTEXTTransplant eligibility, frailty, MELD-Na age component
- sbprequiredvital • used at CONTEXTHypotension precipitates HRS-AKI; variceal bleed shock
- hrrequiredvital • used at CONTEXTHyperdynamic circulation; SBP / sepsis screen
- total_bilirubinrequiredlab • used at INITIAL_WORKUPMELD/MELD-Na/MELD3/Child-Pugh component (AASLD 2023 Biggins)
- inrrequiredlab • used at INITIAL_WORKUPMELD/MELD-Na/MELD3/Child-Pugh component (AASLD 2023 Biggins)
- creatininerequiredlab • used at INITIAL_WORKUPMELD/MELD-Na/MELD3 component; HRS-AKI workup (AASLD 2023)
- sodiumrequiredlab • used at INITIAL_WORKUPMELD-Na/MELD3 component; hyponatremia <125 = red flag (AASLD 2023 Biggins)
- albuminrequiredlab • used at INITIAL_WORKUPChild-Pugh + MELD3 component; nutritional status (AASLD 2023)
- plateletsrequiredlab • used at INITIAL_WORKUPPortal hypertension surrogate; FIB-4 (Baveno VII 2022)
- ast_altrequiredlab • used at INITIAL_WORKUPAST:ALT ratio (alcoholic >2:1); FIB-4 / APRI (AASLD 2023)
- afplab • used at MONITORINGHCC surveillance (AASLD 2023 HCC)
- ammonialab • used at BRANCHING_WORKUPHE workup (note: not required for HE diagnosis per AASLD 2023)
- liver_us_dopplerrequiredimaging • used at INITIAL_WORKUPHCC surveillance, portal vein patency, ascites (AASLD 2023 HCC)
- egd_variceal_screenimaging • used at INITIAL_WORKUPVariceal screening for portal hypertension (Baveno VII 2022 de Franchis)
- alcohol_userequiredhistory • used at CONTEXTEtiology + abstinence is highest-yield intervention (ACG 2023 ALD)
- viral_hepatitisrequiredhistory • used at CONTEXTHCV cure (DAA), HBV suppression (AASLD 2024)
- mash_metabolicrequiredhistory • used at CONTEXTMASH etiology — leading cause; weight, T2DM, lipids, BP control (AASLD 2023 MASLD)
- decompensation_historyrequiredhistory • used at CONTEXTCompensated vs decompensated phenotype (EASL 2018)
- current_medsrequiredmedication • used at CONTEXTAvoid NSAIDs / nephrotoxins; check beta-blocker / lactulose / rifaximin / diuretics (AASLD 2023)
12-phase flow (12)
- 1FRAMEConfirm cirrhosis scope; distinguish compensated outpatient from decompensated/ACLF inpatient pathway (EASL 2018)inputs: decompensation_historyadvance: compensated vs decompensated assigned
- 2ENTRYRecognize jaundice, ascites, variceal bleed, HE, or known-cirrhosis follow-up trigger (AASLD 2023 Biggins)inputs: ageadvance: one entry trigger present
- 3CONTEXTVitals, etiology screen (alcohol, viral, MASH), prior decompensations, NSAID/diuretic compliance, recent infectioninputs: sbp, hr, alcohol_use, viral_hepatitis, mash_metabolic, current_medsadvance: context captured
- 4RED_FLAGSVariceal bleed, HE grade 3-4, SBP, HRS-AKI, ACLF organ failure, severe hypoglycemia, hyponatremia <125 (AASLD 2023; EASL 2018)inputs: sbp, sodium, creatinineadvance: red flag escalated to acute pathway or excluded
- 5INITIAL_WORKUPFull LFT panel, INR/PT, CBC w/ platelets, BMP (Cr/Na), albumin, viral hepatitis serologies, autoimmune panel if indicated, AFP, US with Doppler, EGD for variceal screeninputs: total_bilirubin, inr, creatinine, sodium, albumin, platelets, ast_alt, liver_us_doppler, egd_variceal_screenactions: panel.lft, panel.renal, panel.cbcadvance: baseline labs + imaging returned
- 6BRANCHING_WORKUPDiagnostic paracentesis for any new ascites (SBP/SAAG); MRCP/MRI for HCC; ammonia/precipitant screen for HE; ACLF organ failure workupinputs: ammoniaactions: sbp_workup, hepatic_encephalopathy, hepatorenal_syndromeadvance: phenotype identified (compensated / decompensated / ACLF / alcohol / MASH / viral)
- 7DIFFERENTIALEtiology — viral, alcoholic, MASH, autoimmune, PBC, PSC, hereditary (HH, Wilson, A1AT), drug-induced, Budd-Chiari, cardiac (AASLD 2023 Biggins)advance: etiology assigned
- 8RISK_STRATIFICATIONMELD / MELD-Na / MELD 3.0 / Child-Pugh; Maddrey for AH; CLIF-C ACLF if ACLFinputs: total_bilirubin, inr, creatinine, sodium, albuminactions: calc.meld_na, calc.meld3, calc.fib4, calc.apri, calc.maddreyadvance: severity scores documented
- 9TREATMENTTreat etiology (DAA / abstinence / HBV suppression / MASH lifestyle); Baveno VII variceal management; ascites diuretics + LVP+albumin; HE lactulose+rifaximin; SBP empiric ceftriaxone+albumin; HRS terlipressin+albumin; transplant referral MELD ≥15inputs: creatinine, sodium, plateletsadvance: etiology + complication-specific plan in motion
- 10DISPOSITIONICU for ACLF Grade 2-3 / variceal bleed / HE 4 / HRS-AKI; floor for stable decompensation; outpatient hepatology for compensated (EASL 2018; AASLD 2023)inputs: sbpadvance: destination set
- 11MONITORINGMELD-Na monthly during decompensation; LFT/INR/albumin q3-6mo compensated; HCC US+AFP q6mo; EGD q2-3yr; weight daily for ascites; daily Cr/Na on diuretics (AASLD 2023; Baveno VII 2022)inputs: total_bilirubin, creatinine, sodium, afpactions: panel.ascitesadvance: monitoring cadence set
- 12FOLLOWUPHepatology q3mo decompensated / q6mo compensated; transplant eval at MELD ≥15; addiction services for AUD; vaccinations (HAV/HBV/flu/PNA/COVID); palliative care for advanced (AASLD 2023 Biggins)advance: follow-up scheduled