Assuming you are asking what medical conditions would disqualify someone from becoming a pilot, here is a list of some of the conditions that would typically be grounds for disqualification:
-Any condition that impairs vision (including colorblindness)
-Any condition that impairs hearing
-Epilepsy
-Heart conditions
-Diabetes
-Mental health conditions (such as anxiety or depression)