A heart shock may restore the heart’s rhythm and is a potential treatment for atrial fibrillation (AFib). Doctors also refer to heart shock as electrical cardioversion. In AFib, a person has an ...