Ariz. Rev. Stat. § 36-546
A. In addition to the procedure for applying for a writ of habeas corpus, as provided in title 13, chapter 38, article 26, a patient receiving court-ordered treatment or any person acting on the patient's behalf may request the patient's release pursuant to the following:
1. A request in writing may be presented to any member of the treatment staff of the agency providing the patient's treatment. The request may be made on a prescribed form that shall be prepared by the facility and made available for use by any person. The completed form shall identify:
H. The patient's attorney shall fulfill all of the following minimal duties: