I got smoked out of a company I helped found because I had health issues, even though I was still capable of doing my job. It’s illegal to fire people for health issues here, but it’s not like firing someone is the only way to get rid of them.
Everybody who’s telling you you can legally use these appointments is probably completely correct (depending on your jurisdiction). Whether the legality actually matters is another thing entirely.