I'm sorry. I experienced that in a past relationship too and it was rough on the soul.
I imagine your doctor was obviously projecting and was proud of the fact that you were dating a colleague, a fellow brother in medicine. And then it took a weird hit to his ego when you broke up and it made him think about all doctors in general, and what, well, "What was wrong with that guy could also be wrong with me. Those are things I do too. Hey! You're on my naughty list of patients from now on. Have a good day, Ma'am." Or not. I dunno what I'm talking about. I must be high.