changeset 1852:efbc3afd6cd3

Efilm and Vitrea manufacturers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Dec 2015 14:59:14 +0100
parents d364926389e0
children b7d3d3b182cf
files NEWS OrthancServer/ServerEnumerations.cpp OrthancServer/ServerEnumerations.h Resources/Configuration.json UnitTestsSources/UnitTestsMain.cpp
diffstat 5 files changed, 23 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Dec 01 14:53:52 2015 +0100
+++ b/NEWS	Tue Dec 01 14:59:14 2015 +0100
@@ -72,7 +72,7 @@
 * "--logdir" flag creates a single log file instead of 3 separate files for errors/warnings/infos
 * "--errors" flag lists the error codes that could be returned by Orthanc
 * Under Windows, the exit status of Orthanc corresponds to the encountered error code
-* New "AgfaImpax" modality manufacturer for AGFA Impax
+* New "AgfaImpax", "Efilm" and "Vitrea" modality manufacturers
 * Upgrade to Boost 1.59.0 for static builds
 
 
--- a/OrthancServer/ServerEnumerations.cpp	Tue Dec 01 14:53:52 2015 +0100
+++ b/OrthancServer/ServerEnumerations.cpp	Tue Dec 01 14:59:14 2015 +0100
@@ -340,6 +340,12 @@
       case ModalityManufacturer_AgfaImpax:
         return "AgfaImpax";
       
+      case ModalityManufacturer_Efilm:
+        return "Efilm";
+      
+      case ModalityManufacturer_Vitrea:
+        return "Vitrea";
+      
       default:
         throw OrthancException(ErrorCode_ParameterOutOfRange);
     }
@@ -407,6 +413,14 @@
     {
       return ModalityManufacturer_AgfaImpax;
     }
+    else if (manufacturer == "Vitrea")
+    {
+      return ModalityManufacturer_Vitrea;
+    }
+    else if (manufacturer == "Efilm")
+    {
+      return ModalityManufacturer_Efilm;
+    }
     else
     {
       throw OrthancException(ErrorCode_ParameterOutOfRange);
--- a/OrthancServer/ServerEnumerations.h	Tue Dec 01 14:53:52 2015 +0100
+++ b/OrthancServer/ServerEnumerations.h	Tue Dec 01 14:59:14 2015 +0100
@@ -63,7 +63,9 @@
     ModalityManufacturer_MedInria,
     ModalityManufacturer_Dcm4Chee,
     ModalityManufacturer_SyngoVia,
-    ModalityManufacturer_AgfaImpax
+    ModalityManufacturer_AgfaImpax,
+    ModalityManufacturer_Efilm,
+    ModalityManufacturer_Vitrea
   };
 
   enum DicomRequestType
--- a/Resources/Configuration.json	Tue Dec 01 14:53:52 2015 +0100
+++ b/Resources/Configuration.json	Tue Dec 01 14:59:14 2015 +0100
@@ -150,8 +150,9 @@
      * A fourth parameter is available to enable patches for a
      * specific PACS manufacturer. The allowed values are currently
      * "Generic" (default value), "StoreScp" (storescp tool from
-     * DCMTK), "ClearCanvas", "MedInria", "Dcm4Chee", "SyngoVia", and
-     * "AgfaImpax". This parameter is case-sensitive.
+     * DCMTK), "ClearCanvas", "MedInria", "Dcm4Chee", "SyngoVia",
+     * "AgfaImpax", "Efilm" and "Vitrea". This parameter is
+     * case-sensitive.
      **/
     // "clearcanvas" : [ "CLEARCANVAS", "192.168.1.1", 104, "ClearCanvas" ]
   },
--- a/UnitTestsSources/UnitTestsMain.cpp	Tue Dec 01 14:53:52 2015 +0100
+++ b/UnitTestsSources/UnitTestsMain.cpp	Tue Dec 01 14:59:14 2015 +0100
@@ -530,6 +530,8 @@
   ASSERT_STREQ("Dcm4Chee", EnumerationToString(StringToModalityManufacturer("Dcm4Chee")));
   ASSERT_STREQ("SyngoVia", EnumerationToString(StringToModalityManufacturer("SyngoVia")));
   ASSERT_STREQ("AgfaImpax", EnumerationToString(StringToModalityManufacturer("AgfaImpax")));
+  ASSERT_STREQ("Efilm", EnumerationToString(StringToModalityManufacturer("Efilm")));
+  ASSERT_STREQ("Vitrea", EnumerationToString(StringToModalityManufacturer("Vitrea")));
 }