KuDieZi (KDZ) injection is prepared by extracting and processing Ixeris sonchifolia [Ixeris sonchifolia Hance] belonging to Lactuca genus of the Asteraceae family. KDZ injection is a single-herb preparation in which components are analysed by liquid chromatographymass spectrometry. However, the chemical compositions of this preparation are complex and diverse. Hence, data processing is complicated and time consuming; furthermore, data processing can not provide a systematic, accurate and repeatable method to rapidly 10 classify and identify chemical constituents of the injection. In our study, the main components, particularly flavonoids, organic acids, amino acids and nucleosides in KDZ injection, were rapidly classified and identified by data processing technology based on UPLC-Q-TOF/MS. After we reviewed lots of studies and collected the fragments' information, then compared with the mass spectrometric analyses in standards, the rules of diagnostic fragments (DFs) and neutral losses (NLs) of the four substances were established and summarised. A rapid classification and identification method of the chemical compositions of KDZ injection was then constructed using 15 DF filter (DFF) and NL filter (NLF). This method was applied to analyse the KDZ injection. A total of 31 chemical components, which included 8 flavonoids, 13 organic acids, 6 amino acids and 4 nucleosides, were obtained. DFF and NLF were used to rapidly classify and identify chemical substances in KDZ fingerprint. With this method, we effectively solved the technical difficulties in fingerprint resolution caused by complex components and low levels in traditional Chinese medicine (TCM). In addition, this study provided a novel approach for further studies on TCM.