Ariz. Rev. Stat. § 36-728
A. If the court finds by clear and convincing evidence that a person is an afflicted person and presents a substantial danger to another person or to the community, the court shall order the afflicted person to do any one or more of the following pursuant to a written treatment plan developed or submitted by the tuberculosis control officer or the local health officer and approved by the court:
G. On a motion by the director of the afflicted person's assigned institution or program or on a motion by the petitioner, the tuberculosis control officer or the local health officer, the court after a hearing may amend or alter its original order if it determines that any of the following is true: