diff Tests/Tests.py @ 455:f53cd250becc

test_dicomweb_jpeg2k_implicit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Mar 2022 08:49:17 +0100
parents 06eea14c5906
children 8121c8aab919
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Feb 23 14:11:03 2022 +0100
+++ b/Tests/Tests.py	Tue Mar 22 08:49:17 2022 +0100
@@ -8405,3 +8405,15 @@
         a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Patient',
                                              'Query' : { 'PatientName' : 'MyName2*' }})
         self.assertEqual(1, len(a))
+
+
+    def test_dicomweb_jpeg2k_implicit(self):
+        # This is a file encoded using 1.2.840.10008.1.2.4.90 transfer
+        # syntax, in which all the DICOM tags have the "UN" value
+        # representation. Support introduced in Orthanc 1.10.1.
+        # https://groups.google.com/g/orthanc-users/c/86fobx3ZyoM/m/KBG17un6AQAJ
+        a = UploadInstance(_REMOTE, '2022-03-08-RicSmi.dcm') ['ID']
+        b = DoGet(_REMOTE, '/instances/%s/file' % a,
+                  headers = { 'Accept' : 'application/dicom+json' })
+        self.assertEqual(b['0020000D']['Value'][0], '1.2.276.0.7230010.3.1.2.2358427580.3460.1646695830.793')
+        self.assertEqual(b['0020000E']['Value'][0], '1.2.276.0.7230010.3.1.3.2358427580.3460.1646695830.794')