Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 721:43fd1686f4a2 find-refactoring
renamed QueryMetadata into MetadataQuery
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 14 Oct 2024 16:00:43 +0200 |
parents | 8280fce0868a |
children | 6cdba3322ef0 |
comparison
equal
deleted
inserted
replaced
720:8280fce0868a | 721:43fd1686f4a2 |
---|---|
11121 # filter on metadata | 11121 # filter on metadata |
11122 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', | 11122 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', |
11123 'Query' : { | 11123 'Query' : { |
11124 'SeriesDescription' : 'T*' | 11124 'SeriesDescription' : 'T*' |
11125 }, | 11125 }, |
11126 'QueryMetadata' : { | 11126 'MetadataQuery' : { |
11127 'my-metadata': '*2*' | 11127 'my-metadata': '*2*' |
11128 } | 11128 } |
11129 }) | 11129 }) |
11130 | 11130 |
11131 self.assertEqual(1, len(a)) | 11131 self.assertEqual(1, len(a)) |
11279 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', | 11279 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', |
11280 'Query' : { | 11280 'Query' : { |
11281 'PatientName' : '*' | 11281 'PatientName' : '*' |
11282 }, | 11282 }, |
11283 'RequestedTags': ['StudyDate'], | 11283 'RequestedTags': ['StudyDate'], |
11284 'QueryMetadata' : { | 11284 'MetadataQuery' : { |
11285 'my-metadata': "*nee*" | 11285 'my-metadata': "*nee*" |
11286 }, | 11286 }, |
11287 'OrderBy' : [ | 11287 'OrderBy' : [ |
11288 { | 11288 { |
11289 'Type': 'DicomTag', | 11289 'Type': 'DicomTag', |