> For the complete documentation index, see [llms.txt](https://save-the-life.gitbook.io/save-the-life/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://save-the-life.gitbook.io/save-the-life/white-paper/sl-protocol-architectural-overview/user-data-upload.md).

# User Data Upload

<figure><img src="https://12876821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTkK7pMZ0ryZXZhGIl6Qj%2Fuploads%2FySQv4jTRCs3sBpBQ8luh%2Fimage.png?alt=media&amp;token=ece59b12-f7a1-4f9e-bd80-3c8a5764cb49" alt=""><figcaption><p>Fig.5) User Data Upload Architecture: This diagram shows the process of uploading medical files through the patient mobile app by a user(Architecture In Case of Token Issuance)</p></figcaption></figure>

## Data upload architecture

Users can view a list of medical data through SL mobile app. This list is provided by the Cloud PACS server, and users can select the data they want and request an upload. When a data upload request is made, the Cloud PACS server applies anonymization technology on the patient data to protect privacy. This process complies with the HIPAA privacy rules in the United States and the GDPR in the European Union, and the anonymized data is sent to Storage for Integrated Research (SIR) for storage in cloud storage. The path of the stored data is recorded in the database.

The storage path of the uploaded file is sent to the blockchain smart contract through the Cloud PACS server, and after verification, the user is rewarded with SL Tokens when the data upload is successfully completed. Additionally, with the uploaded file, the user can receive a free second opinion through the internal AI solution, and the DICOM file containing the diagnosis result is also stored in the secure storage system. Diagnostic records and file storage paths are recorded on-chain, enabling users to track the data transaction history. This system empowers users to manage their medical data securely and efficiently.

## **SIR(Storage for Integrated Research)**

The SIR is a collection of different entities organized off-chain, including external servers, cloud storage, databases, and internal AI solutions. The cloud storage stores DICOM files uploaded by users and DICOM files of second opinion results. The database manages information such as the file's storage path and storage status. The internal AI solution is a second opinion tool developed and provided by the SL Foundation that analyzes DICOM files and provides diagnostic results to users. The solution focuses on improving the accuracy and efficiency of medical research and diagnosis by integrating cutting-edge AI capabilities.
