New to this and gastrointestinal issues

Good morning! I'm in the process of being diagnosed and my dr keeps asking me about "bathroom" issues. While I don't have incontinence or bladder issues, I do have a problem with my lower abdomen at times being very tender, sore, and bloated. It's almost a constipation like feeling but not constipated. Yes, the BM changes a bit, but I can still go. It usually starts suddenly and takes about 4 days to go away. In that time, I'm very uncomfortable, can't be intimate with my partner as it hurts too much and the bloating is so bad I have a hard time wearing any pants. I also for the last year have had periodic upper right abdominal pain under my ribs right at my gallbladder and liver. They've done tests and sometimes I have slightly elevated liver enzymes and other times I don't. Again lots of boating, painful to the touch and it's landed me in the hospital numerous times. In my early 20s I was diagnosed with IBS but the diet they put me on made everything worse. Could this all be ms related? Or something else? And help, advice or p personal related stories are greatly appreciated. I see my dr again tomorrow have my first neurology appt. Next week and I'm getting really nervous