In some cases, doctors recommend surgery to treat the underlying problem that led to heart failure.[17] Different procedures are available depending on the level of necessity and include coronary artery bypass surgery, heart valve repair or replacement, or heart transplantation.