Updated

A judge says the mother of a 13-year-old girl who was declared brain dead after having tonsil surgery can remove the child from a Northern California hospital as long as she assumes full responsibility for the move.

Jahi McMath has been on a ventilator for nearly a month, and her family has been fighting with medical officials to have her transferred out of Children's Hospital Oakland.

Alameda County Superior Court Judge Evelio Grillo said Friday that Nailah Winkfield can move her daughter under a deal with the hospital that holds the mother accountable for consequences that could include Jahi going into cardiac arrest.

Also, Grillo denied the family's motion to force the hospital to insert breathing and feeding tubes, which the girl would need for long-term care at another facility.