According to what you said, defecation and abnormal defecation are probably caused by weakness of spleen and stomach in traditional Chinese medicine.
Suggestion:
It is suggested that patients can go to the Chinese medicine department of the hospital for treatment. According to the doctor's dialectical diagnosis, they can use Chinese medicine to strengthen the spleen and stomach. For example, they can add and subtract Ginseng Jianpi Pill or Shen Ling Baizhu Pill. They should pay attention to the diet rules in their lives, but they can't eat raw, cold and greasy food.