diff OrthancServer/ParsedDicomFile.cpp @ 1831:3ae2ff249675

"/instances/.../header" to get the meta information (header) of the DICOM instance
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Nov 2015 18:53:00 +0100
parents 4b6673e828f4
children b1291df2f780
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.cpp	Thu Nov 26 15:56:32 2015 +0100
+++ b/OrthancServer/ParsedDicomFile.cpp	Thu Nov 26 18:53:00 2015 +0100
@@ -1168,6 +1168,13 @@
   }
 
 
+  void ParsedDicomFile::HeaderToJson(Json::Value& target, 
+                                     DicomToJsonFormat format)
+  {
+    FromDcmtkBridge::ToJson(target, *pimpl_->file_->getMetaInfo(), format, DicomToJsonFlags_None, 0);
+  }
+
+
   bool ParsedDicomFile::HasTag(const DicomTag& tag) const
   {
     DcmTag key(tag.GetGroup(), tag.GetElement());