On paper, yeah.
But, in a literal life and death situation, they could have had a literal immediate hearing, and/or issued a TRO ordering her back to the hospital immediately.
Seems to me they knew how to move their keesters double-quick during the election fiasco.