Valerie Harper Hospitalized in Maine

AP Images
Valerie Harper

The actress was taken to the hospital before Wednesday night's performance of 'Nice Work If You Can Get It,' which she is performing in, and is "resting comfortably," the Ogunquit Playhouse said in a statement.

Valerie Harper was hospitalized in Maine on Wednesday night and is "resting comfortably" now and will stay in the hospital "for observation for the time being," according to a statement from the Ogunquit Playhouse, where Harper is starring in a production of the musical Nice Work If You Can Get It.

The theater said the actress was taken to the hospital "as a precaution" before the show after she said she wasn't feeling well.

Harper plays Millicent Winter in the production and is scheduled to continue with this role through Aug. 15.

“The audiences and all of us here at the Playhouse are greatly enjoying our time with Valerie here in Ogunquit, and we are encouraged that she is feeling better,” the theater's executive artistic director Bradford T. Kenney said in a statement.

Harper has battled terminal brain cancer, which she said in 2013 was close to remission, and beat lung cancer.

Two days following her hospitalization, Harper thanked fans Friday evening on her Facebook page for their support and informed them that she was not in a coma:

My dear friends and fans!
As always, thank you for your amazing support. I am happy to report I am not, nor have I been, in a coma.
As anyone who has taken strong medication knows, it doesn’t always agree with you, even with me as this experience proves.
I am confronting these hurdles with my usual enthusiasm and love of life.
Much love, Valerie
But I must confess that the highlight of this ordeal came when I was escorted by two handsome young men and a pilot, in a medivac helicopter, as the full moon lit the sky. Talk about movie magic!!!

After announcing her improved prognosis, Harper, known for her roles on Mary Tyler Moore and Rhoda, was one of the contestants on Dancing With the Stars.

My dear friends and fans!As always, thank you for your amazing support. I am happy to report I am not, nor have I...

Posted by Valerie Harper on Friday, July 31, 2015

6:55 a.m., Aug. 1: Updated with Harper's Facebook statement.