Thanks for posting your query.
With the available described symptoms, there appears to be possibility of acute bacterial gastroenteritis
or decreased gastrointestinal motility.
Bacterial gastroenteritis is associated with frequent urge for defecation but not getting anything and at time constipation
As your symptoms are short lasting, there appears to be high possibility of infection and decreased gastrointestinal motility.
Palpable mass could be fecoliths which gets disappeared after passing stools.
You should consult with internal medicine specialist/ gastroenterologist and should go for thorough check up.
You should also go for complete blood count
, MRI scan abdomen, thyroid profile, blood sugar, x ray abdomen and serum electrolytes.
Meanwhile, you should take proton pump
inhibitors along with prokinetics for relief of your symptoms.
You should also take plenty of water and perform increased physical activity.
Take soft diet
along with yogurt.
Dr. Mayank Bhargava