Anyway, it seems that that was not a factor here as the FO in question apparently held a valid medical and his next medical examination was due in june.
And where I work several colleagues have a history of major depressive episodes lasting up to two years and they are somehow certified fit to fly. Others have a condition that it is claimed increases the chances of suicide nine fold and they are able to hold a first class medical.