This is a pun on "patiently". Patiently has the word "patient" in it. A patient is the person a doctor takes care of. Tom is waiting to see the doctor, so he is a patient who is waiting patiently.
' ' I ' m waiting to see the doctor , ' ' said Tom patiently .