If you are a driver involved in a pedestrian accident, you should do the following: pull your car over to a safe place and turn off your vehicle, determine if the pedestrian needs medical attention, call the police to report the accident, take photographs of the accident, exchange information with the people at the scene, and report the accident to your insurance company.
If you are a pedestrian involved in an accident, you should do the following: call for medical attention if the driver or other people at the scene have not yet, immediately take photos of your injuries and of the accident scene, exchange information with the people at the scene, and consider contacting an attorney.