The associated underlying disease is used to classify hepatic encephalopathy: type A is related to acute liver injury, type B is related to portosystemic shunting, and type C is related to cirrhosis.