To mine the compatibility rules of the prescriptions for treating stasis and toxin syndromes based on the Chinese Prescription Database.Methods:The prescriptions for treating stasis and toxin syndromes were retrieved from Chinese Prescription Database with relevant keywords.The frequency statistics was employed to identify the high-frequency herbs,and the association rules analysis was conducted to analyze the compatibility relationship between herbs.This study mined the compatibility rules for treating stasis and toxin syndromes from the perspectives of efficacy,indications,and herb pairs.Results:A total of 176 prescriptions were included,involving 331 herbs.Among the high-frequency herbs,those for activating blood to resolve stasis,tonifying deficiency,and clearing heat accounted for a high proportion.According to the association rules,there were 32 core herb combinations in 123 prescriptions for oral administration and 17 core herb combinations in 53 prescriptions for external application.The common compatibility rules included qi-regulating herbs+blood-activating and stasis-resolving herbs,resuscitation-inducing herbs+blood-activating and stasis-resolving herbs+liver-calming and wind-extinguishing medicine,heat-clearing herbs+blood-activating and stasis-resolving herbs+insecticidal and itching-relieving herbs,and insecticidal and itching-relieving herbs+blood-activating and stasis-resolving herbs+dampness-resolving herbs.Conclusion:The prescriptions for treating stasis and toxin syndromes in Chinese Prescription Database are mainly composed of the herbs with the functions of clearing heat,removing toxin,and cooling blood,together with those with the functions of activating blood,dredging meridians,relieving pain,regulating qi movement,extinguishing wind,and drying dampness.The findings provide a theoretical basis for the clinical application of the therapy of activating blood and removing toxin.