(1) If a person is certified under the provisions of this article and is eligible for hospital care or treatment by an agency of the United States and if a certificate of notification from said agency, showing that facilities are available and that the person is eligible for care or treatment therein, is received, the court may order him or her to be placed in the custody of the agency for hospitalization. When any person is admitted pursuant to an order of court to any hospital or institution operated by any agency of the United States within or without this state, the person shall be subject to the rules and regulations of the agency. The chief officer of any hospital or institution operated by an agency and in which the person is so hospitalized shall, with respect to the person, be vested with the same powers as the chief officer of the Colorado mental health institute at Pueblo with respect to detention, custody, transfer, conditional release, or discharge of patients. Jurisdiction shall be retained in the appropriate courts of this state to inquire into the mental condition of persons so hospitalized and to determine the necessity for continuance of their hospitalization.
(2) An order of a court of competent jurisdiction of another state, territory, or the District of Columbia, authorizing hospitalization of a person to any agency of the United States, shall have the same effect as to said person while in this state as in the jurisdiction in which the court entering the order is situated; the courts of the state or district issuing the order shall be deemed to have retained jurisdiction of the person so hospitalized for the purpose of inquiring into his or her mental condition and of determining the necessity for continuance of his or her hospitalization. Consent is hereby given to the application of the law of the state or district in which the court issuing the order for hospitalization is located, with respect to the authority of the chief officer of any hospital or institution operated in this state by any agency of the United States to retain custody, to transfer, to conditionally release, or to discharge the person hospitalized.