摘要
Objective:To obtain ancient traditional Chinese medicine(TCM)literatures relating to tumor and visual analysis by an automatic framework tool, in order to systematically sort out the development of ancient Chinese medicine oncology. Method:Based on the database platform of ancient TCM books,names of tumor-related diseases in ancient TCM books were retrieved by Selenium WebDriver, an automation framework tool under Python 3.8. Lxml's etree library was used to parse the data. Statistics was made for "classification", "authors", "completion time" and "summary" of relevant ancient books automatically. After the data was checked and processed, Tableau 2019.2 software was used for data visualization analysis. And ancient Chinese medicine literatures relating to tumor were consulted at the database manually,with the dynasties as the clue,and the symptoms,etiology,pathogenesis and prognosis as the emphasis,this paper explores the development process of TCM oncology. Result:A total of 774 349 bytes of text data of 1 128 entries in 242 ancient books were included automatically. According to the findings, there were simple classification and time distribution of tumor diseases in ancient TCM books in the pre-Qin period, with a simple view on the pathogenesis of tumor diseases. From the Han dynasty to the Tang dynasty, the number of relevant literature records and the types and disease names had gradually increased,which further enriched the cognition of tumor nature,signs,classification methods,differential diagnosis;in Song and Ming dynasties,the proportion of Chinese prescription books and surgery books had increased gradually,with the largest number of abdominal organ tumor names among all dynasties;from Qing dynasty to the Republic of China,literatures relating to tumor name and classification were the most improved,and then the TCM tumor syndrome differentiation and treatment system had been formed. Conclusion:It was found that TCM oncology originated in the pre-Qin dynasty,and was improved in the Han and Tang dynasties, mature in the Song and Ming dynasties and completed in the Qing dynasty and the Republic of China. The data visualization method with integrated automation framework and parsing tools is helpful to analyze the subdivision characteristics of ancient TCM literatures,which is convenient,efficient and innovative,in the expectation to provide a classic reference for contemporary TCM studies.