IIRC it would have to be very controlled, to a very low recurrence rate. Not sure about meds.
But make sure you understand all of the potential trigger factors, including erroneous refractive correction (ie your glasses prescription is out of date). The goal for certification is to minimize recurrences.