N.Y. Public Health Law § 2124
Nothing contained in this article shall be construed to prohibit any person committed to any institution pursuant to its provisions from appealing to any court having jurisdiction, for a review of the evidence on which commitment was made.