South Korea will direct military and community doctors to hospitals where essential medical services have been disrupted by a mass walkout by trainee doctors.