Uh, I guess I should say ask your doctor like everyone else...but if you’re like me...you don’t like going to the doctor...so if you do go diving without asking a doctor first, take it easy and stay shallow the first several dives and make sure to ALWAYS dive with a buddy.
Think about this also...with your body hurting and all bruised up, will you be able to carry the gear? Does it hurt to breath in deeply? Can you stretch and move like you could before the accident? If it hurts to breath in deep and you have limited movement... definitely don’t dive yet.
But like everyone else said, ask you doctor. OR better yet, ask your doctor to go diving with you so he/she can monitor you.