In the event of the accident, you should ideally do some things right then and there. Firstly, you would have to contact law enforcement and be sure to have the police note down the collision details.
When possible, photograph the collision spot, vehicular damage, the injuries that you sustained, and so forth. Besides, you would also wish to obtain details from possible parties who witnessed the incident.
The most significant thing would be to seek immediate medical attention in the event of being severely injured. Albeit you feel that those injuries are not serious, visit a medical professional just to confirm that everything is okay with you.
When you are free after receiving the necessary treatment, you would also wish to get in touch with an attorney who handles DoorDash vehicle collisions.