Mercurial > hg > orthanc
diff Resources/GenerateAnonymizationProfile.py @ 2506:51b91ead6c38
Preservation of UID relationships while anonymizing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 26 Mar 2018 17:09:42 +0200 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Resources/GenerateAnonymizationProfile.py Mon Mar 26 11:09:19 2018 +0200 +++ b/Resources/GenerateAnonymizationProfile.py Mon Mar 26 17:09:42 2018 +0200 @@ -74,12 +74,21 @@ 'Series Instance UID', 'Study Instance UID', ]: - FormatLine('// Tag (%s) is set in Apply()' % tag, name) + FormatLine('// Tag (%s) is set in Apply() /* %s */' % (tag, profile), name) + elif name in [ + 'Referenced Image Sequence', + 'Source Image Sequence', + 'Referenced SOP Instance UID', + 'Frame of Reference UID', + 'Referenced Frame of Reference UID', + 'Related Frame of Reference UID', + ]: + FormatLine('// Tag (%s) => RelationshipsVisitor /* %s */' % (tag, profile), name) elif name in [ 'Patient\'s Name', 'Patient ID', ]: - FormatLine('// Tag (%s) is set below (*)' % tag, name) + FormatLine('// Tag (%s) is set below (*) /* %s */' % (tag, profile), name) elif profile == 'X': FormatLine('removals_.insert(DicomTag(%s));' % tag, name) elif profile.startswith('X/'):