Current guidelines recommend unfractionated heparin ( UFH ) or low-molecular-weight heparin plus an oral anticoagulant for the prevention of thromboembolism in patients undergoing electric cardioversion of atrial fibrillation ( AF ) .