diff OrthancServer/Sources/ServerContext.h @ 4375:208029732d51 varian

New config option "DeidentifyDimseQueryLogs"
author Mark Poscablo <Mark.Poscablo@varian.com>
date Tue, 15 Dec 2020 13:59:01 -0500
parents d962a2996637
children b002f9abe802
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h	Thu Dec 17 10:55:32 2020 +0100
+++ b/OrthancServer/Sources/ServerContext.h	Tue Dec 15 13:59:01 2020 -0500
@@ -40,6 +40,8 @@
 #include "ServerJobs/IStorageCommitmentFactory.h"
 
 #include "../../OrthancFramework/Sources/Cache/MemoryCache.h"
+#include "../../OrthancFramework/Sources/DicomFormat/DicomElement.h"
+#include "../../OrthancFramework/Sources/DicomParsing/DicomModification.h"
 #include "../../OrthancFramework/Sources/DicomParsing/IDicomTranscoder.h"
 
 
@@ -245,6 +247,12 @@
                        size_t since,
                        size_t limit);
 
+    // This DicomModification object is intended to be used as a "rules engine"
+    // when de-identifying logs for C-Find, C-Get, and C-Move queries
+    DicomModification logsDeidentifierRules_;
+    bool deidentifyDimseQueryLogs_;
+    DicomVersion deidentifyDimseQueryLogsDicomVersion_;
+
   public:
     class DicomCacheLocker : public boost::noncopyable
     {
@@ -500,5 +508,7 @@
     {
       return transcodeDicomProtocol_;
     }
+
+    const std::string& GetDeidentifiedQueryContent(const DicomElement& element) const;
   };
 }