Pilots do have periodical health screenings as per the ICAO norms.

This is rare, and thats why they always have a co pilot.