changeset 1372:1412ec22ee0b query-retrieve

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 27 May 2015 17:47:39 +0200
parents f528849ee9f7
children 21a2929e541d
files Core/DicomFormat/DicomMap.cpp
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp	Wed May 27 17:33:13 2015 +0200
+++ b/Core/DicomFormat/DicomMap.cpp	Wed May 27 17:47:39 2015 +0200
@@ -273,6 +273,16 @@
     result.SetValue(DICOM_TAG_ACCESSION_NUMBER, "");
     result.SetValue(DICOM_TAG_PATIENT_ID, "");
     result.SetValue(DICOM_TAG_STUDY_INSTANCE_UID, "");
+
+    // These tags are considered as "main" by Orthanc, but are not in the Series module
+    result.Remove(DicomTag(0x0008, 0x0070));  // Manufacturer
+    result.Remove(DicomTag(0x0008, 0x1010));  // Station name
+    result.Remove(DicomTag(0x0018, 0x0024));  // Sequence name
+    result.Remove(DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES);
+    result.Remove(DICOM_TAG_IMAGES_IN_ACQUISITION);
+    result.Remove(DICOM_TAG_NUMBER_OF_SLICES);
+    result.Remove(DICOM_TAG_NUMBER_OF_TEMPORAL_POSITIONS);
+    result.Remove(DICOM_TAG_NUMBER_OF_TIME_SLICES);
   }
 
   void DicomMap::SetupFindInstanceTemplate(DicomMap& result)