I don't know if the doctors were the ones who told my parents (my memory of the story is a little rusty-- I'm tempted to ask my mom, but I'm sort of avoiding gender-talk with her at the moment), but I know my parents were all ready with a boy name for me because they were convinced I was going to be male. They were a bit surprised to find that I was female. x3
I had a running joke when I was younger about my gender. It was something to the effect of, "Well, I was actually supposed to be a boy, but when I was born I ended up in a girl body, so now I'm both!" My parents had also thought my brother was going to be a girl, and he has always been a rather gender-gifted kid, so I had a variation of this joke that involved our bodies getting switched before we were born. (Of course, this used kid-logic. And kid-logic allows you not only to switch bodies, but to switch bodies with someone who won't even exist for another three years. Yup.)
Funny how self-aware kids are without even realizing it, sometimes.