I don't know for sure what your problem is but you need to get some blood work done such as a complete blood count, BUN, creatinine and chemistry panel and cardiac and liver
enzymes and scans done such as a gallbladder, liver
,kidney ultrasound . I don't think the IBS has anything to do with the other symptoms. Pain from the kidneys can be deferred to the front such as under your ribs. Congestive heart failure is usually when your are older but I'm not sure if it is always the case.