The present embodiments relate to a method for transmitting medical datasets. The method includes receiving a patient dataset from an internal data storage, the patient dataset including patient identification data and patient examination data. The method further includes generating an anonymized patient dataset by segregating the patient identification data from the received patient dataset. The method further includes generating an encrypted patient identification dataset on the basis of the segregated patient identification data. The method further includes transmitting the anonymized patient dataset and the encrypted patient identification dataset to an external data storage.