When the liver fails, toxins from the gut, mainly ammonia, reach the brain. The patient becomes confused and the hands start to flap.
Hepatic encephalopathy is confusion caused by ammonia from gut bacteria that the liver can't clear. Signs include asterixis (liver flap), constructional apraxia (failing the 5-pointed star test) and triphasic slow waves on EEG. It is graded from I (irritability) to IV (coma). Triggers include infection, GI bleeding, constipation, sedatives, hypokalaemia and TIPSS. First-line treatment is lactulose, with rifaximin added as secondary prophylaxis.