Who says you have to tell them you are leaving the country for medical reasons? Going to the Ritz in Cancun was a Vacation!
They’ll have access to your whole medical record. They control your passport.
Think they’ll allow you to leave if you’ve been diagnosed with stage 4 cancer?
Or a heart valve problem?