The procedure used to re-inflate Troy Barlow's collapsed lung is called a "needle chest decompression", and is taught in the U.S. Army Combat Lifesaver course. Although the entire procedure is not shown, the parts that do appear in the film appear to have been performed correctly.
more