If an application for a writ of habeas corpus is made by, or on behalf of, a person in a mental health crisis or who is alleged to be a person in a mental health crisis before the initial hearing on a petition for the involuntary court-ordered admission of the person to a mental health facility, the court must conduct a hearing on the application as soon as practicable.
NRS 433A.215