able·ism /ˈābəˌlizəm/ noun A system of assigning value to people’s bodies and minds based on societally constructed ideas of normalcy, productivity, desirability, intelligence, excellence, and fitness. These constructed ideas are deeply rooted in eugenics, anti-Blackness, misogyny, colonialism, imperialism, and capitalism. This systemic oppression that leads to people and society determining people’s value based on their culture, age, language, appearance, religion, birth or living place, “health/wellness”, and/or their ability to satisfactorily re/produce, “excel” and “behave.” You do not have to be disabled to experience ableism.
This is also tied to healthism/health supremacy, recommended researching more about these topics to better understand how they impact everyone’s lives, disabled or not.
Ableism is so ingrained in our society that folks have trouble even recognizing it. OP is absolutely experiencing ableism, being dismissed and treated differently because of their health issues, recognized and intentional or not, is ableism.
Your example is a very legal perspective of ableism that barely scratches the surface of ableism and makes it difficult to address wider impacts. This is a similar thinking to racism only being legal segregation and the KKK, when it shows up in everyday life in far broader ways.