Hi.. The medical drugs that are given in congenital heart defects (hole in the heart since childhood is termed as congenital heart defect) are given to prevent complications.. And one of the complications that can arise from it, is pulmonary artery hypertension. To prevent this medical drugs such as sildenafil citrate (penigra) is used.. hence this would be the reason why the doctor has prescribed you this medication..