The government proposes to extend the compulsory public service for doctors to five or 10 years from the current three to overcome the annual shortage of doctors in its hospitals, Deputy Minister in the Prime Minister's Department T Murugiah said today.