Simplest way is usually the best way.
Play to the whistle.
Whistle blows, team with the ball when the whistle goes will take a free-kick that must go backwards, after the injury is dealt with.
If one team decides to kick the ball out of play, the opposing team gets a throw and continues play as...