An accidental touch by a dog is usually fine if there are no scratches, bites, or skin wounds. Specific should also be based on whether there is skin damage to decide.
1. the case of nothing: if the body is healthy, no skin wounds, just touched by the dog’s body, did not cause other skin injuries, generally fine do not need to worry too much.
2. Something is wrong: If the dog’s claws or teeth touch, resulting in skin wounds skin ulcers, or body skin wounds, contact with the dog’s saliva, etc., it is possible to be infected with rabies, you should go to the hospital as soon as possible to inject rabies vaccine.
So by the dog accidentally touched, whether something, and can not be generalized, there are skin injuries, should promptly seek medical attention, as soon as possible injection of vaccine to prevent rabies.