Ariz. Rev. Stat. § 36-789
A. The department, or local health authority may isolate or quarantine a person or group of persons through a written directive without first obtaining a written order from the court if any delay in the isolation or quarantine of the person would pose an immediate and serious threat to the public health. The directive shall:
B. Within ten days after issuing the written directive, or when any delay in the isolation or quarantine of a person or group of persons will not pose an immediate and serious threat to the public health, the department or local health authority shall file a petition for a court order authorizing the initial or continued isolation or quarantine of a person or group of persons. The petition shall specify the following:
G. A court order authorizing isolation or quarantine may do so for a period not to exceed thirty days. The order must:
N. In any proceedings brought pursuant to this section, to promote the fair and efficient operation of justice and having given due regard to the rights of the affected persons, the protection of the public's health, the severity of the emergency and the availability of necessary witnesses and evidence, the court may order the consolidation of individual claims into groups of claims if: