Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2194:3b40ca7470cc
"Keep" option for modifications to keep original DICOM identifiers (advanced feature)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Dec 2016 16:58:35 +0100 |
parents | 5a8840920121 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2193:6ac6193a7935 | 2194:3b40ca7470cc |
---|---|
134 if (request.isMember("Replace")) | 134 if (request.isMember("Replace")) |
135 { | 135 { |
136 ParseReplacements(target, request["Replace"]); | 136 ParseReplacements(target, request["Replace"]); |
137 } | 137 } |
138 | 138 |
139 // The "Keep" operation only makes sense for the tags | |
140 // StudyInstanceUID, SeriesInstanceUID and SOPInstanceUID. Avoid | |
141 // this feature as much as possible, as this breaks the DICOM | |
142 // model of the real world, except if you know exactly what | |
143 // you're doing! | |
144 if (request.isMember("Keep")) | |
145 { | |
146 ParseListOfTags(target, request["Keep"], TagOperation_Keep); | |
147 } | |
148 | |
139 return true; | 149 return true; |
140 } | 150 } |
141 else | 151 else |
142 { | 152 { |
143 return false; | 153 return false; |