The Ogunquit Playhouse said Friday that actress Valerie Harper, who fell ill Wednesday night, was “resting at an undisclosed location” and planning to return to her role as Millicent Winter in its production of the musical “Nice Work if You Can Get It.”

Bradford Kenney, the playhouse’s executive artistic director, said earlier media reports that Harper was in a coma were inaccurate.

“We’re taking it one day at a time,” he said in an interview Friday evening. “I have spoken to Valerie’s husband and am in touch with her family, and everyone is pretty upbeat. She is not and never was in a coma. She is strong and clear.”

Harper, 75, was taken to York Hospital about 9 p.m. Wednesday. Ogunquit Fire and Rescue responded to a call for an unconscious woman backstage. Harper regained consciousness before medical personnel arrived.

Harper was diagnosed with lung cancer in 2009. Four years later, she announced that she had a rare form of brain cancer.

Kenney said Harper wanted to do the show Wednesday night. Her character appears in Act II, and she fell ill late in Act I while waiting backstage. She agreed to go to the hospital, but had to be talked into it, Kenney said.

“Valerie wanted to get on stage, I can tell you that,” he said. “She came from Broadway. She wants to work and loves working. She is incredibly passionate about what she is doing at the playhouse, and wants to keep doing it.”

Harper is best known for her role as Rhoda Morgenstern on “The Mary Tyler Moore Show.” Later, she starred in “Rhoda,” a spinoff of the original series.

Heather Stinson is covering the role of Millicent Winter. Stinson, a member of the ensemble, played the role on the national tour, and stepped in Wednesday night. She will play the role until Harper returns, Kinney said.

The musical, which runs through Aug. 15, also features former TV star Sally Struthers.

When casting the show, Kenney spoke with Harper and her husband about her health, and director Larry Raben met with her in Los Angeles. She was enthusiastic about coming to Ogunquit, and never hesitated to make the commitment, Kenney said. “We had a long dialogue to make sure it was the right thing to do,” he said.