Autism and self harm.... thoughts please

Hi

I have autism and I started self harming when I was a child. I continued self harming into adulthood. My self harm was diagnosed as a mental illness and for years I was pumped with medication which made me a zombie. The self harm got worse. About 3 years ago, I went to see a psychologist who worked closely with me regarding my self harm. She concluded that I do not have a mental illness (in fact she was baffled as to why I had been diagnosed with a mental illness) she said clearly I have autism and that my self harm is a sensory issue regarding my autism. Has anyone experienced this?