diff OrthancServer/Sources/Search/DatabaseConstraint.h @ 5568:b0b5546f1b9f find-refactoring

find refactor: re-use existing code. /studies?expand is almost fully implemented with new code
author Alain Mazy <am@orthanc.team>
date Thu, 25 Apr 2024 09:22:07 +0200
parents 48b8dae6dc77
children 3f13db27b399
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseConstraint.h	Tue Apr 23 16:49:44 2024 +0200
+++ b/OrthancServer/Sources/Search/DatabaseConstraint.h	Thu Apr 25 09:22:07 2024 +0200
@@ -79,9 +79,18 @@
   // This class is also used by the "orthanc-databases" project
   class DatabaseConstraint
   {
+  public:
+    enum KeyType  // used for ordering and filters
+    {
+      KeyType_DicomTag,
+      KeyType_Metadata
+    };
+
   private:
+    KeyType                   keyType_;
     ResourceType              level_;
     DicomTag                  tag_;
+    uint32_t                  metadataType_;  // TODO: implement
     bool                      isIdentifier_;
     ConstraintType            constraintType_;
     std::vector<std::string>  values_;