A
ALF / ALF Diagnosis Calculator
For attending hepatologists & ICU doctors

Diagnose
acute liver failure,
without losing
the thread.

A configurable, evidence-based calculator that walks through ALF confirmation, King's College criteria, and Wilson disease evaluation — and tells you exactly which rule fired, when, and why.

CASE · P-20260512-001824 Confirmed

King's College — Non-Acetaminophen

Combinator: AT_LEAST_N · N=3 · Matched: 4 of 6
  • Age extremesage = 52
  • Jaundice → enceph. interval11 days > 7
  • INR3.8 > 3.5
  • Drug-inducednone recorded ·
  • Total bilirubin14.2 mg/dL ·
Recommendation Consider transplantation
King's College Criteria · Wilson Disease Workup · Configurable Thresholds · Bilingual EN / AR · Audited Diagnoses · Transplant Referral · King's College Criteria · Wilson Disease Workup · Configurable Thresholds · Bilingual EN / AR · Audited Diagnoses · Transplant Referral ·
§01 · Diagnostic Modules

Four modules,
one workflow.

Each module runs an evidence-based rule set against the patient's history, examination, and laboratory findings — with full traceability of which criteria contributed to the verdict.

M.01

Acute Liver Failure

Confirms ALF when all three foundational criteria are met. Duration accepts days or weeks; the rule engine normalizes to canonical days before evaluation.

· duration ≤ 26 weeks
· INR ≥ 1.5
· encephalopathy present
M.02

King's — Acetaminophen

Nested OR/AND logic for paracetamol-induced ALF. Triggers on arterial pH alone, or on the three-condition INR/creatinine/encephalopathy bundle.

· pH < 7.3 — or —
· INR > 6.5 ∧ Cr > 3.4
· encephalopathy III–IV
M.03

King's — Non-Acetaminophen

Any three of six independent indicators trigger the criteria — irrespective of encephalopathy grade. Drug history and viral panel feed directly.

· age <10 or >40
· jaundice→enceph > 7d · INR > 3.5
· non-A/non-B · drug-induced · bili > 17
M.04

Wilson Disease

Combines biochemistry, urinary copper, and slit-lamp findings. Unit-aware: switch between mg/dL and µmol/L without breaking historical records.

· AST/ALT > 2.2 · ALP/bili < 4
· ceruloplasmin < 20 · Cu₂₄ₕ > 40
· Kayser-Fleischer rings
§02 · Workflow

From admission to
referral decision.

A guided wizard captures patient data step-by-step. Both registered doctors and unauthenticated guest entries are persisted and audited — every submission gets a permanent patient number.

i.

Capture

Patient history, symptoms, drug exposure, family history. Bilingual forms, RTL where it matters.

ii.

Investigate

Labs, viral panels, autoimmune markers, Wilson workup. Unit-aware fields prevent silent conversion errors.

iii.

Compute

The rule engine evaluates all four modules. Per-rule trace shows exactly why each verdict was reached.

iv.

Refer

Doctor records the transfer decision and selects a transplant center. The PDF is generated and archived.

§03 · Rule Engine

Clinical logic
as data, not code.

Diagnostic thresholds aren't hardcoded. They live in a versioned rule store managed from the admin dashboard — so when guidelines evolve, no deployment is needed. Old diagnoses still reference the rule version that produced them.

rule_set: KCC_NonAcetaminophen / v.4 last edited: 2026-05-12 · Dr. M.A.
combinator=AT_LEAST_Nn=3

agein[ <10 , >40 ]years
jaundice_to_encephalopathy_days>7days
inr>3.5
etiology_non_a_non_b=truecomposite
drug_induced_any=true
total_bilirubin>17mg/dL · admin-configurable

// admin may add, disable, or version any rule — historical runs remain reproducible
§04 · Bilingual

English-first.
Arabic-native.

Every screen, every PDF, every error message is translated. Arabic UI is full RTL with native typography — not just a mirrored English layout.

EN · LTR

Wilson Disease — investigation panel

Serum Ceruloplasmin< 20 mg/dL
24-hr Urinary Copper> 40 µg/24h
AST / ALT ratio> 2.2
Kayser-Fleischer ringspresent
AR · RTL

مرض ويلسون — قائمة الفحوصات

سيرولوبلازمين المصل< 20 mg/dL
النحاس في البول 24 ساعة> 40 µg/24h
نسبة AST / ALT> 2.2
حلقات كايزر-فلايشرموجودة
Decision support that respects the clinician — every verdict is traced back to its constituent rules, and every threshold can be revised without rewriting the application.
— Design brief, v3.3

Built for hospitals.
Configured by clinicians.

A clinical decision-support aid — not a replacement for professional judgment. Every diagnosis must be confirmed by a qualified doctor.