The Elliott Gould film character that was played on television by Wayne Rogers was Captain John Francis Xavier "Trapper John" McIntyre. He was one of the main characters in the M*A*S*H TV series (1972 - 1983). During the first three seasons, he was a central character of the series. His nickname (Trapper John) came from an incident in which he was caught having sex with a woman in the lavatory aboard a passenger train. When the woman was asked about the event, she claimed in her defense that "he trapped me!"

In both the 1970 film and the TV series, the overall story is about events surrounding the staff of a Korean War field hospital. The focus is on the use of humor and high jinks by the military personnel to keep their sanity in the face of the horror of war. In the film, it was directed by Robert Altman and had a clever screenplay that was written by Richard Hornberger and Ring Lardner, Jr.

More Info: en.wikipedia.org