so apparently I have a heart problem?😤

So went to the doctor today and the receptionist said I need to get my flu jab because of a heat problem, and the doctor wouldn't prescribe me the pill a while ago because of a heart problem.
Had a ecg done last year and they said it was ok
I'm confused😔😔