I want to add that this joke is shockingly progressive for 1985.
The unnamed protagonist transitions, and is immediately correctly gendered by the joke. The friends react warmly. And the real issue that the trans person faces is prejudice, and not medical.