on October 1, 1987 —
(I)#
was an eye specialty hospital or an eye and ear specialty hospital, or
(II)#
was operated as an eye or eye and ear unit (as defined in subparagraph (B)) of a general acute care hospital which, on the date of the application described in clause (i), operates less than 20 percent of the beds that the hospital operated on October 1, 1987 , and has sold or otherwise disposed of a substantial portion of the hospital’s other acute care operations,