Cardioversion . Cardioversion may be recommended for some people with atrial fibrillation. It involves giving the heart a controlled electric shock to try to restore a normal rhythm. Cardioversion is usually carried out in hospital so the heart can be carefully monitored.