hello you have been very brief in your question so makes it a bit more complicated to answer.
did you both argue?
was he married or in another relationship?
there are loads of questions one could ask but if the answer to first two were no then i feel he just wanted to move on.
doctors are very on demand and maybe he felt he could not combine late hours or early starts in a relationship.
im not making excuses for him as 3 months is along time but only mention sex and him breaking up with you . i shall be willing to advise you further.
im always here to give support as you abviously distressed and upset about this and my advise to you is move its his loss.
if he thought so much of you he would never have left. feel free to post again we are here to support you.
don,t put your life on hold because he has moved on. get out there and enjoy yourself.