You can take safranin when you have diarrhea, which is mainly suitable for diarrhea caused by bacterial infections. The common infecting bacteria are Salmonella spp., Shigella spp. and Escherichia coli. Huanglianxin, also called berberine, is an alkaloid isolated from the Chinese medicine Huanglian, which is the main and effective component of Huanglianxin’s antibacterial activity. When diarrhea occurs, it is recommended to go to the hospital promptly to clarify the cause and apply medication under the guidance of a doctor. When it is clear that it is caused by a bacterial infection and the clinical symptoms are mild, with the presence of nausea, vomiting, bloating, abdominal pain and diarrhea, it can be treated with safranin. In more severe cases of diarrhea, dehydration or even shock may occur, requiring simultaneous combination of antibiotics and rehydration therapy. When taking safranin, it is important to note that it is generally not recommended for infants and children to take safranin to treat diarrhea because it is mostly caused by viral infections and their intestinal flora and digestive functions are not mature, so if they take safranin, it is likely to aggravate the symptoms of diarrhea and it is also difficult to achieve a therapeutic effect. For diarrhea caused by dysbiosis of intestinal flora and gastrointestinal dysfunction, microecological preparations and gastrointestinal mucosal protective antidiarrheal agents can be chosen, which are also relatively safer and can be taken by infants and pregnant women. After the symptoms of diarrhea appear, you should also pay attention to drinking water in small amounts and several times to prevent dehydration. For those with symptoms of dehydration such as dry mouth, dry lips, little urine or dark yellow urine, oral rehydration salts can be taken as prescribed by the doctor to avoid electrolyte disorders. In case of severe dehydration or shock, the patient should be sent to the hospital for intravenous rehydration as soon as possible. In addition, when diarrhea occurs, special attention should be paid to dietary management by eating small and frequent meals, and eating light, easily digestible semi-liquid or liquid foods, such as rice soup, noodles, and congee. You should also pay attention to rest, regular life, avoid getting cold, pay attention to dietary hygiene, and avoid eating spicy, stimulating, cold, and greasy foods as much as possible.