Four teenage boys were on bail when they allegedly bashed and robbed a junior doctor outside Sunshine Hospital last month.

The hospital has ramped up security after two alleged attacks on doctors and has started a shuttle bus service to transport staff to the train station after 5pm each day.

Two young doctors were bashed and robbed in separate incidents after finishing work at Sunshine Hospital in the same week last month.

Two doctors were assaulted within days of each other after leaving work at Sunshine Hospital. Credit:Fairfax Media

Four 17-year-old boys have been charged over the alleged attack on November 18, in which a geriatric registrar was attacked from behind while walking to his car just after 5pm.