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 GOV.UK website. The H1 form is required to report congenital heart conditions.
Notice: The source of this information is from the DVLA website.