This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Anonymising Data

Anonymising Data

1 - Project anonymiser

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

Dicomedit
https://wiki.xnat.org/xnat-tools/dicomedit/dicomedit-6-3-language-reference
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

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.

2 - Site anonymiser

Site anonymiser

HIRF and CAI data are anonymised on-site by default with the following protocols

Modified Tags

DICOM TagOriginal valueNew value
PatientBirthDate10/12/20001/1/2000
PatientCommentsXXXXXXXXProject:Proj001 Subject:TEST_MR Session:TEST_MR-20210405T1220
ReferringPhysicianNameProj001Proj001
PatientNameXXXXXXXXTEST_MR
PatientIDTEST_MRTEST_MR-20210405T1220

Blanked Tags

DICOM Tag
AccessionNumber
ImageComments
OperatorName
OtherPatientIDs
AdditionalPatientHistory
AdmittingDiagnosisDescription
MedicalRecordLocator
NameOfPhysicianReadingStudy
Occupation
OtherPatientNames
PatientBirthTime
PerformingPhysicianName
PhysicianOfRecord
ReferringPhysicianAddress
ReferringPhysicianPhoneNumbers