Basic algorithm of self-medication was described. This algorithm was applied to self-medication of diarrhoea and constipation.