Medical data obtained from individual sleep studies are of great value for scientific research. Yet in Germany, their use is often hindered by legal restrictions, problems with heterogeneous data landscape, and lack of standardized data formats and quality criteria. In this paper, we propose a pioneering architecture to remove these barriers. Our distributed setup ensures that sensitive data remains within the secure boundaries of the originating institutions while patients have control over the subsequent use of their anonymized data. At the heart of our approach is the concept of a data trustee, providing easy-to-use interfaces for the key stakeholders: data producers (sleep clinics), data recipients (researchers), and data providers (patients). We use the innovative concept of dynamic consent to update usage rights and conditions. By using containerized data processing and automated de-authentication, data usage requests are filtered through standardized metadata criteria across all connected data producers, ensuring both privacy protection and streamlined data selection. In addition, our system features tamper-proof logging to ensure transparency and traceability across all transactions. With this integrated approach, we aim to realize the full potential of sleep research while adhering to strict privacy standards and enabling seamless collaboration between stakeholders.