Cardioversion is a medical procedure used to restore a normal heart rhythm in children who have certain types of abnormal heart rhythms, known as arrhythmias. This can be done using electrical shocks (electrical cardioversion) or with medications (pharmacologic cardioversion).