Former U.S. president Jimmy Carter has left a Cleveland , Ohio hospital , where he had been treated for a stomach ailment .