N.Y. Education Law § 511
9. a. Any law to the contrary notwithstanding, a member who satisfies the requirements of paragraph b of this subdivision and is otherwise eligible (disregarding any service requirement) to retire for disability pursuant to this section or section five hundred six or six hundred five of the retirement and social security law, as applicable, may elect to receive a benefit equal to the death benefit which would have been paid, had such member died on the member's last day on the payroll in full pay status, pursuant to section five hundred twelve of this article or section four hundred forty-eight, five hundred eight or six hundred six of the retirement and social security law, as applicable. b. To be eligible for the benefit provided in paragraph a of this subdivision, a member must have been determined by the system to have (i) a terminal illness resulting in a life expectancy of no more than twelve months, or (ii) a medical condition of a long continued and indefinite duration requiring extraordinary care or treatment regardless of life expectancy. c. The benefit provided in paragraph a of this subdivision shall be in lieu of any disability benefit to which the member may otherwise be entitled. A member who is otherwise eligible to retire for disability must elect the benefit provided in paragraph a of this subdivision no later than the thirtieth day following the day on which (i) the system notifies the member that the member has been retired for disability, or (ii) the member is first eligible to commence receiving a disability retirement benefit, whichever is later. Such election, when made, shall be irrevocable. d. Except as provided in this paragraph, a member electing the benefit provided in paragraph a of this subdivision shall for all purposes be deemed to have been retired for disability. Notwithstanding the foregoing, should a member who has elected the benefit provided in paragraph a of this subdivision thereafter be restored to active service and again become a member of the system,