Supreme Court Justice Ruth Bader Ginsburg fractured three ribs during a fall in her office Wednesday night, the court said.

According to a statement from the court, Ginsburg returned home Wednesday night but went to the hospital early Thursday after “experiencing discomfort overnight.” She called court police to take her there before dawn. Tests showed that she fractured three ribs on her left side, the statement said.

Ginsburg, 85, was admitted to George Washington University Hospital early this morning for observation and treatment. Her hospitalization comes on the morning of the formal investiture of the court’s newest justice, Brett M. Kavanaugh. President Trump is among the dignitaries planning to attend the ceremony at the court.

In 2012, Ginsburg disclosed to a reporter that she had recently broken two ribs in a fall but did not take time off because of the court’s heavy workload at the time.

She has persevered on the bench despite several health issues, including scares from both colon and pancreatic cancer and a heart procedure in which she received a stent in her right coronary artery.

During a speaking appearance in New York in July, Ginsburg said she expected to serve on the court for at least five more years.

Even in her advancing years, Ginsburg has a widely publicized regular exercise routine, known as the “RBG workout,” which includes push-ups, planks and arm curls. Asked about her health in the recent documentary “RBG,” the Supreme Court justice said she’s proud of keeping herself in shape to do her job.

Asked last year if she was contemplating retirement, she said, “As long as I can do the job full steam, I will do it.” She has also reportedly hired law clerks through 2020, sending the message that she plans on sticking around.

Ginsburg is already five years past the average retirement age of the past 11 justices and is three years older than the recently retired justice Anthony M. Kennedy.

As a presidential candidate, Trump responded to her public criticism of him by calling on her to resign, tweeting that her “mind is shot.”

Samantha Schmidt and Robert Barnes contributed to this report.

‘It has affected my mental health’: George Mason students protest Brett Kavanaugh teaching a summer law course

Survivors of sexual assault have mobilized to demand that he be terminated

Before Ruth Bader Ginsburg, there was Sandra Day O’Connor. The first female Supreme Court justice was an ‘unfeminist feminist.’

A new biography reveals how O’Connor, a moderate Republican, didn’t always vote the way people expected her to

At least 20 lawsuits making their way through the courts could alter abortion law. Here’s how.

Both supporters and opponents say this is the most fraught time for Roe v. Wade since the 1990s