Mercurial > hg > orthanc
comparison OrthancServer/Search/IFindConstraint.cpp @ 2006:6301bbcbcaed
more generic support of value representations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 09 Jun 2016 14:48:40 +0200 |
parents | b1291df2f780 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2005:9e021b2b348b | 2006:6301bbcbcaed |
---|---|
45 { | 45 { |
46 IFindConstraint* IFindConstraint::ParseDicomConstraint(const DicomTag& tag, | 46 IFindConstraint* IFindConstraint::ParseDicomConstraint(const DicomTag& tag, |
47 const std::string& dicomQuery, | 47 const std::string& dicomQuery, |
48 bool caseSensitive) | 48 bool caseSensitive) |
49 { | 49 { |
50 ValueRepresentation vr = FromDcmtkBridge::GetValueRepresentation(tag); | 50 ValueRepresentation vr = FromDcmtkBridge::LookupValueRepresentation(tag); |
51 | 51 |
52 if (vr == ValueRepresentation_Sequence) | 52 if (vr == ValueRepresentation_Sequence) |
53 { | 53 { |
54 throw OrthancException(ErrorCode_ParameterOutOfRange); | 54 throw OrthancException(ErrorCode_ParameterOutOfRange); |
55 } | 55 } |