Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPluginDatabase.cpp @ 3124:c0d7aee8c3f8 db-changes
Fix issue #58 (Patient recycling order should be defined by their received last instance)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Jan 2019 21:09:33 +0100 |
parents | f86ebf971a72 |
children | 4bbadcd03966 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPluginDatabase.cpp Mon Jan 14 16:23:08 2019 +0100 +++ b/Plugins/Engine/OrthancPluginDatabase.cpp Tue Jan 15 21:09:33 2019 +0100 @@ -272,17 +272,25 @@ if (isOptimal) { - LOG(INFO) << "The performance of the database index plugin is optimal for this version of Orthanc"; + LOG(INFO) << "The performance of the database index plugin " + << "is optimal for this version of Orthanc"; } else { - LOG(WARNING) << "Performance warning in the database index: Some extensions are missing in the plugin"; + LOG(WARNING) << "Performance warning in the database index: " + << "Some extensions are missing in the plugin"; } if (extensions_.getLastChangeIndex == NULL) { LOG(WARNING) << "The database extension GetLastChangeIndex() is missing"; } + + if (extensions_.tagMostRecentPatient == NULL) + { + LOG(WARNING) << "The database extension TagMostRecentPatient() is missing " + << "(affected by issue 58)"; + } } @@ -1416,8 +1424,11 @@ } - void OrthancPluginDatabase::TagAsMostRecentPatient(int64_t patient) + void OrthancPluginDatabase::TagMostRecentPatient(int64_t patient) { - // TODO + if (extensions_.tagMostRecentPatient != NULL) + { + CheckSuccess(extensions_.tagMostRecentPatient(payload_, patient)); + } } }