You can remember the meaning of 医生 with this easy mnemonic:
The doctor (医) ensured me that a beautiful healthy baby will be born (生).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.