If you are in serious pain and completely blocked, you need to go to the ER. It could pass on its own, but sometimes it can become a surgical emergency. If the pain is not that bad, you can try riding it out, stop all solid foods, and move around a lot.
Jan