Probably refers to the "Uncle Sam Doesn't Need You!" chapter in "Surely You're Joking, Mr. Feynman", in which Feynman is given a psychiatric evaluation as part of the medical exam for the draft. Anecdotally, he came away with an even lower opinion of psychiatry (rightly or wrongly) than he had when he went in.