diff OrthancServer/DatabaseWrapperBase.cpp @ 1760:51db4a25a741 db-changes

LookupIdentifier is plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2015 11:09:00 +0100
parents 318c2e83c2bd
children f4286d99ee0a
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapperBase.cpp	Wed Oct 28 12:59:18 2015 +0100
+++ b/OrthancServer/DatabaseWrapperBase.cpp	Thu Oct 29 11:09:00 2015 +0100
@@ -681,41 +681,6 @@
 
 
 
-  /**
-
-     TODO REMOVE THIS
-
-  void DatabaseWrapperBase::LookupIdentifierExact(std::list<int64_t>& target,
-                                                  ResourceType level,
-                                                  const DicomTag& tag,
-                                                  const std::string& value)
-  {
-    assert((level == ResourceType_Patient && tag == DICOM_TAG_PATIENT_ID) ||
-           (level == ResourceType_Study && tag == DICOM_TAG_STUDY_INSTANCE_UID) ||
-           (level == ResourceType_Study && tag == DICOM_TAG_ACCESSION_NUMBER) ||
-           (level == ResourceType_Series && tag == DICOM_TAG_SERIES_INSTANCE_UID) ||
-           (level == ResourceType_Instance && tag == DICOM_TAG_SOP_INSTANCE_UID));
-    
-    SQLite::Statement s(db_, SQLITE_FROM_HERE, 
-                        "SELECT d.id FROM DicomIdentifiers AS d, Resources AS r WHERE "
-                        "d.id = r.internalId AND r.resourceType=? AND d.tagGroup=? AND d.tagElement=? AND d.value=?");
-
-    s.BindInt(0, level);
-    s.BindInt(1, tag.GetGroup());
-    s.BindInt(2, tag.GetElement());
-    s.BindString(3, value);
-
-    target.clear();
-
-    while (s.Step())
-    {
-      target.push_back(s.ColumnInt64(0));
-    }
-  }
-  */
-
-
-
   void DatabaseWrapperBase::LookupIdentifier(std::list<int64_t>& target,
                                              ResourceType level,
                                              const DicomTag& tag,