The GOV.UK website states that if you have a medical condition that could affect your driving you are required to tell DVLA.

The form required to notify the DVLA of a medical condition has been updated. The list of conditions are listed on the website. The H1 form is required to report congenital heart conditions.

Download the updated H1 form from the DVLA website.

Visit the driving and medical conditions page on the DVLA website.

Notice: The source of this information is from the DVLA website.