With appropriate surveillance of potassium and creatinine , the use of spironolactone was associated with less hypokalemia and improved survival in patients with severe heart failure even in the setting of moderate hyperkalemia .