Britain’s Queen Elizabeth II was back at Windsor Castle on Friday and in good spirits after revelations that she spent the night in a London hospital earlier this week.

Buckingham Palace said the 95-year-old British monarch went to the private King Edward VII’s Hospital in London on Wednesday for "preliminary investigations." She returned to her Windsor Castle home at lunchtime on Thursday and was understood to be back at her desk by afternoon, undertaking light duties.

The queen underwent the tests after she canceled a scheduled trip to mark 100 years since the creation of Northern Ireland, and the palace said she had "reluctantly" accepted medical advice to rest for a few days. The matter was not related to COVID-19.

The palace does not normally offer a running account of the monarch's health, citing her privacy. However, in this case it confirmed the queen’s hospital stay after The Sun newspaper reported the news.

Windsor Castle is reflected in the window of a shop selling royal souvenirs outside the castle in Windsor, England, Friday, Oct. 22, 2021. (AP Photo/Kirsty Wigglesworth)

Windsor Castle is reflected in the window of a shop selling royal souvenirs outside the castle in Windsor, England, Friday, Oct. 22, 2021. (AP Photo/Kirsty Wigglesworth) ((AP Photo/Kirsty Wigglesworth)

QUEEN ELIZABETH SPENDS NIGHT IN HOSPITAL AFTER GIVEN ADVICE TO REST, PALACE SAYS

On the whole, there is a rule of thumb is that if a senior member of the royal family undergoes a procedure or an operation, there is a medical bulletin, royal expert Robert Hardman told the BBC. But that doesn't apply to tests.

The attention paid to the development merely reflects the great affection the global community has for the monarch, said Hardman, author of "Queen of the World," which chronicles the monarch’s influence and stature around the globe.

"She hates people making a fuss of her in general but particularly to do with health,'' he told the BBC. "And I think there’s a concern to sort of maintain the dignity of the office, and I know that one reason why nothing was said about yesterday’s trip to hospital was that they sort of didn’t suddenly want sort of huge banks of cameras and 24-hour news setting up outside the hospital.''

The long-secretive monarchy faces struggles similar to those of other leaders and celebrities who face a voracious appetite for details on their personal lives and health status.

For comparison’s sake, the Vatican issued daily bulletins about Pope Francis’ 10-day hospital stay in July after he had a chunk of his colon removed. The Vatican had kept the hospitalization and Francis’ condition secret until the pope was already admitted and was about to go into surgery.

QUEEN ELIZABETH WON'T STEP DOWN, WILL INSTEAD ‘PACE HER ENGAGEMENTS,’ FORMER PRESS SECRETARY CLAIMS

But the Vatican has long been notoriously secretive about the health of popes, most significantly when it refused to even acknowledge the obvious signs that St. John Paul II suffered from Parkinson’s disease. The Vatican has cited the pope’s medical privacy in limiting information flows, but the vacuum of information often serves to fuel speculation about an eventual papal death and conclave to elect a successor.

There has been some disquiet this week about Elizabeth's health. Only days ago, she was seen using a walking stick at a Westminster Abbey service marking the centenary of the Royal British Legion, an armed forces charity. Though she had used a cane in 2003, it was after she underwent knee surgery.

Focus then turned to her hectic schedule, which has in recent days included audiences with diplomats, a reception at Windsor Castle for global business leaders, and attending the horse races at Ascot Racecourse.

In less than two weeks she is due to host world leaders at the United Nations climate summit in Glasgow, Scotland — a big engagement cited as one reason why she might want to rest up in advance.

A view from the Long Walk to Windsor Castle in Windsor, England, Friday, Oct. 22, 2021. (AP Photo/Kirsty Wigglesworth)

A view from the Long Walk to Windsor Castle in Windsor, England, Friday, Oct. 22, 2021. (AP Photo/Kirsty Wigglesworth) (AP Photo/Kirsty Wigglesworth)

CLICK HERE TO GET THE FOX NEWS APP

Though Elizabeth has enjoyed robust health throughout her life, she is Britain’s longest-lived and longest-reigning monarch. She is due to celebrate her Platinum Jubilee — 70 years on the throne — next year.

Elizabeth has ruled since 1952 and was widowed this year when Prince Philip died at age 99 in April. She has cut back on her workload in recent years but still keeps a busy schedule of royal duties.

She recently declined the honor of being named "Oldie of the Year" by The Oldie magazine. Her office said that "Her Majesty believes you are as old as you feel, as such The Queen does not believe she meets the relevant criteria to be able to accept."