Thanks for posting the qwery.
This seems like drug allergy
which might be due the medications you would have taken to contol diarrhoea
Firstly you stop the medications and replace with different group of medications after consulting a physician.
Treatment consists of oral anti allergic tablets like cetrizine
with topical soothing agents like calamine etc to treat the rash.