comparison OrthancFramework/Sources/DicomParsing/DicomModification.cpp @ 4789:51ec061516c9

Fix handling of option "DeidentifyLogs", notably for tags (0010,0010) and (0010,0020)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 09 Sep 2021 13:02:33 +0200
parents 979ae3ea3381
children 7053502fbf97
comparison
equal deleted inserted replaced
4788:b47ee86a0d10 4789:51ec061516c9
1806 { 1806 {
1807 MarkNotOrthancAnonymization(); 1807 MarkNotOrthancAnonymization();
1808 } 1808 }
1809 } 1809 }
1810 } 1810 }
1811
1812
1813 bool DicomModification::IsAlteredTag(const DicomTag& tag) const
1814 {
1815 return (uids_.find(tag) != uids_.end() ||
1816 IsCleared(tag) ||
1817 IsRemoved(tag) ||
1818 IsReplaced(tag) ||
1819 (tag.IsPrivate() &&
1820 ArePrivateTagsRemoved() &&
1821 privateTagsToKeep_.find(tag) == privateTagsToKeep_.end()) ||
1822 (isAnonymization_ && (
1823 tag == DICOM_TAG_PATIENT_NAME ||
1824 tag == DICOM_TAG_PATIENT_ID)) ||
1825 (tag == DICOM_TAG_STUDY_INSTANCE_UID &&
1826 !keepStudyInstanceUid_) ||
1827 (tag == DICOM_TAG_SERIES_INSTANCE_UID &&
1828 !keepSeriesInstanceUid_) ||
1829 (tag == DICOM_TAG_SOP_INSTANCE_UID &&
1830 !keepSopInstanceUid_));
1831 }
1811 } 1832 }