Hello
I really appreciate your concern
Looking at your description it seems to be treatable condition so you need not to worry.
I would like further information to help you better
Your age and relevant medical history
since how long you were constipated?
If I were your treating doctor I would have advised you to take anti acidity medicines like plantoprazole or
rabeprazole with antacids for stomach pain
You should take lots of fluids including
ORS and fruit juices to counter
dehydration and electrolytic imbalances
You may require a course of antibiotics under supervision of your doctor if it doesn't subside with symptomatic treatment.
Hope this answers your question
Please feel free to ask for more assistance I will be happy to help you
Best wishes