Anonymization

Reversible mapping (key-vault)

Map Patient IDs to pseudonyms with reversible AES-256 encryption.

Problem

You’re de-identifying DICOM studies for a clinical trial, but the trial sponsor requires the ability to re-identify patients later if a clinically significant incidental finding is discovered. Simply replacing Patient IDs with ANON is irreversible: there’s no way to map back. You need a reversible pseudonymization system: replace real Patient IDs with anonymous pseudonyms, store the mapping in an encrypted vault, and provide a way to revert (decrypt) the pseudonyms back to the original IDs when authorized.

Steps

Pseudonymize

  1. Open your DICOM file (⌘O) and switch to Edit mode (Ctrl+2 / ⌘2 in the desktop app).

  2. Set a known Patient ID. Double-click the Patient ID tag (0010,0020), enter a value like PID-12345, and save.

  3. Switch to Anon mode (Ctrl+3 / ⌘3 in the desktop app, Ctrl+Shift+A / ⌘⇧A in the browser).

  4. Enable reversible pseudonymization. Toggle the Reversible Pseudonymization switch to ON.

  5. Apply. Click the Apply button. The first time in a session, enter your vault passphrase twice. dcmage cannot recover a lost passphrase.

  6. Verify the pseudonym. Switch back to Edit mode (Ctrl+2 / ⌘2 in the desktop app) and check the Patient ID. It should now display ANON- followed by 16 hexadecimal characters. The same Patient ID always gives the same pseudonym on this installation.

Re-identify

  1. Switch to Anon mode (Ctrl+3 / ⌘3 in the desktop app, Ctrl+Shift+A / ⌘⇧A in the browser).

  2. Click “Revert Demographics”. This button decrypts the stored mapping and restores the original Patient ID. If the session holds no passphrase yet, enter it twice.

  3. Verify. Switch to Edit mode (Ctrl+2 / ⌘2 in the desktop app). The Patient ID should be back to PID-12345.

Result

After pseudonymization the Patient ID reads ANON- followed by 16 hexadecimal characters. Reverting restores the original from the mapping, and non-demographic tags are never touched. The mapping is kept in an encrypted vault on this device, protected by the passphrase you choose.