Hi.
Thank for your query.
Noted the history of stomach bug,
vomiting that got controlled in 12 hours,
diarrhea that continues and settling but no normal stools, now cramps, loss of appetite, wants to know whether the pain be associated with
constipation.
Since there is no history of constipation, on the contrary you have had diarrhea, the pain is associated most to the intestinal infection.
I would advise you the following in such a situation:
Get the stool and blood checked.
If there is an evidence of infection, get started on proper antibiotic,
metronidazole, pre and probiotics and antispasmodics.
Continue symptomatic treatment to maintain the proper hydration and electrolyte balance.