diff OrthancServer/OrthancRestApi.cpp @ 80:6212bf978584

status of series
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2012 15:18:12 +0200
parents b8dfde8d64e8
children ebce15865cce
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Thu Sep 20 13:47:54 2012 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Thu Sep 20 15:18:12 2012 +0200
@@ -219,8 +219,8 @@
       return false;
     }
 
-    if (m.GetValue(DicomTag::ACCESSION_NUMBER).AsString().size() <= 2 &&
-        m.GetValue(DicomTag::PATIENT_ID).AsString().size() <= 2)
+    if (m.GetValue(DICOM_TAG_ACCESSION_NUMBER).AsString().size() <= 2 &&
+        m.GetValue(DICOM_TAG_PATIENT_ID).AsString().size() <= 2)
     {
       return false;
     }        
@@ -242,9 +242,9 @@
       return false;
     }
 
-    if ((m.GetValue(DicomTag::ACCESSION_NUMBER).AsString().size() <= 2 &&
-         m.GetValue(DicomTag::PATIENT_ID).AsString().size() <= 2) ||
-        m.GetValue(DicomTag::STUDY_INSTANCE_UID).AsString().size() <= 2)
+    if ((m.GetValue(DICOM_TAG_ACCESSION_NUMBER).AsString().size() <= 2 &&
+         m.GetValue(DICOM_TAG_PATIENT_ID).AsString().size() <= 2) ||
+        m.GetValue(DICOM_TAG_STUDY_INSTANCE_UID).AsString().size() <= 2)
     {
       return false;
     }        
@@ -281,7 +281,7 @@
       {
         return false;
       }
-      m.CopyTagIfExists(patients.GetAnswer(i), DicomTag::PATIENT_ID);
+      m.CopyTagIfExists(patients.GetAnswer(i), DICOM_TAG_PATIENT_ID);
 
       DicomFindAnswers studies;
       c.FindStudy(studies, m);
@@ -299,8 +299,8 @@
         {
           return false;
         }
-        m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::PATIENT_ID);
-        m.CopyTagIfExists(studies.GetAnswer(j), DicomTag::STUDY_INSTANCE_UID);
+        m.CopyTagIfExists(studies.GetAnswer(j), DICOM_TAG_PATIENT_ID);
+        m.CopyTagIfExists(studies.GetAnswer(j), DICOM_TAG_STUDY_INSTANCE_UID);
 
         DicomFindAnswers series;
         c.FindSeries(series, m);