A judge ruled Friday afternoon that officials at Children's Hospital in Oakland, Calif.  must keep a brain-dead 13-year-old girl on a ventilator through the weekend until a court-appointed doctor can assess whether the girl has any chance of recovering.

The family of Jahi McMath, who suffered cardiac arrest after her Dec. 9 tonsil surgery and was declared brain-dead Dec. 12, had asked the judge to order the hospital to keep the girl on a ventilator, connect her to a feeding tube, allow an independent doctor to examine the girl and hand over the girl's complete medical record.

Judge Evelio Grillo granted a temporary restraining order ordering the hospital to keep the girl on the ventilator through Monday, saying he would appoint a neurologist from UC San Francisco at that time to examine the girl and perform tests. Both Jahi's family and hospital officials have agreed on a list of five neurologists who may be called upon.

The hospital has been “stonewalling” the family, attorney Christopher Dolan said Friday morning while submitting his request for the order.

“We're hoping we can get a restraining order to get the hospital to back off. We want all medical treatment to be advanced rather than taken back,” Dolan said. “The mother has legal rights to control her daughter's medical care. But the hospital is saying she's already dead, so they are saying the parents have no control over her care.”

The legal move came after the family said that hospital officials told them in a private meeting Thursday evening that the girl had to be taken off her ventilator “quickly.”

“They said, 'What don't you understand?' She is dead, dead, dead,'” Omari Sealey, Jahi's uncle, told reporters on Thursday.

Hospital officials have refused to directly address most aspects of Jahi's care and treatment, citing state and federal medical privacy laws. The hospital released a statement late Thursday asking the family to allow them to openly discuss Jahi's case.

“We implore the family to allow the hospital to openly discuss what has occurred and to give us the necessary legal permission — which it has been withholding — that would bring clarity, and we believe, some measure of closure and deeper understanding of this medical case,” Chief of Pediatrics David Durand said in the statement.

On Friday, Dolan said that since he has been retained, the hospital has not asked his clients for permission to speak to the media about Jahi's case.

“If they asked the family to speak to the media prior to me being hired — that I don't know,” Dolan said. “But since they've had a lawyer they never asked my clients ... and we've been in closed-door meetings with Durand and other hospital officials.”

He said if the family did forbid the hospital from publicly addressing Jahi's case, it's because his clients want the hospital to “tell them what happened before they tell the media.”

“Regarding the issue of life support and end-of-life care,” Dolan said, “we are willing to have an open and public dialogue and will give them (hospital officials) permission to talk about why they're doing what they are doing as long as we — the family, the hospital and anybody from the press — are all in the same room.”

Jahi had tonsil surgery to help her with sleep apnea, weight gain and other health problems and began bleeding from her nose and mouth and experienced cardiac arrest later that night.

The family, however, is hoping for “divine intervention” and is asking the world to pray for the girl.

Staff writers David DeBolt and Doug Oakley contributed to this story.