Should go off the pitch for the same amount of time they were 'injured'. Referee then allows them back on after that.
In reality, of course, the ref has to KNOW that a player is injured. Bearing in mind Craig Pawson's attitude to Kayal's leg injury, courtesy of Barton deliberate stamp, he would...