AZ Rev Stat § 36-548 (2021)
2021 Arizona Revised Statutes|Title 36 - Public Health and Safety|§ 36-548 - Court-ordered treatment by the United States department of veterans affairs or other agency of the United States

36-548.  Court-ordered treatment by the United States department of veterans affairs or other agency of the United States A. Whenever,  in any proceeding under the laws of this state for the court-ordered treatment of a person alleged to be,  as a result of a mental disorder,  a danger to self or to others,  with a persistent or acute disability or a grave disability,  it is determined after such adjudication of the status of such person as may be required by law that hospitalization in a mental health treatment agency is necessary for treatment,  and it appears that the person is eligible for care or treatment by the United States department of veterans affairs or other agency of the United States,  the court,  on receipt of a certificate from the United States department of veterans affairs or other agency showing that facilities are available and that the person is eligible for care or treatment,  may order the person to undergo treatment by the United States department of veterans affairs or other agency of the United States. A person hospitalized in a United States department of veterans affairs facility or institution operated by another agency of the United States in accordance with the court's order for treatment shall be subject to the rules and regulations of the United States department of veterans affairs or other agency whether the facility is located within or without the state. The chief officer of the United States department of veterans affairs facility or other institution by another agency of the United States in which the person is hospitalized shall with respect to the person be vested with the same powers as the medical director of a mental health treatment agency with respect to the continuation of hospitalization or release. Jurisdiction is retained by the court that ordered the treatment of the patient or other superior court of the state at any time to inquire into the mental condition of the person and to determine the necessity for continuance of the person's hospitalization. B. The judgment or order of commitment by a court of competent jurisdiction of another state or of the District of Columbia committing a person to the United States department of veterans affairs or other agency of the United States for care or treatment shall have the same force and effect as to the committed person while in this state as in the jurisdiction where the court that entered the judgment or made the order is located,  and the courts of the committing state or of the District of Columbia shall be deemed to have retained jurisdiction of the person so committed for the purpose of inquiring into the mental condition of the person,  and of determining the necessity for continuance of the person's hospitalization as provided by subsection A of this section with respect to persons ordered to undergo treatment by the courts of this state. Consent is given to the application of the law of the committing state or District of Columbia with respect to the authority of the chief officer of any facility of the United States department of veterans affairs or any institution operated in this state by any other agency of the United States to retain custody of or transfer,  parole,  or discharge the committed person. C. On receipt of a certificate of the United States department of veterans affairs or other agency of the United States that facilities are available for the care or treatment of any person ordered to undergo treatment in a mental health treatment agency and that the person is eligible for care or treatment,  the medical director of the mental health treatment agency may cause the transfer of the person to a United States department of veterans affairs facility or institution operated by another agency of the United States for care or treatment. On effecting any such transfer,  the superior court that ordered treatment for the patient shall be notified by the transferring agency. A person shall not be transferred to a United States department of veterans affairs facility or institution operated by another agency of the United States if the person is confined pursuant to an order of a superior court under rules of criminal procedure,  unless before that transfer the superior court enters an order for the transfer. D. A person transferred as provided in this section is deemed to have been ordered to undergo treatment by the United States department of veterans affairs or other agency of the United States pursuant to the original court order for treatment. A person ordered to undergo treatment by the United States department of veterans affairs or transferred to the United States department of veterans affairs as provided in this section shall not be removed from the state for evaluation or treatment without specific informed consent of the patient or the person's legal guardian.