Mercurial > hg > orthanc
diff OrthancServer/Search/RangeConstraint.cpp @ 3036:8fd203510d8b db-changes
moving LookupIdentifierQuery to the graveyard
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Dec 2018 16:27:07 +0100 |
parents | e583478e0c6c |
children | ce272138f15e |
line wrap: on
line diff
--- a/OrthancServer/Search/RangeConstraint.cpp Wed Dec 19 14:20:11 2018 +0100 +++ b/OrthancServer/Search/RangeConstraint.cpp Wed Dec 19 16:27:07 2018 +0100 @@ -56,29 +56,6 @@ } - void RangeConstraint::Setup(LookupIdentifierQuery& lookup, - const DicomTag& tag) const - { - if (!lower_.empty() && - !upper_.empty()) - { - lookup.AddRange(tag, lower_, upper_); - } - else - { - if (!lower_.empty()) - { - lookup.AddConstraint(tag, IdentifierConstraintType_GreaterOrEqual, lower_); - } - - if (!upper_.empty()) - { - lookup.AddConstraint(tag, IdentifierConstraintType_SmallerOrEqual, upper_); - } - } - } - - bool RangeConstraint::Match(const std::string& value) const { std::string v;