Module that provides tools to anonymize DICOM files.

pydcmio.dcmconverter.transcoder.transcode_sids(sids, transcoding_table)[source]ΒΆ

Transcode the subject identifiers.

The transcoded subject identifier is generated randomly (12 digits random number between 100000000000 and 999999999999). The procedure checks if the subject identifier has already been transcoded.

Parameters:

sids: list of str (mandatory)

the list of subject identifiers to be transcoded.

transcoding_table: str (mandatory)

the transcoding table in JSON format that will be updated if necessary.