Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/Compatibility/GenericFind.cpp @ 5677:dc96401dbe88 find-refactoring
starting the refactoring of /tools/find
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Jul 2024 19:03:23 +0200 |
parents | b744a2cf408a |
children | 77875b51cf95 |
comparison
equal
deleted
inserted
replaced
5676:b744a2cf408a | 5677:dc96401dbe88 |
---|---|
112 currentLevel = nextLevel; | 112 currentLevel = nextLevel; |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 void GenericFind::ExecuteFind(std::list<std::string>& identifiers, | 116 void GenericFind::ExecuteFind(std::list<std::string>& identifiers, |
117 const FindRequest& request) | 117 const FindRequest& request, |
118 { | 118 const IDatabaseWrapper::Capabilities& capabilities) |
119 { | |
120 if (!request.GetLabels().empty() && | |
121 !capabilities.HasLabelsSupport()) | |
122 { | |
123 throw OrthancException(ErrorCode_NotImplemented, "The database backend doesn't support labels"); | |
124 } | |
125 | |
119 if (IsRequestWithoutContraint(request) && | 126 if (IsRequestWithoutContraint(request) && |
120 !request.GetOrthancIdentifiers().HasPatientId() && | 127 !request.GetOrthancIdentifiers().HasPatientId() && |
121 !request.GetOrthancIdentifiers().HasStudyId() && | 128 !request.GetOrthancIdentifiers().HasStudyId() && |
122 !request.GetOrthancIdentifiers().HasSeriesId() && | 129 !request.GetOrthancIdentifiers().HasSeriesId() && |
123 !request.GetOrthancIdentifiers().HasInstanceId()) | 130 !request.GetOrthancIdentifiers().HasInstanceId()) |
201 { | 208 { |
202 GetChildrenIdentifiers(identifiers, transaction_, request.GetOrthancIdentifiers(), ResourceType_Series, request.GetLevel()); | 209 GetChildrenIdentifiers(identifiers, transaction_, request.GetOrthancIdentifiers(), ResourceType_Series, request.GetLevel()); |
203 } | 210 } |
204 else | 211 else |
205 { | 212 { |
206 throw OrthancException(ErrorCode_NotImplemented); // Not supported | 213 printf("?????????????????????????\n"); |
214 throw OrthancException(ErrorCode_NotImplemented); | |
207 } | 215 } |
208 } | 216 } |
209 | 217 |
210 | 218 |
211 void GenericFind::RetrieveMainDicomTags(FindResponse::Resource& target, | 219 void GenericFind::RetrieveMainDicomTags(FindResponse::Resource& target, |