156
|
1 from Test import Test
|
|
2
|
|
3 class TestFindStudyByStudyDescription1Result(Test):
|
|
4
|
|
5 def __init__(self, name:str = "FindStudyByStudyDescription1Result"):
|
|
6 super().__init__(name)
|
|
7
|
|
8 def test(self):
|
|
9 self._orthanc.studies.query(
|
|
10 query = {"StudyDescription": "99999-99999"}
|
|
11 )
|
|
12
|
|
13 class TestFindStudyByStudyDescription0Results(Test):
|
|
14
|
|
15 def __init__(self, name:str = "FindStudyByStudyDescription0Results"):
|
|
16 super().__init__(name)
|
|
17
|
|
18 def test(self):
|
|
19 self._orthanc.studies.query(
|
|
20 query = {"StudyDescription": "X"}
|
|
21 )
|
|
22
|
|
23 class TestFindStudyByPatientId1Result(Test):
|
|
24
|
|
25 def __init__(self, name:str = "FindStudyByPatientId1Result"):
|
|
26 super().__init__(name)
|
|
27
|
|
28 def test(self):
|
|
29 self._orthanc.studies.query(
|
|
30 query = {"PatientID": "99999"}
|
|
31 )
|
|
32
|
|
33 class TestFindStudyByPatientId0Results(Test):
|
|
34
|
|
35 def __init__(self, name:str = "FindStudyByPatientId0Results"):
|
|
36 super().__init__(name)
|
|
37
|
|
38 def test(self):
|
|
39 self._orthanc.studies.query(
|
|
40 query = {"PatientID": "X"}
|
|
41 )
|
|
42
|
|
43 class TestFindStudyByPatientId5Results(Test):
|
|
44
|
|
45 def __init__(self, name:str = "FindStudyByPatientId5Results"):
|
|
46 super().__init__(name)
|
|
47
|
|
48 def test(self):
|
|
49 self._orthanc.studies.query(
|
|
50 query = {"PatientID": "99998"}
|
165
|
51 )
|
|
52
|
|
53 class TestFindStudyByPatientId100Results(Test):
|
|
54
|
|
55 def __init__(self, name:str = "FindStudyByPatientId100Results"):
|
|
56 super().__init__(name)
|
|
57
|
|
58 def test(self):
|
|
59 self._orthanc.studies.query(
|
|
60 query = {"PatientID": "99997"}
|
156
|
61 ) |