# Example 1: Grade 2 (Lethargy and Asterixis present)
# Consciousness(2), Intellect(1), Behavior(1), Neuro(2)
hepatic_encephalopathy_grade(2, 1, 1, 2)
# Example 2: Grade 0 (Normal)
hepatic_encephalopathy_grade(0, 0, 0, 0)
Run the code above in your browser using DataLab