EE was installing the master pin in a set of rails on a truckhoe.This requires driving the pin in with a sledge hammer,as the employee was doing this,a small piece of metal chipped off the end of the pin,hitting the EE on the side of his right leg.EE was taken to the ER requirinf 4 stiches. All proper PPE was being used.