diff OrthancServer/OrthancInitialization.cpp @ 2006:6301bbcbcaed

more generic support of value representations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 09 Jun 2016 14:48:40 +0200
parents ce90d109bb64
children 4dafe2a0d3ab
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Wed Jun 08 12:36:21 2016 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Thu Jun 09 14:48:40 2016 +0200
@@ -42,6 +42,7 @@
 #include "ServerEnumerations.h"
 #include "DatabaseWrapper.h"
 #include "FromDcmtkBridge.h"
+#include "ToDcmtkBridge.h"
 
 #include <boost/lexical_cast.hpp>
 #include <boost/filesystem.hpp>
@@ -378,7 +379,7 @@
       }
 
       DicomTag tag(FromDcmtkBridge::ParseTag(tags[i]));
-      DcmEVR vr = FromDcmtkBridge::ParseValueRepresentation(content[0].asString());
+      ValueRepresentation vr = StringToValueRepresentation(content[0].asString(), true);
       std::string name = content[1].asString();
       unsigned int minMultiplicity = (content.size() >= 2) ? content[2].asUInt() : 1;
       unsigned int maxMultiplicity = (content.size() >= 3) ? content[3].asUInt() : 1;