When someone asks Commercial Pilot Licence (CPL) Can I pursue CPL if I have had past medical issues it's crucial to understand why the DGCA places such strong emphasis on medical fitness. First let's look at the core reasons:
Pilots are responsible for hundreds of lives passengers crew people on the ground each time they take off. Even a seemingly minor health issue (like fainting severe fatigue sudden loss of vision or hearing) can compromise decision-making reaction time and situational awareness. The DGCA thus requires stringent medical standards so that pilots can reliably perform in every phase of flight.
Flying isn't like being at rest high altitude, cabin pressure changes rapid shifts in workload long hours jet lag and emergencies all put heavy demands on body and mind. The DGCA's medical checks ensure pilots are capable of coping with those stresses day after day.
One of the big risks is a pilot suffering a medical event mid flight (e.g. heart attack seizure loss of consciousness). The DGCA looks not only at past history but current stability to reduce that risk. For example the blog article you linked says that what matters is your present health status and whether your condition has been resolved or controlled.
A CPL is a professional licence. The DGCA mandates that Class 1 medical certificates be obtained and renewed regularly. The blog explains that the Class 1 medical (for commercial pilots) involves detailed checks like ECG audiometry eye exams blood tests etc. Ensuring medical fitness is thus part of maintaining the integrity of the profession and of aviation safety regulations.
Yes according to the referenced article you can pursue a CPL even if you had past medical issues provided you meet the current DGCA Class 1 medical standards and your condition is fully resolved or well controlled. But the reason for the strict checks is exactly what we discussed above to ensure that now you are fit stable reliable and safe to fly.