diff OrthancServer/Database/IDatabaseWrapper.h @ 3116:0fa7181ac4e5 db-changes

conrt
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 12 Jan 2019 11:08:53 +0100
parents 2e1711f80f74
children 4bbadcd03966
line wrap: on
line diff
--- a/OrthancServer/Database/IDatabaseWrapper.h	Sat Jan 12 09:15:32 2019 +0100
+++ b/OrthancServer/Database/IDatabaseWrapper.h	Sat Jan 12 11:08:53 2019 +0100
@@ -221,9 +221,12 @@
                                       ResourceType queryLevel,
                                       size_t limit) = 0;
 
-    // Returns "true" iff. the instance already exists. If "false" is
-    // returned, the content of "result" is undefined, but
-    // "instanceId" must be properly set.
+    // Returns "true" iff. the instance is new and has been inserted
+    // into the database. If "false" is returned, the content of
+    // "result" is undefined, but "instanceId" must be properly
+    // set. This method must also tag the parent patient as the most
+    // recent in the patient recycling order if it is not protected
+    // (so as to fix issue #58).
     virtual bool CreateInstance(CreateInstanceResult& result, /* out */
                                 int64_t& instanceId,          /* out */
                                 const std::string& patient,