This is the multi-page printable view of this section. Click here to print.
Anonymising Data
1 - Project anonymiser
The Project level anonymiser uses a scripting syntax called DicomEdit to modify, reassign or blank DICOM tags. You can actually use this to create automated workflow for renaming DICOM metadata on datasets
version "6.1"
project != "Unassigned" ? (0008,1030) := project
(0010,0010) := subject
(0010,0020) := session
The example in this screenshot basically replicates the behaviour in the HIRF onsite anonymiser for remapping the ReferringPhysicianName, PatientName and PatientID
You can use DICOMedit to enforce a particular naming and tagging scheme across your entire project this way.
Anonymising existing sesssions
Note
If you’re planning to use the project level anonymiser, best solution would be to have your project’s renaming, retagging or anonymisation scheme established before starting data acquisition.The Project level anonymiser works best for new sessions, as it runs when the dataset is being ingested into the XNAT archive, or when sessions are renamed. By default, it does not anonymise sessions that are sitting in the archive already.
If you need to trigger your anonymisation on an existing session
- Edit a session name. Modify
- Then edit it back to its original name
This will trigger the anonymisation script.
Warning
Session edits take a bit of time, as the files and metadata are modified during edits, so allow some wait time if you use this method.2 - Site anonymiser
HIRF and CAI data are anonymised on-site by default with the following protocols
Modified Tags
DICOM Tag | Original value | New value |
---|---|---|
PatientBirthDate | 10/12/2000 | 1/1/2000 |
PatientComments | XXXXXXXX | Project:Proj001 Subject:TEST_MR Session:TEST_MR-20210405T1220 |
ReferringPhysicianName | Proj001 | Proj001 |
PatientName | XXXXXXXX | TEST_MR |
PatientID | TEST_MR | TEST_MR-20210405T1220 |
Blanked Tags
DICOM Tag |
---|
AccessionNumber |
ImageComments |
OperatorName |
OtherPatientIDs |
AdditionalPatientHistory |
AdmittingDiagnosisDescription |
MedicalRecordLocator |
NameOfPhysicianReadingStudy |
Occupation |
OtherPatientNames |
PatientBirthTime |
PerformingPhysicianName |
PhysicianOfRecord |
ReferringPhysicianAddress |
ReferringPhysicianPhoneNumbers |