comparison OrthancFramework/Sources/DicomParsing/DicomModification.h @ 5137:15109c3f0f7d

added sanity checks in DicomModificationJob + automatically reconstruct resources at the end of a DicomModificationJob
author Alain Mazy <am@osimis.io>
date Wed, 18 Jan 2023 17:58:51 +0100
parents f2dcdbe05884
children 023569e7155b
comparison
equal deleted inserted replaced
5136:e71b22a43c0b 5137:15109c3f0f7d
128 typedef std::map< std::pair<ResourceType, std::string>, std::string> UidMap; 128 typedef std::map< std::pair<ResourceType, std::string>, std::string> UidMap;
129 129
130 mutable boost::recursive_mutex uidMapMutex_; 130 mutable boost::recursive_mutex uidMapMutex_;
131 SetOfTags removals_; 131 SetOfTags removals_;
132 SetOfTags clearings_; 132 SetOfTags clearings_;
133 SetOfTags keep_;
133 Replacements replacements_; 134 Replacements replacements_;
134 bool removePrivateTags_; 135 bool removePrivateTags_;
135 ResourceType level_; 136 ResourceType level_;
136 UidMap uidMap_; 137 UidMap uidMap_;
137 SetOfTags privateTagsToKeep_; 138 SetOfTags privateTagsToKeep_;
208 const Json::Value& value, // Encoded using UTF-8 209 const Json::Value& value, // Encoded using UTF-8
209 bool safeForAnonymization); 210 bool safeForAnonymization);
210 211
211 bool IsReplaced(const DicomTag& tag) const; 212 bool IsReplaced(const DicomTag& tag) const;
212 213
214 void GetReplacedTags(std::set<DicomTag>& target) const;
215
213 const Json::Value& GetReplacement(const DicomTag& tag) const; 216 const Json::Value& GetReplacement(const DicomTag& tag) const;
214 217
215 std::string GetReplacementAsString(const DicomTag& tag) const; 218 std::string GetReplacementAsString(const DicomTag& tag) const;
219
220 bool IsKept(const DicomTag& tag) const;
216 221
217 void SetRemovePrivateTags(bool removed); 222 void SetRemovePrivateTags(bool removed);
218 223
219 bool ArePrivateTagsRemoved() const; 224 bool ArePrivateTagsRemoved() const;
220 225