Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/DicomModification.h @ 4297:785a2713323e
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 17:20:49 +0100 |
parents | 7112a8af0b63 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4296:3b70a2e6a06c | 4297:785a2713323e |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
6 * | 6 * |
137 | 137 |
138 std::string GetReplacementAsString(const DicomTag& tag) const; | 138 std::string GetReplacementAsString(const DicomTag& tag) const; |
139 | 139 |
140 void SetRemovePrivateTags(bool removed); | 140 void SetRemovePrivateTags(bool removed); |
141 | 141 |
142 bool ArePrivateTagsRemoved() const | 142 bool ArePrivateTagsRemoved() const; |
143 { | |
144 return removePrivateTags_; | |
145 } | |
146 | 143 |
147 void SetLevel(ResourceType level); | 144 void SetLevel(ResourceType level); |
148 | 145 |
149 ResourceType GetLevel() const | 146 ResourceType GetLevel() const; |
150 { | |
151 return level_; | |
152 } | |
153 | 147 |
154 void SetupAnonymization(DicomVersion version); | 148 void SetupAnonymization(DicomVersion version); |
155 | 149 |
156 void Apply(ParsedDicomFile& toModify); | 150 void Apply(ParsedDicomFile& toModify); |
157 | 151 |
158 void SetAllowManualIdentifiers(bool check) | 152 void SetAllowManualIdentifiers(bool check); |
159 { | |
160 allowManualIdentifiers_ = check; | |
161 } | |
162 | 153 |
163 bool AreAllowManualIdentifiers() const | 154 bool AreAllowManualIdentifiers() const; |
164 { | |
165 return allowManualIdentifiers_; | |
166 } | |
167 | 155 |
168 void ParseModifyRequest(const Json::Value& request); | 156 void ParseModifyRequest(const Json::Value& request); |
169 | 157 |
170 void ParseAnonymizationRequest(bool& patientNameReplaced, | 158 void ParseAnonymizationRequest(bool& patientNameReplaced, |
171 const Json::Value& request); | 159 const Json::Value& request); |
172 | 160 |
173 void SetDicomIdentifierGenerator(IDicomIdentifierGenerator& generator) | 161 void SetDicomIdentifierGenerator(IDicomIdentifierGenerator& generator); |
174 { | |
175 identifierGenerator_ = &generator; | |
176 } | |
177 | 162 |
178 void Serialize(Json::Value& value) const; | 163 void Serialize(Json::Value& value) const; |
179 | 164 |
180 void SetPrivateCreator(const std::string& privateCreator) | 165 void SetPrivateCreator(const std::string& privateCreator); |
181 { | |
182 privateCreator_ = privateCreator; | |
183 } | |
184 | 166 |
185 const std::string& GetPrivateCreator() | 167 const std::string& GetPrivateCreator() const; |
186 { | |
187 return privateCreator_; | |
188 } | |
189 }; | 168 }; |
190 } | 169 } |