A client has a serious mental illness if the client has been diagnosed, prior to becoming an inmate of a public institution, by a psychiatrist, a licensed clinical psychologist or a certified non-medical examiner as suffering from dementia, schizophrenia, bipolar disorder, major depression or other affective disorder or psychotic mental disorder other than a substance abuse disorder and other than