Are they contractions?

mo

I had cramp like pain on my lower stomach and it was like every 2-3 minutes and it lasted 20 seconds and I had the urge to go to the restroom and it was very loose (tmi) and now it all stopped could it be a sign? Is it something to worry about? I just got out of the hospital I was there for 3 days and I didn't have anything to eat