(a) In considering the petition, the court shall consider the testimony of the physicians who participated in the examination of the person and their reports accompanying the petition. After considering the testimony and reports, the court shall either:
(1) Reject the petition and order the continued hospitalization of the person; or
(2) Order the immediate release of the person.
(b) Any physician participating in the examination shall be a competent and compellable witness at any judicial proceeding held under this title.