IntroductionType 2 diabetes mellitus (T2DM) is a complex, chronic disease affecting multiple organs with varying symptoms and comorbidities. Profiling patients helps identify those with unfavorable disease progression, allowing for tailored therapy and addressing special needs. This study aims to uncover different T2DM profiles based on medication intake records and laboratory measurements, with a focus on how individuals with diabetes move through disease phases.MethodsWe use medical records from databases of the last 20 years from the Department of Endocrinology and Diabetology of the University Medical Center in Maribor. Using the standard ATC medication classification system, we created a patient-specific drug profile, created using advanced natural language processing methods combined with data mining and hierarchical clustering.ResultsOur results show a well-structured profile distribution characterizing different age groups of individuals with diabetes. Interestingly, only two main profiles characterize the early 40–50 age group, and the same is true for the last 80+ age group. One of these profiles includes individuals with diabetes with very low use of various medications, while the other profile includes individuals with diabetes with much higher use. The number in both groups is reciprocal. Conversely, the middle-aged groups are characterized by several distinct profiles with a wide range of medications that are associated with the distinct concomitant complications of T2DM. It is intuitive that the number of profiles increases in the later age groups, but it is not obvious why it is reduced later in the 80+ age group. In this context, further studies are needed to evaluate the contributions of a range of factors, such as drug development, drug adoption, and the impact of mortality associated with all T2DM-related diseases, which characterize these middle-aged groups, particularly those aged 55–75.ConclusionOur approach aligns with existing studies and can be widely implemented without complex or expensive analyses. Treatment and drug use data are readily available in healthcare facilities worldwide, allowing for profiling insights into individuals with diabetes. Integrating data from other departments, such as cardiology and renal disease, may provide a more sophisticated understanding of T2DM patient profiles.