The State relies on waiver. We do not see how the respondent could have waived her right to be judged according to the allegations of the pleadings. Issues are formed by pleadings. Even in a routine civil case a party cannot recover after stating one cause of action in a complaint and presenting a different one by proof. This is not a routine civil case.
Custodial confinement is a serious deprivation of individual liberty.
The Mental Health Code reflects the public interest in not subjecting a person to unjustified confinement. 18 Ill. App. The two section 1-119 definitions of a person subject to involuntary commitment are separate and distinct. We are not willing to say proof of one is proof of another. It is not our function to correct the State's pleading errors.