Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1757:98abb8d7f905 | 1758:318c2e83c2bd |
---|---|
305 // An empty string corresponds to a "*" wildcard constraint, so we ignore it | 305 // An empty string corresponds to a "*" wildcard constraint, so we ignore it |
306 continue; | 306 continue; |
307 } | 307 } |
308 | 308 |
309 #if USE_LOOKUP_RESOURCE == 1 | 309 #if USE_LOOKUP_RESOURCE == 1 |
310 finder.AddDicomConstraint(tag, value, caseSensitivePN); | 310 |
311 ValueRepresentation vr = FromDcmtkBridge::GetValueRepresentation(tag); | |
312 | |
313 bool sensitive = true; | |
314 if (vr == ValueRepresentation_PatientName) | |
315 { | |
316 sensitive = caseSensitivePN; | |
317 } | |
318 | |
319 finder.AddDicomConstraint(tag, value, sensitive); | |
311 #else | 320 #else |
312 | 321 |
313 if (tag == DICOM_TAG_MODALITIES_IN_STUDY) | 322 if (tag == DICOM_TAG_MODALITIES_IN_STUDY) |
314 { | 323 { |
315 findQuery.SetModalitiesInStudy(value); | 324 findQuery.SetModalitiesInStudy(value); |