resident

a physician who joins the medical staff of a hospital as a salaried employee for a specified period to gain advanced training usually in a particular field, being in full-time attendance at the hospital and often living on the premises.

3.

a diplomatic representative, inferior in rank to an ambassador, residing at a foreign court.

4.

(formerly) a representative of the British governor general at a native court in India.