# HG changeset patch # User Sebastien Jodogne # Date 1647935357 -3600 # Node ID f53cd250beccde868041b75048dd62d355c18d33 # Parent eb46265e214f17808f93f9cabff35ddfad18ff18 test_dicomweb_jpeg2k_implicit diff -r eb46265e214f -r f53cd250becc Database/2022-03-08-RicSmi.dcm Binary file Database/2022-03-08-RicSmi.dcm has changed diff -r eb46265e214f -r f53cd250becc Tests/Tests.py --- 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')