While driving loader, operator ran over a big stone that caused operator to be jolted inside the cab. While steadying self, operator placed left hand on the frame of the cab (where door hinges are). The door swung closed and pinned operator's thumb. Thumb was fractured, received 2 stitches, and given prescription antibiotics.