comparison OrthancServer/OrthancRestApi.cpp @ 77:b8dfde8d64e8

new dicom tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2012 13:41:18 +0200
parents a70bb32802ae
children 6212bf978584
comparison
equal deleted inserted replaced
76:e2d68529605f 77:b8dfde8d64e8
242 return false; 242 return false;
243 } 243 }
244 244
245 if ((m.GetValue(DicomTag::ACCESSION_NUMBER).AsString().size() <= 2 && 245 if ((m.GetValue(DicomTag::ACCESSION_NUMBER).AsString().size() <= 2 &&
246 m.GetValue(DicomTag::PATIENT_ID).AsString().size() <= 2) || 246 m.GetValue(DicomTag::PATIENT_ID).AsString().size() <= 2) ||
247 m.GetValue(DicomTag::STUDY_UID).AsString().size() <= 2) 247 m.GetValue(DicomTag::STUDY_INSTANCE_UID).AsString().size() <= 2)
248 { 248 {
249 return false; 249 return false;
250 } 250 }
251 251
252 DicomFindAnswers answers; 252 DicomFindAnswers answers;
298 if (!MergeQueryAndTemplate(m, postData)) 298 if (!MergeQueryAndTemplate(m, postData))
299 { 299 {
300 return false; 300 return false;
301 } 301 }
302 m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::PATIENT_ID); 302 m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::PATIENT_ID);
303 m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::STUDY_UID); 303 m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::STUDY_INSTANCE_UID);
304 304
305 DicomFindAnswers series; 305 DicomFindAnswers series;
306 c.FindSeries(series, m); 306 c.FindSeries(series, m);
307 307
308 // Loop over the found series 308 // Loop over the found series