He was beside himself when he left her, which he did with the primary intention of telegraphing to London for half a dozen leading physicians. 
He was beside himself when he left her, meaning to telegraph to London for half a dozen leading physicians. 