She had been critically ill after May 7 surgery to replace a heart valve .