(a) Upon receipt of a certificate of the United States Department of Veterans Affairs or other agency of the United States stating that facilities are available for the care or treatment of any person who is committed to any hospital for the mentally ill or other institution for the care or treatment of persons similarly afflicted and that the person is eligible for care or treatment, the director of the institution where the person is committed may cause the transfer of the person to the United States Department of Veterans Affairs or other agency of the United States for care or treatment.
(b) Upon effecting any transfer, the committing court or proper officer thereof shall be notified of the transfer by the transferring agency.
(c) No person shall be transferred to the United States Department of Veterans Affairs or other agency of the United States if he or she is confined pursuant to conviction of any felony or misdemeanor or if he or she has been acquitted of the charge solely on the grounds of insanity unless before transfer the court or other authority originally committing the person shall enter an order for the transfer after appropriate motion and hearing.
(d) Any person transferred as provided in this section shall be deemed to be committed to the United States Department of Veterans Affairs or other agency of the United States pursuant to the original commitment.