Credit: Amy Graves/

Scott Foley is headed to the hospital.

The Felicity actor will join the cast of ABC's Grey's Anatomy in a major recurring role, ABC confirmed to

Foley, who last guest starred on another ABC show, Cougar Town, is set to play a potential love interest for Kim Raver's Dr. Teddy Altman.

And, lucky for him, playing a doctor won't be new ground: Foley has also guest starred on NBC's Scrubs.