forked from yubin-park/drgpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmdc07_tests.py
49 lines (31 loc) · 1.36 KB
/
mdc07_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import unittest
from drgpy.msdrg import DRGEngine
class TestMCD07(unittest.TestCase):
def test_mdcs07(self):
de = DRGEngine()
drg_lst = de.get_drg_all(["S36240A"], ["06184JB"])
self.assertTrue("407" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["0F140D8"])
self.assertTrue("410" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["0F540ZZ", "0F9900Z"])
self.assertTrue("413" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["0F540ZZ", "0FB40ZZ"])
self.assertTrue("416" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["0FB44ZZ"])
self.assertTrue("419" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["07JP0ZZ"])
self.assertTrue("422" in drg_lst)
drg_lst = de.get_drg_all(["S36240A"], ["008X3ZZ"])
self.assertTrue("425" in drg_lst)
drg_lst = de.get_drg_all(["K7469"], [])
self.assertTrue("434" in drg_lst)
drg_lst = de.get_drg_all(["C220"], [])
self.assertTrue("437" in drg_lst)
drg_lst = de.get_drg_all(["B252"], [])
self.assertTrue("440" in drg_lst)
drg_lst = de.get_drg_all(["B182"], [])
self.assertTrue("443" in drg_lst)
drg_lst = de.get_drg_all(["K8000"], [])
self.assertTrue("446" in drg_lst)
if __name__=="__main__":
unittest.main()