CT scan uses an isotope in your blood so it will not be an issue. MRI is a different matter because it uses high power magnets and these make metallic objects in the body get very hot. However, with MRI if you make the technicians aware, they can reduce the intensity.
As far as I know you will not have any problem with your heart.
Jesus