Absence reasons related to illness fall under health data, a special category of the GDPR whose processing is in principle prohibited except for regulated exceptions. HR analysis therefore uses highly aggregated categories, avoids detailing medical reasons and strictly limits access to individual data.
Example
Analyze "sick leave" in aggregate, with no diagnosis or name.