Mercurial > hg > orthanc
diff OrthancServer/DicomModification.h @ 2310:b7fba68747f6 issue-46-anonymization
DicomModification::Clear()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Jul 2017 14:00:00 +0200 |
parents | 4dc313b9a20a |
children | d19e716b79fa |
line wrap: on
line diff
--- a/OrthancServer/DicomModification.h Wed Jul 12 13:40:02 2017 +0200 +++ b/OrthancServer/DicomModification.h Wed Jul 12 14:00:00 2017 +0200 @@ -52,6 +52,7 @@ typedef std::map< std::pair<ResourceType, std::string>, std::string> UidMap; SetOfTags removals_; + SetOfTags clearings_; Replacements replacements_; bool removePrivateTags_; ResourceType level_; @@ -88,11 +89,18 @@ void Remove(const DicomTag& tag); + // Replace the DICOM tag as a NULL/empty value (e.g. for anonymization) + void Clear(const DicomTag& tag); + bool IsRemoved(const DicomTag& tag) const; + bool IsCleared(const DicomTag& tag) const; + + // "safeForAnonymization" tells Orthanc that this replacement does + // not break the anonymization process it implements (for internal use only) void Replace(const DicomTag& tag, const Json::Value& value, // Encoded using UTF-8 - bool safeForAnonymization = false); + bool safeForAnonymization); bool IsReplaced(const DicomTag& tag) const;