By linking medical real-world data with geographic information, it is possible to evaluate the impact on hospitalization based on these characteristics, such as patient residence information and disease and medical information. In this study, environmental exposure to air pollutants was reported as a risk factor, and predictive models were used to examine factors affecting health. The importance of the characteristics appeared according to the disease, and overall, the patient profile at the time of admission, such as ADL, was shown to be high, but for respiratory diseases, the cumulative concentration of air pollutants NO2, SPM, and NOx for one year before the onset of admission was the top risk factor for long-term hospitalization, suggesting the influence of exposure due to environmental factors.