Upon receipt of a certificate of the veterans' administration or such other agency of the United States that facilities are available for the care or treatment of any person heretofore ordered to receive care or treatment at any psychiatric hospital or other facility for care or treatment and that such person is eligible for care or treatment, the superintendent of the institution may cause the transfer of such person to the veterans' administration or other agency of the United States for care or treatment. Upon effecting any such transfer, the court having venue or proper officer thereof shall be notified thereof by the transferring agency. No person shall be transferred to the veterans' administration or other agency of the United States if he be confined pursuant to conviction of any felony or misdemeanor or if he has been acquitted of the charge solely on the ground of insanity, unless prior to transfer the court or other authority originally ordering care or treatment of such person shall enter an order for such transfer after appropriate motion and hearing. Any person transferred as provided in this section shall be deemed to be ordered to receive care or treatment by the veterans' administration or other agency of the United States pursuant to the original order for care or treatment.
K.S.A. 73-515c