From the point of view of data protection regulations, the performance of medical examinations to control the absenteeism of workers subject to the scope of application of the ET, by the medical staff of a company contracted by the The City Council would have as its legal basis Article 20.4 of the ET in relation to Articles 6.1.b) and 9.2.b) of the RGPD. This legal basis would not apply but to civil servants. For the performance of statistics and for the monitoring and management of absenteeism, it is not justified for the company to access information from all municipal employees but only from those who have had an absence. The city council must keep the data of the workers necessary for the execution of the contract and compliance with the applicable labor regulations for the duration of the employment relationship. These data must include identification and contact details that would allow him to contact the worker in cases of absenteeism. With regard to the time control data, and their justifications, it will be necessary to take into account the 4-year period established by current regulations, without prejudice to the duty to block the data from being deleted, in order to meet any responsibilities.