Gastroenterology and Hepatology
GI bleeding, liver disease and pancreatitis
The Gastroenterology and Hepatology engine risk-stratifies gastrointestinal bleeding, acute pancreatitis and liver disease with the scores a gastroenterologist would use, shows the inputs behind each, and turns the result into timed actions: resuscitation, drugs before endoscopy, when to scope, which drugs to stop or adjust in liver disease, and when to involve a liver or transplant centre.
Who it is for
- Medical registrars and residents managing a bleed or decompensated cirrhosis overnight, before the endoscopist arrives
- Physicians reviewing deranged liver tests, including suspected drug-induced liver injury on anti-tuberculosis treatment
- Emergency and acute medicine doctors deciding on admission, level of care and the timing of specialist referral
What it does
Bleeding scored before and after endoscopy
Applies the Glasgow-Blatchford score before endoscopy and Rockall after it for upper bleeding, the Oakland score for lower bleeding, a restrictive transfusion threshold, anticoagulant reversal, and endoscopy timing by risk.
Suspected variceal bleeding
Adds a vasoactive drug and antibiotic prophylaxis before endoscopy, warns against over-transfusion, and names the rescue options of balloon tamponade and TIPS when bleeding cannot be controlled.
Pancreatitis by the revised Atlanta classification
Confirms the diagnosis by two of three criteria, looks for the cause, grades severity with an early score, and favours moderate goal-directed fluids, early feeding, no prophylactic antibiotics and ERCP only for cholangitis or persistent obstruction.
Liver tests read by pattern
Uses the R factor to separate hepatocellular, cholestatic and mixed injury, checks synthetic function, and screens for causes including hepatitis A to E, drugs, herbal and traditional remedies, alcohol, autoimmune, metabolic and vascular disease.
Cirrhosis and its complications
Calculates Child-Pugh and MELD-Na, recommends a diagnostic paracentesis whenever a patient with ascites is admitted, West Haven grading of encephalopathy with its precipitant, and kidney injury by the International Club of Ascites criteria.
Drugs in liver disease
Adjusts each drug for hepatic impairment and names those unsafe in cirrhosis. For liver injury on anti-tuberculosis treatment it gives the stopping thresholds, a safer interim regimen and sequential reintroduction.
How it works
- The clinician gives the presenting problem with its timeline, haemodynamics, the haemoglobin trend, liver tests, INR, albumin, platelets and any ascitic fluid results.
- The engine puts the time-critical problem first, such as active bleeding with shock, cholangitis or acute liver failure, with the immediate actions.
- It calculates the scores that apply, shows the inputs for each, and says which missing values would change the result.
- It sets out the management plan, with doses adjusted for liver and renal function, the timing of endoscopy or ERCP, and the criteria for specialist or transplant-centre referral.
- It closes with the traps for that presentation and a reference list read from PubMed at the time of the question.
What to include
- Age, sex and the presenting problem with its timeline
- Haemodynamics, haemoglobin trend and what was vomited or passed
- Liver tests, INR, albumin, platelets and ascitic fluid results
- Alcohol, NSAIDs, anticoagulants and known liver disease
Example cases
- 58M with cirrhosis, haematemesis, BP 92/58, heart rate 118, Hb 7.4 g/dL, INR 1.8. Resuscitation, drugs and timing of endoscopy?
- 44F, epigastric pain radiating to the back, lipase 2,400, urea 9 mmol/L, CRP 210 at 48 hours, gallstones on ultrasound. Severity and management?
- 36F, ALT 1,240, AST 980, bilirubin 4.1 mg/dL, INR 1.2, on anti-tuberculosis treatment for 6 weeks. Cause and what to do with her drugs?
What the report contains
- Immediate Safety Actions, when a red flag is present
- Conclusion and Recommendation
- Clinical Dashboard
- Differential Diagnosis
- Recommended Work-up, with the bleeding and liver scores and their inputs
- Management Plan, including the timing of endoscopy and the drugs to adjust or avoid
- Information Needed
- Key Evidence and References
Limits
- It cannot judge the response to resuscitation or see an endoscopy. Scores rest on the values entered, and a missing urea, INR or albumin changes the result, which the report points out.
- Decisions on endoscopic therapy, TIPS, ERCP and transplant referral belong to the gastroenterology, endoscopy and transplant teams, and local bleeding and liver protocols take precedence over the report.
- Drug labels attached to answers are US labels. Hepatic dose adjustments, available products and anti-tuberculosis regimens differ between countries, so national guidance, such as India's National TB Elimination Programme, should be checked.
Frequently asked questions
When should endoscopy be done in upper GI bleeding?
Most guidelines advise endoscopy within 24 hours of presentation once the patient is resuscitated, and sooner when bleeding may be variceal or the patient stays unstable. Patients with a very low Glasgow-Blatchford score may be managed as outpatients. The engine shows the score with its inputs and the timing that follows, and local protocols set the exact windows.
Which scores does it use in cirrhosis and liver failure?
Child-Pugh and MELD-Na for severity, West Haven for hepatic encephalopathy, the International Club of Ascites criteria for kidney injury, Maddrey's discriminant function or MELD with the Lille score in alcohol-related hepatitis, and the King's College criteria in acute liver failure. Each is shown with the values it used.
How is drug-induced liver injury on anti-tuberculosis treatment managed?
The engine compares the transaminases and bilirubin with the thresholds for stopping hepatotoxic drugs, suggests an interim regimen of less hepatotoxic drugs when treatment cannot safely pause, screens for viral hepatitis and other causes, and sets out sequential reintroduction once liver tests recover, following the guideline it names.
Does it replace a discussion with the gastroenterology team?
No. It prepares that discussion: the scores, the priorities, the information still missing and the evidence, laid out so the case can be presented quickly and clearly. Decisions on endoscopy, TIPS, ERCP and transplant referral remain with the specialist teams and the treating clinician.
Related articles
Clinical article
Acute variceal bleeding in cirrhosis: the first 12 hours, from resuscitation to TIPS
Acute variceal bleeding for hospital doctors: restrictive transfusion, vasoactive drugs, antibiotics, endoscopy within 12 hours and pre-emptive TIPS.
7 min read
Clinical article
Iron deficiency anaemia in adults: reading the iron studies and finding the cause
Confirming iron deficiency when inflammation confounds ferritin, deciding who needs endoscopy, and choosing between oral and intravenous iron.
7 min read
Clinical article
When to suspect acute porphyria, and other treatable rare diseases not to miss
Recognising an acute porphyria attack, testing urine porphobilinogen, starting treatment, and the clues to Wilson disease, hereditary angioedema and Fabry.
7 min read
Related engines
First-hour priorities for the undifferentiated patient
Shock, ventilation and organ support
The right drug, dose and duration