Hepatic and uremic enchephalobathy
Sudden onset of mental confusion and seizures during his admission due a adynamic ileus.