Weight problems

Patient: I have constipation and my doctor said i probably have IBS i was wondering if this is the cause of not gaining weight because im pretty skinny and genetically my parents are big. is there any way to fix this and gain some weight.

Doctor: