diff OrthancServer/DicomInstanceToStore.cpp @ 2126:03b065778fc3

cleaning up
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 13:47:21 +0100
parents b9bd52c72ba2
children 9329ba17a069
line wrap: on
line diff
--- a/OrthancServer/DicomInstanceToStore.cpp	Mon Nov 07 12:38:09 2016 +0100
+++ b/OrthancServer/DicomInstanceToStore.cpp	Mon Nov 07 13:47:21 2016 +0100
@@ -111,12 +111,11 @@
     if (!json_.HasContent())
     {
       json_.Allocate();
-      FromDcmtkBridge::ToJson(json_.GetContent(), 
-                              *parsed_.GetContent().GetDcmtkObject().getDataset(),
-                              DicomToJsonFormat_Full, 
-                              DicomToJsonFlags_Default,
-                              ORTHANC_MAXIMUM_TAG_LENGTH,
-                              Configuration::GetDefaultEncoding());
+      FromDcmtkBridge::ExtractDicomAsJson(json_.GetContent(), 
+                                          *parsed_.GetContent().GetDcmtkObject().getDataset(),
+                                          DicomToJsonFormat_Full, 
+                                          DicomToJsonFlags_Default,
+                                          ORTHANC_MAXIMUM_TAG_LENGTH);
     }
   }