Irritable Bowl Syndrome

Hello, I was wondering if anyone has been diagnosed with IBS and if so the process of how they test you for it? As well as what they do if you have it. Is there medicine you can take?