Mercurial > hg > orthanc
diff OrthancServer/OrthancFindRequestHandler.cpp @ 1758:318c2e83c2bd db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 12:53:45 +0100 |
parents | 98abb8d7f905 |
children | e268412adcf1 |
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp Wed Oct 28 12:29:12 2015 +0100 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Wed Oct 28 12:53:45 2015 +0100 @@ -307,7 +307,16 @@ } #if USE_LOOKUP_RESOURCE == 1 - finder.AddDicomConstraint(tag, value, caseSensitivePN); + + ValueRepresentation vr = FromDcmtkBridge::GetValueRepresentation(tag); + + bool sensitive = true; + if (vr == ValueRepresentation_PatientName) + { + sensitive = caseSensitivePN; + } + + finder.AddDicomConstraint(tag, value, sensitive); #else if (tag == DICOM_TAG_MODALITIES_IN_STUDY)