comparison OrthancServer/DatabaseWrapperBase.cpp @ 1725:a7c05bbfaf6a db-changes

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 11:21:36 +0200
parents 2b812969e136
children 1ae29c5e52fb
comparison
equal deleted inserted replaced
1724:7e0b5e413c7c 1725:a7c05bbfaf6a
667 667
668 void DatabaseWrapperBase::LookupIdentifier(std::list<int64_t>& target, 668 void DatabaseWrapperBase::LookupIdentifier(std::list<int64_t>& target,
669 const DicomTag& tag, 669 const DicomTag& tag,
670 const std::string& value) 670 const std::string& value)
671 { 671 {
672 assert(tag == DICOM_TAG_PATIENT_ID ||
673 tag == DICOM_TAG_STUDY_INSTANCE_UID ||
674 tag == DICOM_TAG_SERIES_INSTANCE_UID ||
675 tag == DICOM_TAG_SOP_INSTANCE_UID ||
676 tag == DICOM_TAG_ACCESSION_NUMBER);
677
672 SQLite::Statement s(db_, SQLITE_FROM_HERE, 678 SQLite::Statement s(db_, SQLITE_FROM_HERE,
673 "SELECT id FROM DicomIdentifiers WHERE tagGroup=? AND tagElement=? and value=?"); 679 "SELECT id FROM DicomIdentifiers WHERE tagGroup=? AND tagElement=? and value=?");
674 680
675 s.BindInt(0, tag.GetGroup()); 681 s.BindInt(0, tag.GetGroup());
676 s.BindInt(1, tag.GetElement()); 682 s.BindInt(1, tag.GetElement());