Original: By midsummer, however, Chamberlain's health was deteriorating; in July he underwent an operation for stomach cancer.
Simplified: In July he had an operation on his stomach to treat cancer.