The Lost grad has exited CBS’ medical drama pilot for creative reasons, TVLine has learned exclusively. The role will be recast.

Based on the festival award-winning Ryan McGarry documentary, Code Black is set in the busiest and most notorious ER in the nation — L.A. County Hospital — where the extraordinary staff confronts a broken system in order to protect their ideals and the patients who need them the most.

Grace was slated to play ER residency director Leanne, described as “a force of nature and a force to be reckoned with.”

Previously announced cast members include Marcia Gay Harden and Melanie Kannokada.

Maggie Grace is plotting a return to broadcast TV in a CBS medical drama. The Lost and Taken actress has been cast in Code Black, CBS’ pilot set in one of the busiest ERs in the nation.

Grace plays the ER’s residency director, “a force of nature and a force to be reckoned with.” She joins the recently cast Marcia Gay Harden in the project.

Code Black is described as a medical drama set in the “most notorious ER in the nation where the extraordinary staff struggles in the face of a broken system to protect their ideals and the patients who need them the most.”

“Matthew Cooke & I are so excited to share our engagement with you guys! I could not feel more grateful to share my life with this incredible man.” the 31-year-old Taken actress captioned the photo on her Instagram.

“We’re all fancied up for @globalgreen tonight so we thought – let’s ask our friend to take a fancy photo! Since we’ve got the photo thing covered should we just elope?!” she captioned another pic.