Welcome to HEALTHCARE MAGIC..
I have gone through your query and can understand your concerns..
As per your complain the symptoms of severe constipation for 5 months along with right sided abdominal pain can be due to causes like like sudden changes in dietary habits, excess intake of antacids, irritable bowel syndrome
, Intestinal obstruction
,excess intake of dairy,eating disorders, lack of appropriate physical activity, side effects of medicines, Hypothyroidism
I would suggest you to consult a Gastroenterologist
and get evaluated and he can advise you get investigations done like Colonoscopy, Barium swallow, hormonal assy etc to confirm the cause..
Treatment of the cause can relieve the symptoms..
You can also be advised to take laxatives like Polyethylene glycol
[Miralax], castor oil also acts as a lubricant and laxative..
You can also be advised to take Psyllium husk or Lactulose..
Take more fibres in diet, plenty of water and do moderate workout..
You can also be advised medications like Lubiprostone or Linaclotide..
In case if still there is no improvement then saline and soap enemas and digital breaking of the hardened stools to ease in evacuate followed by laxatives can help..
Hope this information helps..
Thanks and regards.
Dr.Honey Nandwani Arora.