Notwithstanding any law relating to this subject matter, the department of health may make arrangements for the care and treatment of any person within the State at any hospital, nursing home, or other residential facility in the State, either public or private, and bear all expenses of the hospitalization and treatment and any other necessary expenses in the same manner as though the person were staying at any facility for the care and treatment of persons with Hansen’s disease established under section 326-1. Any moneys at any time appropriated for the care of patients or maintenance of a facility established under section 326-1 may be used by the department to pay any hospital, nursing home, or other residential facility with which the department has made those arrangements. When those arrangements have been made the other provisions of this chapter relating to the examination, care, treatment, and discharge of patients shall apply to the institution and patient involved in the same manner as they apply to a facility established under section 326-1.