Contract doctors to get two-year extension, paid study leave