The pickup extends the show's tenure as the longest-running medical drama on American primetime TV.