<span lang="EN-US">Currently, the detection of pathology of lung cavities and their digitalization is one of the urgent problems of the healthcare industry in Kazakhstan. In this paper, the method of fractal analysis was considered to solve the task set. Diagnosis of lung pathology based on fractal analysis is an actively developing area of medical research. Conducted experiments on a set of clinical data confirm the effectiveness of the proposed methodology. The results obtained show that fractal analysis can be a useful tool for early detection of lung pathologies. It allows you to detect even minor changes in the structure and texture of lung tissues, which may not be obvious during visual analysis. The article deals with images of pathology of the pulmonary cavity, taken from an open data source. Based on the analysis of fractal objects, they were pre-assembled. Software algorithms for the operation of the information system for screening diagnostics have been developed. Based on the information contained in the fractal image of the lungs, mathematical models have been developed to create a diagnostic rule. A reference set of information features has been created that allows you to create algorithms for diagnosing the lungs: healthy and with pathologies of tuberculosis. </span>