I was on ssdi for at least 15 years. It has now changed over to retirement. It was based on both medical and mental conditions. I was never concerned about it being related to how often I was or was not hospitalized.
I never had a review after I was approved either. For awhile I was going in and out of the hospital every 6 months and then I had a 6 year break before going back in. It never affected my ssdi.