Cardioversion is a procedure in which an electric shock is used to convert an abnormal heart rhythm back to normal. The procedure is performed in the hospital with the patient fully sedated. Afterwards, medications are used to keep the heart rhythm normal.