The medical section on the UK CAA website has a flow chart showing the process to be followed. I think initially you would be declared unfit pending investigation and then a lot would depend on your personal circumstances as to what follow up actions would be required. If you are in the UK try and find a cardiologist used to dealing with the CAA.