So let's say this happened 50 years ago, 1968. Let's say her doctor was 50 years old and began training at 20. That means he was educated in ~around 1938. Now let's go further and say that his professors were around 50 years old. That would mean that the people instructing her doctor were using knowledge from the beginning of the 20th century, say around 1908.
It used to be, at one time, common for doctors to masturbate women into orgasm as a medical treatment. It was primarily used to 'cure' women who were depressed or "hysterical", as it is called. This is real historical thing. If her doctor orgasmed her, he was likely doing it as a real, approved, commonly administered medical treatment for his time. That's just what doctors did back then. Whether he was getting a stiffy or not while doing it, well...that just depends on the guy.