The micro program “TCM prescription data collection” was developed by using Wechat developer tools, MYSQL database, Spring Boot and other technologies to realize the collection, processing and analysis of patients' vital signs information, clinical examination and TCM prescription data. The intelligent information annotation, extraction and structured data storage of user interface text data are realized by NLP technology. The similarity analysis and visualization of classical prescriptions for cardiovascular and cerebrovascular diseases were mainly realized. Through the calculation of word frequency, it explores the relationship between each keyword, and deeply excavates the relationship between source data and diseases, which lays a foundation for the research on the law of prescription and medication of traditional Chinese medicine.