The hospital will run some tests to see what is causing the stomach pains. They might put you on some antibiotics and if it's more serious then they might admit you to the hospital.
But most likely if the stomach pain isn't serious then they'll just give you some medicine after doing the test and send you home.