Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapperBase.cpp @ 1729:54d78925cbb6 db-changes
notes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 17:39:58 +0200 |
parents | 4941494b5dd8 |
children | 38dda23c7d7d |
comparison
equal
deleted
inserted
replaced
1728:4941494b5dd8 | 1729:54d78925cbb6 |
---|---|
675 (level == ResourceType_Study && tag == DICOM_TAG_ACCESSION_NUMBER) || | 675 (level == ResourceType_Study && tag == DICOM_TAG_ACCESSION_NUMBER) || |
676 (level == ResourceType_Series && tag == DICOM_TAG_SERIES_INSTANCE_UID) || | 676 (level == ResourceType_Series && tag == DICOM_TAG_SERIES_INSTANCE_UID) || |
677 (level == ResourceType_Instance && tag == DICOM_TAG_SOP_INSTANCE_UID)); | 677 (level == ResourceType_Instance && tag == DICOM_TAG_SOP_INSTANCE_UID)); |
678 | 678 |
679 SQLite::Statement s(db_, SQLITE_FROM_HERE, | 679 SQLite::Statement s(db_, SQLITE_FROM_HERE, |
680 "SELECT d.id FROM DicomIdentifiers as d, Resources as r WHERE " | 680 "SELECT d.id FROM DicomIdentifiers AS d, Resources AS r WHERE " |
681 "d.id = r.internalId AND r.resourceType=? AND d.tagGroup=? AND d.tagElement=? and d.value=?"); | 681 "d.id = r.internalId AND r.resourceType=? AND d.tagGroup=? AND d.tagElement=? AND d.value=?"); |
682 | 682 |
683 s.BindInt(0, level); | 683 s.BindInt(0, level); |
684 s.BindInt(1, tag.GetGroup()); | 684 s.BindInt(1, tag.GetGroup()); |
685 s.BindInt(2, tag.GetElement()); | 685 s.BindInt(2, tag.GetElement()); |
686 s.BindString(3, value); | 686 s.BindString(3, value); |
690 while (s.Step()) | 690 while (s.Step()) |
691 { | 691 { |
692 target.push_back(s.ColumnInt64(0)); | 692 target.push_back(s.ColumnInt64(0)); |
693 } | 693 } |
694 } | 694 } |
695 | |
696 | |
697 void DatabaseWrapperBase::LookupIdentifierWildcard(std::list<int64_t>& target, | |
698 const DicomTag& tag, | |
699 const std::string& value) | |
700 { | |
701 // TODO | |
702 throw OrthancException(ErrorCode_NotImplemented); | |
703 } | |
695 } | 704 } |