Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2505:a4f885670da7 | 2506:51b91ead6c38 |
---|---|
72 if name in [ | 72 if name in [ |
73 'SOP Instance UID', | 73 'SOP Instance UID', |
74 'Series Instance UID', | 74 'Series Instance UID', |
75 'Study Instance UID', | 75 'Study Instance UID', |
76 ]: | 76 ]: |
77 FormatLine('// Tag (%s) is set in Apply()' % tag, name) | 77 FormatLine('// Tag (%s) is set in Apply() /* %s */' % (tag, profile), name) |
78 elif name in [ | |
79 'Referenced Image Sequence', | |
80 'Source Image Sequence', | |
81 'Referenced SOP Instance UID', | |
82 'Frame of Reference UID', | |
83 'Referenced Frame of Reference UID', | |
84 'Related Frame of Reference UID', | |
85 ]: | |
86 FormatLine('// Tag (%s) => RelationshipsVisitor /* %s */' % (tag, profile), name) | |
78 elif name in [ | 87 elif name in [ |
79 'Patient\'s Name', | 88 'Patient\'s Name', |
80 'Patient ID', | 89 'Patient ID', |
81 ]: | 90 ]: |
82 FormatLine('// Tag (%s) is set below (*)' % tag, name) | 91 FormatLine('// Tag (%s) is set below (*) /* %s */' % (tag, profile), name) |
83 elif profile == 'X': | 92 elif profile == 'X': |
84 FormatLine('removals_.insert(DicomTag(%s));' % tag, name) | 93 FormatLine('removals_.insert(DicomTag(%s));' % tag, name) |
85 elif profile.startswith('X/'): | 94 elif profile.startswith('X/'): |
86 FormatLine('removals_.insert(DicomTag(%s)); /* %s */' % (tag, profile), name) | 95 FormatLine('removals_.insert(DicomTag(%s)); /* %s */' % (tag, profile), name) |
87 elif profile == 'Z': | 96 elif profile == 'Z': |