To control the quality of extracting of traditional Chinese medicine (TCM) decoction, and to ensure the safety and effectiveness of TCM. The research on the TCM prescription compatibility and boiling specification was conducted based on digital system. A new function module was add to the existing digital system of TCM decoction. A standard database for rational drug use was innovatively set up, and the prescription information and coercion of boiling procedure were put into the digital system. The corresponding algorithm of warning was investigated, the compiled software code was written, and hospital information system(HIS) hospital data interface was completed. The problem of medicine decoction of rational use was being solved in digital way in hospital. This would improve the competitiveness of Chinese medicine hospitals. Firthermore, it could play a strong demonstration for other studies in rational use of drug.