The psychologists that, as sanitary professionals, they can be part of the EAP of penitentiaries, in so far as they take part in the provision of integral sanitary assistance to the internal persons in the foreseen terms to the regulations, they have to be able to access determinate data of the clinical history (HC), through the platform ECAP or for other mechanisms –including data of drugs analytics, if it is proper-, whenever the access is necessary for the provision of this assistance (art. 5.1.c) RGPD). The psychologists who, without being part of the EAP, develop functions in the penitentiaries not related with the provision of integral sanitary assistance to the internal persons, should have the consent of the affected persons, or of another legal basis that legitimates the access to the data of health contained in the HC, if it is proper, through the ECAP.