Employee's finger was pinched between the door of a loci and the rib. After EE called for the train to move EE reached up to close the loci door and finger was pinched against rib. EE was seen at site medic and eventually transported to a clinic where EE had surgery to treat injuries to two middle fingers.