Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3121:f86ebf971a72 | 3124:c0d7aee8c3f8 |
---|---|
270 isOptimal = false; | 270 isOptimal = false; |
271 } | 271 } |
272 | 272 |
273 if (isOptimal) | 273 if (isOptimal) |
274 { | 274 { |
275 LOG(INFO) << "The performance of the database index plugin is optimal for this version of Orthanc"; | 275 LOG(INFO) << "The performance of the database index plugin " |
276 << "is optimal for this version of Orthanc"; | |
276 } | 277 } |
277 else | 278 else |
278 { | 279 { |
279 LOG(WARNING) << "Performance warning in the database index: Some extensions are missing in the plugin"; | 280 LOG(WARNING) << "Performance warning in the database index: " |
281 << "Some extensions are missing in the plugin"; | |
280 } | 282 } |
281 | 283 |
282 if (extensions_.getLastChangeIndex == NULL) | 284 if (extensions_.getLastChangeIndex == NULL) |
283 { | 285 { |
284 LOG(WARNING) << "The database extension GetLastChangeIndex() is missing"; | 286 LOG(WARNING) << "The database extension GetLastChangeIndex() is missing"; |
287 } | |
288 | |
289 if (extensions_.tagMostRecentPatient == NULL) | |
290 { | |
291 LOG(WARNING) << "The database extension TagMostRecentPatient() is missing " | |
292 << "(affected by issue 58)"; | |
285 } | 293 } |
286 } | 294 } |
287 | 295 |
288 | 296 |
289 void OrthancPluginDatabase::Open() | 297 void OrthancPluginDatabase::Open() |
1414 return result; | 1422 return result; |
1415 } | 1423 } |
1416 } | 1424 } |
1417 | 1425 |
1418 | 1426 |
1419 void OrthancPluginDatabase::TagAsMostRecentPatient(int64_t patient) | 1427 void OrthancPluginDatabase::TagMostRecentPatient(int64_t patient) |
1420 { | 1428 { |
1421 // TODO | 1429 if (extensions_.tagMostRecentPatient != NULL) |
1430 { | |
1431 CheckSuccess(extensions_.tagMostRecentPatient(payload_, patient)); | |
1432 } | |
1422 } | 1433 } |
1423 } | 1434 } |