In the US, the doctor can't out you because of the HIPPA privacy laws.
Sometimes, if I think that I've spilled too much, I will remind the doctor (or nurse) that everything that I said about crossdressing "is medically protected information and can't be released (even to my family without my permission.