diff OrthancServer/ServerIndex.cpp @ 1725:a7c05bbfaf6a db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 11:21:36 +0200
parents 3bcb01028107
children 1ae29c5e52fb ec66a16aa398
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Oct 20 11:02:06 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Tue Oct 20 11:21:36 2015 +0200
@@ -1893,6 +1893,12 @@
                                      const std::string& value,
                                      ResourceType type)
   {
+    assert(tag == DICOM_TAG_PATIENT_ID ||
+           tag == DICOM_TAG_STUDY_INSTANCE_UID ||
+           tag == DICOM_TAG_SERIES_INSTANCE_UID ||
+           tag == DICOM_TAG_SOP_INSTANCE_UID ||
+           tag == DICOM_TAG_ACCESSION_NUMBER);
+    
     result.clear();
 
     boost::mutex::scoped_lock lock(mutex_);