comparison OrthancServer/Search/DicomTagConstraint.cpp @ 3792:6dba4fa8a6cb

remove universal wildcard on StudyDate in OrthancExplorer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Mar 2020 07:19:30 +0100
parents 94f4a18a79cc
children
comparison
equal deleted inserted replaced
3791:a22717e68d9b 3792:6dba4fa8a6cb
103 { 103 {
104 if (constraintType_ != ConstraintType_Wildcard && 104 if (constraintType_ != ConstraintType_Wildcard &&
105 (value.find('*') != std::string::npos || 105 (value.find('*') != std::string::npos ||
106 value.find('?') != std::string::npos)) 106 value.find('?') != std::string::npos))
107 { 107 {
108 throw OrthancException(ErrorCode_ParameterOutOfRange); 108 throw OrthancException(ErrorCode_ParameterOutOfRange,
109 "Wildcards are not allowed on tag " + tag_.Format());
109 } 110 }
110 111
111 if (constraintType_ == ConstraintType_Equal || 112 if (constraintType_ == ConstraintType_Equal ||
112 constraintType_ == ConstraintType_SmallerOrEqual || 113 constraintType_ == ConstraintType_SmallerOrEqual ||
113 constraintType_ == ConstraintType_GreaterOrEqual || 114 constraintType_ == ConstraintType_GreaterOrEqual ||