Spaces:
Running
Running
danielhajialigol
commited on
Commit
•
f73dc21
1
Parent(s):
a336a76
pushing
Browse files- MSDRG_RULE13.csv +752 -0
- app.py +223 -0
- discharge_embeddings.pt +3 -0
- model.py +105 -0
- related_summaries.py +43 -0
- utils.py +224 -0
MSDRG_RULE13.csv
ADDED
@@ -0,0 +1,752 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MS-DRG,DRG_CODE,MDC,TYPE,DESCRIPTION,WEIGHT
|
2 |
+
1,1,PRE,SURG,HEART TRANSPLANT OR IMPLANT OF HEART ASSIST SYSTEM W MCC,26.0295
|
3 |
+
2,2,PRE,SURG,HEART TRANSPLANT OR IMPLANT OF HEART ASSIST SYSTEM W/O MCC,13.9131
|
4 |
+
3,3,PRE,SURG,"ECMO OR TRACH W MV 96+ HRS OR PDX EXC FACE, MOUTH & NECK W MAJ O.R.",17.7369
|
5 |
+
4,4,PRE,SURG,"TRACH W MV 96+ HRS OR PDX EXC FACE, MOUTH & NECK W/O MAJ O.R.",10.8833
|
6 |
+
5,5,PRE,SURG,LIVER TRANSPLANT W MCC OR INTESTINAL TRANSPLANT,10.9894
|
7 |
+
6,6,PRE,SURG,LIVER TRANSPLANT W/O MCC,4.7178
|
8 |
+
7,7,PRE,SURG,LUNG TRANSPLANT,9.6127
|
9 |
+
8,8,PRE,SURG,SIMULTANEOUS PANCREAS/KIDNEY TRANSPLANT,5.111
|
10 |
+
10,10,PRE,SURG,PANCREAS TRANSPLANT,3.8954
|
11 |
+
11,11,PRE,SURG,"TRACHEOSTOMY FOR FACE,MOUTH & NECK DIAGNOSES W MCC",4.8434
|
12 |
+
12,12,PRE,SURG,"TRACHEOSTOMY FOR FACE,MOUTH & NECK DIAGNOSES W CC",3.1576
|
13 |
+
13,13,PRE,SURG,"TRACHEOSTOMY FOR FACE,MOUTH & NECK DIAGNOSES W/O CC/MCC",1.9566
|
14 |
+
14,14,PRE,SURG,ALLOGENEIC BONE MARROW TRANSPLANT,10.5255
|
15 |
+
16,16,PRE,SURG,AUTOLOGOUS BONE MARROW TRANSPLANT W CC/MCC,6.0932
|
16 |
+
17,17,PRE,SURG,AUTOLOGOUS BONE MARROW TRANSPLANT W/O CC/MCC,4.5817
|
17 |
+
20,20,01,SURG,INTRACRANIAL VASCULAR PROCEDURES W PDX HEMORRHAGE W MCC,9.1016
|
18 |
+
21,21,01,SURG,INTRACRANIAL VASCULAR PROCEDURES W PDX HEMORRHAGE W CC,6.64
|
19 |
+
22,22,01,SURG,INTRACRANIAL VASCULAR PROCEDURES W PDX HEMORRHAGE W/O CC/MCC,4.5056
|
20 |
+
23,23,01,SURG,CRANIO W MAJOR DEV IMPL/ACUTE COMPLEX CNS PDX W MCC OR CHEMO IMPLANT,5.2378
|
21 |
+
24,24,01,SURG,CRANIO W MAJOR DEV IMPL/ACUTE COMPLEX CNS PDX W/O MCC,3.5279
|
22 |
+
25,25,01,SURG,CRANIOTOMY & ENDOVASCULAR INTRACRANIAL PROCEDURES W MCC,4.5958
|
23 |
+
26,26,01,SURG,CRANIOTOMY & ENDOVASCULAR INTRACRANIAL PROCEDURES W CC,2.9555
|
24 |
+
27,27,01,SURG,CRANIOTOMY & ENDOVASCULAR INTRACRANIAL PROCEDURES W/O CC/MCC,2.1631
|
25 |
+
28,28,01,SURG,SPINAL PROCEDURES W MCC,5.6028
|
26 |
+
29,29,01,SURG,SPINAL PROCEDURES W CC OR SPINAL NEUROSTIMULATORS,2.9277
|
27 |
+
30,30,01,SURG,SPINAL PROCEDURES W/O CC/MCC,1.7854
|
28 |
+
31,31,01,SURG,VENTRICULAR SHUNT PROCEDURES W MCC,4.2645
|
29 |
+
32,32,01,SURG,VENTRICULAR SHUNT PROCEDURES W CC,2.0348
|
30 |
+
33,33,01,SURG,VENTRICULAR SHUNT PROCEDURES W/O CC/MCC,1.4381
|
31 |
+
34,34,01,SURG,CAROTID ARTERY STENT PROCEDURE W MCC,3.6918
|
32 |
+
35,35,01,SURG,CAROTID ARTERY STENT PROCEDURE W CC,2.1965
|
33 |
+
36,36,01,SURG,CAROTID ARTERY STENT PROCEDURE W/O CC/MCC,1.661
|
34 |
+
37,37,01,SURG,EXTRACRANIAL PROCEDURES W MCC,3.187
|
35 |
+
38,38,01,SURG,EXTRACRANIAL PROCEDURES W CC,1.5741
|
36 |
+
39,39,01,SURG,EXTRACRANIAL PROCEDURES W/O CC/MCC,1.0285
|
37 |
+
40,40,01,SURG,PERIPH/CRANIAL NERVE & OTHER NERV SYST PROC W MCC,3.868
|
38 |
+
41,41,01,SURG,PERIPH/CRANIAL NERVE & OTHER NERV SYST PROC W CC OR PERIPH NEUROSTIM,2.133
|
39 |
+
42,42,01,SURG,PERIPH/CRANIAL NERVE & OTHER NERV SYST PROC W/O CC/MCC,1.7744
|
40 |
+
52,52,01,MED,SPINAL DISORDERS & INJURIES W CC/MCC,1.4903
|
41 |
+
53,53,01,MED,SPINAL DISORDERS & INJURIES W/O CC/MCC,0.9046
|
42 |
+
54,54,01,MED,NERVOUS SYSTEM NEOPLASMS W MCC,1.3962
|
43 |
+
55,55,01,MED,NERVOUS SYSTEM NEOPLASMS W/O MCC,1.0486
|
44 |
+
56,56,01,MED,DEGENERATIVE NERVOUS SYSTEM DISORDERS W MCC,1.7194
|
45 |
+
57,57,01,MED,DEGENERATIVE NERVOUS SYSTEM DISORDERS W/O MCC,0.968
|
46 |
+
58,58,01,MED,MULTIPLE SCLEROSIS & CEREBELLAR ATAXIA W MCC,1.6472
|
47 |
+
59,59,01,MED,MULTIPLE SCLEROSIS & CEREBELLAR ATAXIA W CC,1.0088
|
48 |
+
60,60,01,MED,MULTIPLE SCLEROSIS & CEREBELLAR ATAXIA W/O CC/MCC,0.7807
|
49 |
+
61,61,01,MED,ACUTE ISCHEMIC STROKE W USE OF THROMBOLYTIC AGENT W MCC,2.8668
|
50 |
+
62,62,01,MED,ACUTE ISCHEMIC STROKE W USE OF THROMBOLYTIC AGENT W CC,1.9551
|
51 |
+
63,63,01,MED,ACUTE ISCHEMIC STROKE W USE OF THROMBOLYTIC AGENT W/O CC/MCC,1.5366
|
52 |
+
64,64,01,MED,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION W MCC,1.8424
|
53 |
+
65,65,01,MED,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION W CC,1.1345
|
54 |
+
66,66,01,MED,INTRACRANIAL HEMORRHAGE OR CEREBRAL INFARCTION W/O CC/MCC,0.8135
|
55 |
+
67,67,01,MED,NONSPECIFIC CVA & PRECEREBRAL OCCLUSION W/O INFARCT W MCC,1.5074
|
56 |
+
68,68,01,MED,NONSPECIFIC CVA & PRECEREBRAL OCCLUSION W/O INFARCT W/O MCC,0.8899
|
57 |
+
69,69,01,MED,TRANSIENT ISCHEMIA,0.7449
|
58 |
+
70,70,01,MED,NONSPECIFIC CEREBROVASCULAR DISORDERS W MCC,1.7056
|
59 |
+
71,71,01,MED,NONSPECIFIC CEREBROVASCULAR DISORDERS W CC,1.0174
|
60 |
+
72,72,01,MED,NONSPECIFIC CEREBROVASCULAR DISORDERS W/O CC/MCC,0.7506
|
61 |
+
73,73,01,MED,CRANIAL & PERIPHERAL NERVE DISORDERS W MCC,1.282
|
62 |
+
74,74,01,MED,CRANIAL & PERIPHERAL NERVE DISORDERS W/O MCC,0.8837
|
63 |
+
75,75,01,MED,VIRAL MENINGITIS W CC/MCC,1.7611
|
64 |
+
76,76,01,MED,VIRAL MENINGITIS W/O CC/MCC,0.8947
|
65 |
+
77,77,01,MED,HYPERTENSIVE ENCEPHALOPATHY W MCC,1.6426
|
66 |
+
78,78,01,MED,HYPERTENSIVE ENCEPHALOPATHY W CC,0.979
|
67 |
+
79,79,01,MED,HYPERTENSIVE ENCEPHALOPATHY W/O CC/MCC,0.7297
|
68 |
+
80,80,01,MED,NONTRAUMATIC STUPOR & COMA W MCC,1.2616
|
69 |
+
81,81,01,MED,NONTRAUMATIC STUPOR & COMA W/O MCC,0.7416
|
70 |
+
82,82,01,MED,"TRAUMATIC STUPOR & COMA, COMA >1 HR W MCC",1.9249
|
71 |
+
83,83,01,MED,"TRAUMATIC STUPOR & COMA, COMA >1 HR W CC",1.3458
|
72 |
+
84,84,01,MED,"TRAUMATIC STUPOR & COMA, COMA >1 HR W/O CC/MCC",0.8696
|
73 |
+
85,85,01,MED,"TRAUMATIC STUPOR & COMA, COMA <1 HR W MCC",2.0387
|
74 |
+
86,86,01,MED,"TRAUMATIC STUPOR & COMA, COMA <1 HR W CC",1.1874
|
75 |
+
87,87,01,MED,"TRAUMATIC STUPOR & COMA, COMA <1 HR W/O CC/MCC",0.7605
|
76 |
+
88,88,01,MED,CONCUSSION W MCC,1.5687
|
77 |
+
89,89,01,MED,CONCUSSION W CC,0.9791
|
78 |
+
90,90,01,MED,CONCUSSION W/O CC/MCC,0.7218
|
79 |
+
91,91,01,MED,OTHER DISORDERS OF NERVOUS SYSTEM W MCC,1.6583
|
80 |
+
92,92,01,MED,OTHER DISORDERS OF NERVOUS SYSTEM W CC,0.9214
|
81 |
+
93,93,01,MED,OTHER DISORDERS OF NERVOUS SYSTEM W/O CC/MCC,0.6938
|
82 |
+
94,94,01,MED,BACTERIAL & TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM W MCC,3.5656
|
83 |
+
95,95,01,MED,BACTERIAL & TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM W CC,2.4627
|
84 |
+
96,96,01,MED,BACTERIAL & TUBERCULOUS INFECTIONS OF NERVOUS SYSTEM W/O CC/MCC,2.0158
|
85 |
+
97,97,01,MED,NON-BACTERIAL INFECT OF NERVOUS SYS EXC VIRAL MENINGITIS W MCC,3.3714
|
86 |
+
98,98,01,MED,NON-BACTERIAL INFECT OF NERVOUS SYS EXC VIRAL MENINGITIS W CC,1.8418
|
87 |
+
99,99,01,MED,NON-BACTERIAL INFECT OF NERVOUS SYS EXC VIRAL MENINGITIS W/O CC/MCC,1.2427
|
88 |
+
100,100,01,MED,SEIZURES W MCC,1.557
|
89 |
+
101,101,01,MED,SEIZURES W/O MCC,0.7643
|
90 |
+
102,102,01,MED,HEADACHES W MCC,1.0209
|
91 |
+
103,103,01,MED,HEADACHES W/O MCC,0.6893
|
92 |
+
113,113,02,SURG,ORBITAL PROCEDURES W CC/MCC,1.8587
|
93 |
+
114,114,02,SURG,ORBITAL PROCEDURES W/O CC/MCC,0.9589
|
94 |
+
115,115,02,SURG,EXTRAOCULAR PROCEDURES EXCEPT ORBIT,1.2407
|
95 |
+
116,116,02,SURG,INTRAOCULAR PROCEDURES W CC/MCC,1.5022
|
96 |
+
117,117,02,SURG,INTRAOCULAR PROCEDURES W/O CC/MCC,0.7234
|
97 |
+
121,121,02,MED,ACUTE MAJOR EYE INFECTIONS W CC/MCC,0.9589
|
98 |
+
122,122,02,MED,ACUTE MAJOR EYE INFECTIONS W/O CC/MCC,0.6533
|
99 |
+
123,123,02,MED,NEUROLOGICAL EYE DISORDERS,0.7542
|
100 |
+
124,124,02,MED,OTHER DISORDERS OF THE EYE W MCC,1.1885
|
101 |
+
125,125,02,MED,OTHER DISORDERS OF THE EYE W/O MCC,0.685
|
102 |
+
129,129,03,SURG,MAJOR HEAD & NECK PROCEDURES W CC/MCC OR MAJOR DEVICE,2.15
|
103 |
+
130,130,03,SURG,MAJOR HEAD & NECK PROCEDURES W/O CC/MCC,1.2065
|
104 |
+
131,131,03,SURG,CRANIAL/FACIAL PROCEDURES W CC/MCC,2.3443
|
105 |
+
132,132,03,SURG,CRANIAL/FACIAL PROCEDURES W/O CC/MCC,1.2362
|
106 |
+
133,133,03,SURG,"OTHER EAR, NOSE, MOUTH & THROAT O.R. PROCEDURES W CC/MCC",1.7818
|
107 |
+
134,134,03,SURG,"OTHER EAR, NOSE, MOUTH & THROAT O.R. PROCEDURES W/O CC/MCC",0.9177
|
108 |
+
135,135,03,SURG,SINUS & MASTOID PROCEDURES W CC/MCC,2.0002
|
109 |
+
136,136,03,SURG,SINUS & MASTOID PROCEDURES W/O CC/MCC,1.0697
|
110 |
+
137,137,03,SURG,MOUTH PROCEDURES W CC/MCC,1.3192
|
111 |
+
138,138,03,SURG,MOUTH PROCEDURES W/O CC/MCC,0.7388
|
112 |
+
139,139,03,SURG,SALIVARY GLAND PROCEDURES,0.8922
|
113 |
+
146,146,03,MED,"EAR, NOSE, MOUTH & THROAT MALIGNANCY W MCC",2.2347
|
114 |
+
147,147,03,MED,"EAR, NOSE, MOUTH & THROAT MALIGNANCY W CC",1.2486
|
115 |
+
148,148,03,MED,"EAR, NOSE, MOUTH & THROAT MALIGNANCY W/O CC/MCC",0.7488
|
116 |
+
149,149,03,MED,DYSEQUILIBRIUM,0.6462
|
117 |
+
150,150,03,MED,EPISTAXIS W MCC,1.389
|
118 |
+
151,151,03,MED,EPISTAXIS W/O MCC,0.6458
|
119 |
+
152,152,03,MED,OTITIS MEDIA & URI W MCC,1.0166
|
120 |
+
153,153,03,MED,OTITIS MEDIA & URI W/O MCC,0.6605
|
121 |
+
154,154,03,MED,"OTHER EAR, NOSE, MOUTH & THROAT DIAGNOSES W MCC",1.4138
|
122 |
+
155,155,03,MED,"OTHER EAR, NOSE, MOUTH & THROAT DIAGNOSES W CC",0.9137
|
123 |
+
156,156,03,MED,"OTHER EAR, NOSE, MOUTH & THROAT DIAGNOSES W/O CC/MCC",0.6349
|
124 |
+
157,157,03,MED,DENTAL & ORAL DISEASES W MCC,1.601
|
125 |
+
158,158,03,MED,DENTAL & ORAL DISEASES W CC,0.8988
|
126 |
+
159,159,03,MED,DENTAL & ORAL DISEASES W/O CC/MCC,0.5969
|
127 |
+
163,163,04,SURG,MAJOR CHEST PROCEDURES W MCC,5.1193
|
128 |
+
164,164,04,SURG,MAJOR CHEST PROCEDURES W CC,2.6191
|
129 |
+
165,165,04,SURG,MAJOR CHEST PROCEDURES W/O CC/MCC,1.7922
|
130 |
+
166,166,04,SURG,OTHER RESP SYSTEM O.R. PROCEDURES W MCC,3.7513
|
131 |
+
167,167,04,SURG,OTHER RESP SYSTEM O.R. PROCEDURES W CC,2.0043
|
132 |
+
168,168,04,SURG,OTHER RESP SYSTEM O.R. PROCEDURES W/O CC/MCC,1.3153
|
133 |
+
175,175,04,MED,PULMONARY EMBOLISM W MCC,1.587
|
134 |
+
176,176,04,MED,PULMONARY EMBOLISM W/O MCC,1.0379
|
135 |
+
177,177,04,MED,RESPIRATORY INFECTIONS & INFLAMMATIONS W MCC,2.0549
|
136 |
+
178,178,04,MED,RESPIRATORY INFECTIONS & INFLAMMATIONS W CC,1.4403
|
137 |
+
179,179,04,MED,RESPIRATORY INFECTIONS & INFLAMMATIONS W/O CC/MCC,0.9799
|
138 |
+
180,180,04,MED,RESPIRATORY NEOPLASMS W MCC,1.7567
|
139 |
+
181,181,04,MED,RESPIRATORY NEOPLASMS W CC,1.2108
|
140 |
+
182,182,04,MED,RESPIRATORY NEOPLASMS W/O CC/MCC,0.8275
|
141 |
+
183,183,04,MED,MAJOR CHEST TRAUMA W MCC,1.4804
|
142 |
+
184,184,04,MED,MAJOR CHEST TRAUMA W CC,1.0171
|
143 |
+
185,185,04,MED,MAJOR CHEST TRAUMA W/O CC/MCC,0.6961
|
144 |
+
186,186,04,MED,PLEURAL EFFUSION W MCC,1.5746
|
145 |
+
187,187,04,MED,PLEURAL EFFUSION W CC,1.1169
|
146 |
+
188,188,04,MED,PLEURAL EFFUSION W/O CC/MCC,0.7544
|
147 |
+
189,189,04,MED,PULMONARY EDEMA & RESPIRATORY FAILURE,1.2461
|
148 |
+
190,190,04,MED,CHRONIC OBSTRUCTIVE PULMONARY DISEASE W MCC,1.186
|
149 |
+
191,191,04,MED,CHRONIC OBSTRUCTIVE PULMONARY DISEASE W CC,0.9521
|
150 |
+
192,192,04,MED,CHRONIC OBSTRUCTIVE PULMONARY DISEASE W/O CC/MCC,0.7072
|
151 |
+
193,193,04,MED,SIMPLE PNEUMONIA & PLEURISY W MCC,1.4893
|
152 |
+
194,194,04,MED,SIMPLE PNEUMONIA & PLEURISY W CC,0.9996
|
153 |
+
195,195,04,MED,SIMPLE PNEUMONIA & PLEURISY W/O CC/MCC,0.7078
|
154 |
+
196,196,04,MED,INTERSTITIAL LUNG DISEASE W MCC,1.682
|
155 |
+
197,197,04,MED,INTERSTITIAL LUNG DISEASE W CC,1.1209
|
156 |
+
198,198,04,MED,INTERSTITIAL LUNG DISEASE W/O CC/MCC,0.7879
|
157 |
+
199,199,04,MED,PNEUMOTHORAX W MCC,1.8915
|
158 |
+
200,200,04,MED,PNEUMOTHORAX W CC,1.0242
|
159 |
+
201,201,04,MED,PNEUMOTHORAX W/O CC/MCC,0.6792
|
160 |
+
202,202,04,MED,BRONCHITIS & ASTHMA W CC/MCC,0.8704
|
161 |
+
203,203,04,MED,BRONCHITIS & ASTHMA W/O CC/MCC,0.6228
|
162 |
+
204,204,04,MED,RESPIRATORY SIGNS & SYMPTOMS,0.6822
|
163 |
+
205,205,04,MED,OTHER RESPIRATORY SYSTEM DIAGNOSES W MCC,1.3809
|
164 |
+
206,206,04,MED,OTHER RESPIRATORY SYSTEM DIAGNOSES W/O MCC,0.7763
|
165 |
+
207,207,04,MED,RESPIRATORY SYSTEM DIAGNOSIS W VENTILATOR SUPPORT 96+ HOURS,5.3619
|
166 |
+
208,208,04,MED,RESPIRATORY SYSTEM DIAGNOSIS W VENTILATOR SUPPORT <96 HOURS,2.2899
|
167 |
+
215,215,05,SURG,OTHER HEART ASSIST SYSTEM IMPLANT,14.1036
|
168 |
+
216,216,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W CARD CATH W MCC,9.519
|
169 |
+
217,217,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W CARD CATH W CC,6.3495
|
170 |
+
218,218,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W CARD CATH W/O CC/MCC,5.3429
|
171 |
+
219,219,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W/O CARD CATH W MCC,7.839
|
172 |
+
220,220,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W/O CARD CATH W CC,5.2438
|
173 |
+
221,221,05,SURG,CARDIAC VALVE & OTH MAJ CARDIOTHORACIC PROC W/O CARD CATH W/O CC/MCC,4.4232
|
174 |
+
222,222,05,SURG,CARDIAC DEFIB IMPLANT W CARDIAC CATH W AMI/HF/SHOCK W MCC,8.5506
|
175 |
+
223,223,05,SURG,CARDIAC DEFIB IMPLANT W CARDIAC CATH W AMI/HF/SHOCK W/O MCC,6.1065
|
176 |
+
224,224,05,SURG,CARDIAC DEFIB IMPLANT W CARDIAC CATH W/O AMI/HF/SHOCK W MCC,7.6758
|
177 |
+
225,225,05,SURG,CARDIAC DEFIB IMPLANT W CARDIAC CATH W/O AMI/HF/SHOCK W/O MCC,5.7605
|
178 |
+
226,226,05,SURG,CARDIAC DEFIBRILLATOR IMPLANT W/O CARDIAC CATH W MCC,6.7354
|
179 |
+
227,227,05,SURG,CARDIAC DEFIBRILLATOR IMPLANT W/O CARDIAC CATH W/O MCC,5.1886
|
180 |
+
228,228,05,SURG,OTHER CARDIOTHORACIC PROCEDURES W MCC,7.0815
|
181 |
+
229,229,05,SURG,OTHER CARDIOTHORACIC PROCEDURES W CC,4.6279
|
182 |
+
230,230,05,SURG,OTHER CARDIOTHORACIC PROCEDURES W/O CC/MCC,3.8111
|
183 |
+
231,231,05,SURG,CORONARY BYPASS W PTCA W MCC,7.5297
|
184 |
+
232,232,05,SURG,CORONARY BYPASS W PTCA W/O MCC,5.7151
|
185 |
+
233,233,05,SURG,CORONARY BYPASS W CARDIAC CATH W MCC,7.2292
|
186 |
+
234,234,05,SURG,CORONARY BYPASS W CARDIAC CATH W/O MCC,4.8413
|
187 |
+
235,235,05,SURG,CORONARY BYPASS W/O CARDIAC CATH W MCC,5.8014
|
188 |
+
236,236,05,SURG,CORONARY BYPASS W/O CARDIAC CATH W/O MCC,3.7777
|
189 |
+
237,237,05,SURG,MAJOR CARDIOVASC PROCEDURES W MCC,5.117
|
190 |
+
238,238,05,SURG,MAJOR CARDIOVASC PROCEDURES W/O MCC,3.1863
|
191 |
+
239,239,05,SURG,AMPUTATION FOR CIRC SYS DISORDERS EXC UPPER LIMB & TOE W MCC,4.6194
|
192 |
+
240,240,05,SURG,AMPUTATION FOR CIRC SYS DISORDERS EXC UPPER LIMB & TOE W CC,2.6531
|
193 |
+
241,241,05,SURG,AMPUTATION FOR CIRC SYS DISORDERS EXC UPPER LIMB & TOE W/O CC/MCC,1.4825
|
194 |
+
242,242,05,SURG,PERMANENT CARDIAC PACEMAKER IMPLANT W MCC,3.7314
|
195 |
+
243,243,05,SURG,PERMANENT CARDIAC PACEMAKER IMPLANT W CC,2.6204
|
196 |
+
244,244,05,SURG,PERMANENT CARDIAC PACEMAKER IMPLANT W/O CC/MCC,2.0624
|
197 |
+
245,245,05,SURG,AICD GENERATOR PROCEDURES,4.254
|
198 |
+
246,246,05,SURG,PERC CARDIOVASC PROC W DRUG-ELUTING STENT W MCC OR 4+ VESSELS/STENTS,3.1566
|
199 |
+
247,247,05,SURG,PERC CARDIOVASC PROC W DRUG-ELUTING STENT W/O MCC,1.9911
|
200 |
+
248,248,05,SURG,PERC CARDIOVASC PROC W NON-DRUG-ELUTING STENT W MCC OR 4+ VES/STENTS,3.0003
|
201 |
+
249,249,05,SURG,PERC CARDIOVASC PROC W NON-DRUG-ELUTING STENT W/O MCC,1.7961
|
202 |
+
250,250,05,SURG,PERC CARDIOVASC PROC W/O CORONARY ARTERY STENT W MCC,2.9988
|
203 |
+
251,251,05,SURG,PERC CARDIOVASC PROC W/O CORONARY ARTERY STENT W/O MCC,1.9237
|
204 |
+
252,252,05,SURG,OTHER VASCULAR PROCEDURES W MCC,3.0224
|
205 |
+
253,253,05,SURG,OTHER VASCULAR PROCEDURES W CC,2.4739
|
206 |
+
254,254,05,SURG,OTHER VASCULAR PROCEDURES W/O CC/MCC,1.6609
|
207 |
+
255,255,05,SURG,UPPER LIMB & TOE AMPUTATION FOR CIRC SYSTEM DISORDERS W MCC,2.4381
|
208 |
+
256,256,05,SURG,UPPER LIMB & TOE AMPUTATION FOR CIRC SYSTEM DISORDERS W CC,1.5934
|
209 |
+
257,257,05,SURG,UPPER LIMB & TOE AMPUTATION FOR CIRC SYSTEM DISORDERS W/O CC/MCC,0.9535
|
210 |
+
258,258,05,SURG,CARDIAC PACEMAKER DEVICE REPLACEMENT W MCC,2.6945
|
211 |
+
259,259,05,SURG,CARDIAC PACEMAKER DEVICE REPLACEMENT W/O MCC,1.859
|
212 |
+
260,260,05,SURG,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT W MCC,3.6624
|
213 |
+
261,261,05,SURG,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT W CC,1.6769
|
214 |
+
262,262,05,SURG,CARDIAC PACEMAKER REVISION EXCEPT DEVICE REPLACEMENT W/O CC/MCC,1.2343
|
215 |
+
263,263,05,SURG,VEIN LIGATION & STRIPPING,1.9091
|
216 |
+
264,264,05,SURG,OTHER CIRCULATORY SYSTEM O.R. PROCEDURES,2.6674
|
217 |
+
265,265,05,SURG,AICD LEAD PROCEDURES,2.4394
|
218 |
+
280,280,05,MED,"ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE W MCC",1.7999
|
219 |
+
281,281,05,MED,"ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE W CC",1.0961
|
220 |
+
282,282,05,MED,"ACUTE MYOCARDIAL INFARCTION, DISCHARGED ALIVE W/O CC/MCC",0.7736
|
221 |
+
283,283,05,MED,"ACUTE MYOCARDIAL INFARCTION, EXPIRED W MCC",1.7539
|
222 |
+
284,284,05,MED,"ACUTE MYOCARDIAL INFARCTION, EXPIRED W CC",0.8042
|
223 |
+
285,285,05,MED,"ACUTE MYOCARDIAL INFARCTION, EXPIRED W/O CC/MCC",0.5353
|
224 |
+
286,286,05,MED,"CIRCULATORY DISORDERS EXCEPT AMI, W CARD CATH W MCC",2.0617
|
225 |
+
287,287,05,MED,"CIRCULATORY DISORDERS EXCEPT AMI, W CARD CATH W/O MCC",1.0709
|
226 |
+
288,288,05,MED,ACUTE & SUBACUTE ENDOCARDITIS W MCC,2.8229
|
227 |
+
289,289,05,MED,ACUTE & SUBACUTE ENDOCARDITIS W CC,1.8145
|
228 |
+
290,290,05,MED,ACUTE & SUBACUTE ENDOCARDITIS W/O CC/MCC,1.2092
|
229 |
+
291,291,05,MED,HEART FAILURE & SHOCK W MCC,1.5174
|
230 |
+
292,292,05,MED,HEART FAILURE & SHOCK W CC,1.0034
|
231 |
+
293,293,05,MED,HEART FAILURE & SHOCK W/O CC/MCC,0.6751
|
232 |
+
294,294,05,MED,DEEP VEIN THROMBOPHLEBITIS W CC/MCC,1.0229
|
233 |
+
295,295,05,MED,DEEP VEIN THROMBOPHLEBITIS W/O CC/MCC,0.6476
|
234 |
+
296,296,05,MED,"CARDIAC ARREST, UNEXPLAINED W MCC",1.2878
|
235 |
+
297,297,05,MED,"CARDIAC ARREST, UNEXPLAINED W CC",0.6455
|
236 |
+
298,298,05,MED,"CARDIAC ARREST, UNEXPLAINED W/O CC/MCC",0.4571
|
237 |
+
299,299,05,MED,PERIPHERAL VASCULAR DISORDERS W MCC,1.4186
|
238 |
+
300,300,05,MED,PERIPHERAL VASCULAR DISORDERS W CC,0.9679
|
239 |
+
301,301,05,MED,PERIPHERAL VASCULAR DISORDERS W/O CC/MCC,0.6679
|
240 |
+
302,302,05,MED,ATHEROSCLEROSIS W MCC,1.0142
|
241 |
+
303,303,05,MED,ATHEROSCLEROSIS W/O MCC,0.5773
|
242 |
+
304,304,05,MED,HYPERTENSION W MCC,1.0503
|
243 |
+
305,305,05,MED,HYPERTENSION W/O MCC,0.6187
|
244 |
+
306,306,05,MED,CARDIAC CONGENITAL & VALVULAR DISORDERS W MCC,1.3122
|
245 |
+
307,307,05,MED,CARDIAC CONGENITAL & VALVULAR DISORDERS W/O MCC,0.784
|
246 |
+
308,308,05,MED,CARDIAC ARRHYTHMIA & CONDUCTION DISORDERS W MCC,1.2285
|
247 |
+
309,309,05,MED,CARDIAC ARRHYTHMIA & CONDUCTION DISORDERS W CC,0.8098
|
248 |
+
310,310,05,MED,CARDIAC ARRHYTHMIA & CONDUCTION DISORDERS W/O CC/MCC,0.5541
|
249 |
+
311,311,05,MED,ANGINA PECTORIS,0.5207
|
250 |
+
312,312,05,MED,SYNCOPE & COLLAPSE,0.7339
|
251 |
+
313,313,05,MED,CHEST PAIN,0.5617
|
252 |
+
314,314,05,MED,OTHER CIRCULATORY SYSTEM DIAGNOSES W MCC,1.8508
|
253 |
+
315,315,05,MED,OTHER CIRCULATORY SYSTEM DIAGNOSES W CC,0.9527
|
254 |
+
316,316,05,MED,OTHER CIRCULATORY SYSTEM DIAGNOSES W/O CC/MCC,0.6224
|
255 |
+
326,326,06,SURG,"STOMACH, ESOPHAGEAL & DUODENAL PROC W MCC",5.6118
|
256 |
+
327,327,06,SURG,"STOMACH, ESOPHAGEAL & DUODENAL PROC W CC",2.6811
|
257 |
+
328,328,06,SURG,"STOMACH, ESOPHAGEAL & DUODENAL PROC W/O CC/MCC",1.4413
|
258 |
+
329,329,06,SURG,MAJOR SMALL & LARGE BOWEL PROCEDURES W MCC,5.2599
|
259 |
+
330,330,06,SURG,MAJOR SMALL & LARGE BOWEL PROCEDURES W CC,2.5731
|
260 |
+
331,331,06,SURG,MAJOR SMALL & LARGE BOWEL PROCEDURES W/O CC/MCC,1.6361
|
261 |
+
332,332,06,SURG,RECTAL RESECTION W MCC,4.6143
|
262 |
+
333,333,06,SURG,RECTAL RESECTION W CC,2.4814
|
263 |
+
334,334,06,SURG,RECTAL RESECTION W/O CC/MCC,1.6181
|
264 |
+
335,335,06,SURG,PERITONEAL ADHESIOLYSIS W MCC,4.3146
|
265 |
+
336,336,06,SURG,PERITONEAL ADHESIOLYSIS W CC,2.3529
|
266 |
+
337,337,06,SURG,PERITONEAL ADHESIOLYSIS W/O CC/MCC,1.5538
|
267 |
+
338,338,06,SURG,APPENDECTOMY W COMPLICATED PRINCIPAL DIAG W MCC,3.2008
|
268 |
+
339,339,06,SURG,APPENDECTOMY W COMPLICATED PRINCIPAL DIAG W CC,1.8675
|
269 |
+
340,340,06,SURG,APPENDECTOMY W COMPLICATED PRINCIPAL DIAG W/O CC/MCC,1.2024
|
270 |
+
341,341,06,SURG,APPENDECTOMY W/O COMPLICATED PRINCIPAL DIAG W MCC,2.3116
|
271 |
+
342,342,06,SURG,APPENDECTOMY W/O COMPLICATED PRINCIPAL DIAG W CC,1.3516
|
272 |
+
343,343,06,SURG,APPENDECTOMY W/O COMPLICATED PRINCIPAL DIAG W/O CC/MCC,0.9547
|
273 |
+
344,344,06,SURG,MINOR SMALL & LARGE BOWEL PROCEDURES W MCC,3.4094
|
274 |
+
345,345,06,SURG,MINOR SMALL & LARGE BOWEL PROCEDURES W CC,1.7123
|
275 |
+
346,346,06,SURG,MINOR SMALL & LARGE BOWEL PROCEDURES W/O CC/MCC,1.1608
|
276 |
+
347,347,06,SURG,ANAL & STOMAL PROCEDURES W MCC,2.5169
|
277 |
+
348,348,06,SURG,ANAL & STOMAL PROCEDURES W CC,1.39
|
278 |
+
349,349,06,SURG,ANAL & STOMAL PROCEDURES W/O CC/MCC,0.8343
|
279 |
+
350,350,06,SURG,INGUINAL & FEMORAL HERNIA PROCEDURES W MCC,2.5082
|
280 |
+
351,351,06,SURG,INGUINAL & FEMORAL HERNIA PROCEDURES W CC,1.3755
|
281 |
+
352,352,06,SURG,INGUINAL & FEMORAL HERNIA PROCEDURES W/O CC/MCC,0.9043
|
282 |
+
353,353,06,SURG,HERNIA PROCEDURES EXCEPT INGUINAL & FEMORAL W MCC,2.8192
|
283 |
+
354,354,06,SURG,HERNIA PROCEDURES EXCEPT INGUINAL & FEMORAL W CC,1.5976
|
284 |
+
355,355,06,SURG,HERNIA PROCEDURES EXCEPT INGUINAL & FEMORAL W/O CC/MCC,1.1172
|
285 |
+
356,356,06,SURG,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES W MCC,3.9463
|
286 |
+
357,357,06,SURG,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES W CC,2.1747
|
287 |
+
358,358,06,SURG,OTHER DIGESTIVE SYSTEM O.R. PROCEDURES W/O CC/MCC,1.3629
|
288 |
+
368,368,06,MED,MAJOR ESOPHAGEAL DISORDERS W MCC,1.8327
|
289 |
+
369,369,06,MED,MAJOR ESOPHAGEAL DISORDERS W CC,1.0664
|
290 |
+
370,370,06,MED,MAJOR ESOPHAGEAL DISORDERS W/O CC/MCC,0.7593
|
291 |
+
371,371,06,MED,MAJOR GASTROINTESTINAL DISORDERS & PERITONEAL INFECTIONS W MCC,2.02
|
292 |
+
372,372,06,MED,MAJOR GASTROINTESTINAL DISORDERS & PERITONEAL INFECTIONS W CC,1.2275
|
293 |
+
373,373,06,MED,MAJOR GASTROINTESTINAL DISORDERS & PERITONEAL INFECTIONS W/O CC/MCC,0.8401
|
294 |
+
374,374,06,MED,DIGESTIVE MALIGNANCY W MCC,2.1284
|
295 |
+
375,375,06,MED,DIGESTIVE MALIGNANCY W CC,1.2738
|
296 |
+
376,376,06,MED,DIGESTIVE MALIGNANCY W/O CC/MCC,0.8809
|
297 |
+
377,377,06,MED,G.I. HEMORRHAGE W MCC,1.7817
|
298 |
+
378,378,06,MED,G.I. HEMORRHAGE W CC,1.0168
|
299 |
+
379,379,06,MED,G.I. HEMORRHAGE W/O CC/MCC,0.7015
|
300 |
+
380,380,06,MED,COMPLICATED PEPTIC ULCER W MCC,1.9311
|
301 |
+
381,381,06,MED,COMPLICATED PEPTIC ULCER W CC,1.113
|
302 |
+
382,382,06,MED,COMPLICATED PEPTIC ULCER W/O CC/MCC,0.7917
|
303 |
+
383,383,06,MED,UNCOMPLICATED PEPTIC ULCER W MCC,1.3384
|
304 |
+
384,384,06,MED,UNCOMPLICATED PEPTIC ULCER W/O MCC,0.8365
|
305 |
+
385,385,06,MED,INFLAMMATORY BOWEL DISEASE W MCC,1.9078
|
306 |
+
386,386,06,MED,INFLAMMATORY BOWEL DISEASE W CC,1.0505
|
307 |
+
387,387,06,MED,INFLAMMATORY BOWEL DISEASE W/O CC/MCC,0.7878
|
308 |
+
388,388,06,MED,G.I. OBSTRUCTION W MCC,1.6564
|
309 |
+
389,389,06,MED,G.I. OBSTRUCTION W CC,0.9217
|
310 |
+
390,390,06,MED,G.I. OBSTRUCTION W/O CC/MCC,0.6372
|
311 |
+
391,391,06,MED,"ESOPHAGITIS, GASTROENT & MISC DIGEST DISORDERS W MCC",1.1897
|
312 |
+
392,392,06,MED,"ESOPHAGITIS, GASTROENT & MISC DIGEST DISORDERS W/O MCC",0.7375
|
313 |
+
393,393,06,MED,OTHER DIGESTIVE SYSTEM DIAGNOSES W MCC,1.6666
|
314 |
+
394,394,06,MED,OTHER DIGESTIVE SYSTEM DIAGNOSES W CC,0.9837
|
315 |
+
395,395,06,MED,OTHER DIGESTIVE SYSTEM DIAGNOSES W/O CC/MCC,0.6791
|
316 |
+
405,405,07,SURG,"PANCREAS, LIVER & SHUNT PROCEDURES W MCC",5.5575
|
317 |
+
406,406,07,SURG,"PANCREAS, LIVER & SHUNT PROCEDURES W CC",2.7303
|
318 |
+
407,407,07,SURG,"PANCREAS, LIVER & SHUNT PROCEDURES W/O CC/MCC",1.828
|
319 |
+
408,408,07,SURG,BILIARY TRACT PROC EXCEPT ONLY CHOLECYST W OR W/O C.D.E. W MCC,3.8375
|
320 |
+
409,409,07,SURG,BILIARY TRACT PROC EXCEPT ONLY CHOLECYST W OR W/O C.D.E. W CC,2.268
|
321 |
+
410,410,07,SURG,BILIARY TRACT PROC EXCEPT ONLY CHOLECYST W OR W/O C.D.E. W/O CC/MCC,1.6875
|
322 |
+
411,411,07,SURG,CHOLECYSTECTOMY W C.D.E. W MCC,3.804
|
323 |
+
412,412,07,SURG,CHOLECYSTECTOMY W C.D.E. W CC,2.5989
|
324 |
+
413,413,07,SURG,CHOLECYSTECTOMY W C.D.E. W/O CC/MCC,1.8582
|
325 |
+
414,414,07,SURG,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE W/O C.D.E. W MCC,3.5643
|
326 |
+
415,415,07,SURG,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE W/O C.D.E. W CC,2.0728
|
327 |
+
416,416,07,SURG,CHOLECYSTECTOMY EXCEPT BY LAPAROSCOPE W/O C.D.E. W/O CC/MCC,1.3354
|
328 |
+
417,417,07,SURG,LAPAROSCOPIC CHOLECYSTECTOMY W/O C.D.E. W MCC,2.5189
|
329 |
+
418,418,07,SURG,LAPAROSCOPIC CHOLECYSTECTOMY W/O C.D.E. W CC,1.7007
|
330 |
+
419,419,07,SURG,LAPAROSCOPIC CHOLECYSTECTOMY W/O C.D.E. W/O CC/MCC,1.205
|
331 |
+
420,420,07,SURG,HEPATOBILIARY DIAGNOSTIC PROCEDURES W MCC,3.8509
|
332 |
+
421,421,07,SURG,HEPATOBILIARY DIAGNOSTIC PROCEDURES W CC,1.7381
|
333 |
+
422,422,07,SURG,HEPATOBILIARY DIAGNOSTIC PROCEDURES W/O CC/MCC,1.3006
|
334 |
+
423,423,07,SURG,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES W MCC,4.3308
|
335 |
+
424,424,07,SURG,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES W CC,2.4081
|
336 |
+
425,425,07,SURG,OTHER HEPATOBILIARY OR PANCREAS O.R. PROCEDURES W/O CC/MCC,1.5756
|
337 |
+
432,432,07,MED,CIRRHOSIS & ALCOHOLIC HEPATITIS W MCC,1.6792
|
338 |
+
433,433,07,MED,CIRRHOSIS & ALCOHOLIC HEPATITIS W CC,0.9316
|
339 |
+
434,434,07,MED,CIRRHOSIS & ALCOHOLIC HEPATITIS W/O CC/MCC,0.6343
|
340 |
+
435,435,07,MED,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS W MCC,1.7816
|
341 |
+
436,436,07,MED,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS W CC,1.1934
|
342 |
+
437,437,07,MED,MALIGNANCY OF HEPATOBILIARY SYSTEM OR PANCREAS W/O CC/MCC,0.9537
|
343 |
+
438,438,07,MED,DISORDERS OF PANCREAS EXCEPT MALIGNANCY W MCC,1.7844
|
344 |
+
439,439,07,MED,DISORDERS OF PANCREAS EXCEPT MALIGNANCY W CC,0.9603
|
345 |
+
440,440,07,MED,DISORDERS OF PANCREAS EXCEPT MALIGNANCY W/O CC/MCC,0.679
|
346 |
+
441,441,07,MED,"DISORDERS OF LIVER EXCEPT MALIG,CIRR,ALC HEPA W MCC",1.8767
|
347 |
+
442,442,07,MED,"DISORDERS OF LIVER EXCEPT MALIG,CIRR,ALC HEPA W CC",0.9545
|
348 |
+
443,443,07,MED,"DISORDERS OF LIVER EXCEPT MALIG,CIRR,ALC HEPA W/O CC/MCC",0.6473
|
349 |
+
444,444,07,MED,DISORDERS OF THE BILIARY TRACT W MCC,1.6039
|
350 |
+
445,445,07,MED,DISORDERS OF THE BILIARY TRACT W CC,1.072
|
351 |
+
446,446,07,MED,DISORDERS OF THE BILIARY TRACT W/O CC/MCC,0.7583
|
352 |
+
453,453,08,SURG,COMBINED ANTERIOR/POSTERIOR SPINAL FUSION W MCC,10.5952
|
353 |
+
454,454,08,SURG,COMBINED ANTERIOR/POSTERIOR SPINAL FUSION W CC,7.7979
|
354 |
+
455,455,08,SURG,COMBINED ANTERIOR/POSTERIOR SPINAL FUSION W/O CC/MCC,5.8705
|
355 |
+
456,456,08,SURG,SPINAL FUS EXC CERV W SPINAL CURV/MALIG/INFEC OR 9+ FUS W MCC,9.5204
|
356 |
+
457,457,08,SURG,SPINAL FUS EXC CERV W SPINAL CURV/MALIG/INFEC OR 9+ FUS W CC,6.4171
|
357 |
+
458,458,08,SURG,SPINAL FUS EXC CERV W SPINAL CURV/MALIG/INFEC OR 9+ FUS W/O CC/MCC,4.9491
|
358 |
+
459,459,08,SURG,SPINAL FUSION EXCEPT CERVICAL W MCC,6.539
|
359 |
+
460,460,08,SURG,SPINAL FUSION EXCEPT CERVICAL W/O MCC,3.8783
|
360 |
+
461,461,08,SURG,BILATERAL OR MULTIPLE MAJOR JOINT PROCS OF LOWER EXTREMITY W MCC,4.9062
|
361 |
+
462,462,08,SURG,BILATERAL OR MULTIPLE MAJOR JOINT PROCS OF LOWER EXTREMITY W/O MCC,3.3745
|
362 |
+
463,463,08,SURG,"WND DEBRID & SKN GRFT EXC HAND, FOR MUSCULO-CONN TISS DIS W MCC",5.4443
|
363 |
+
464,464,08,SURG,"WND DEBRID & SKN GRFT EXC HAND, FOR MUSCULO-CONN TISS DIS W CC",2.9406
|
364 |
+
465,465,08,SURG,"WND DEBRID & SKN GRFT EXC HAND, FOR MUSCULO-CONN TISS DIS W/O CC/MCC",1.8802
|
365 |
+
466,466,08,SURG,REVISION OF HIP OR KNEE REPLACEMENT W MCC,5.0078
|
366 |
+
467,467,08,SURG,REVISION OF HIP OR KNEE REPLACEMENT W CC,3.2516
|
367 |
+
468,468,08,SURG,REVISION OF HIP OR KNEE REPLACEMENT W/O CC/MCC,2.607
|
368 |
+
469,469,08,SURG,MAJOR JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY W MCC,3.4196
|
369 |
+
470,470,08,SURG,MAJOR JOINT REPLACEMENT OR REATTACHMENT OF LOWER EXTREMITY W/O MCC,2.0953
|
370 |
+
471,471,08,SURG,CERVICAL SPINAL FUSION W MCC,4.7075
|
371 |
+
472,472,08,SURG,CERVICAL SPINAL FUSION W CC,2.8041
|
372 |
+
473,473,08,SURG,CERVICAL SPINAL FUSION W/O CC/MCC,2.1254
|
373 |
+
474,474,08,SURG,AMPUTATION FOR MUSCULOSKELETAL SYS & CONN TISSUE DIS W MCC,3.5676
|
374 |
+
475,475,08,SURG,AMPUTATION FOR MUSCULOSKELETAL SYS & CONN TISSUE DIS W CC,2.0071
|
375 |
+
476,476,08,SURG,AMPUTATION FOR MUSCULOSKELETAL SYS & CONN TISSUE DIS W/O CC/MCC,1.0171
|
376 |
+
477,477,08,SURG,BIOPSIES OF MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W MCC,3.2681
|
377 |
+
478,478,08,SURG,BIOPSIES OF MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W CC,2.2663
|
378 |
+
479,479,08,SURG,BIOPSIES OF MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W/O CC/MCC,1.6922
|
379 |
+
480,480,08,SURG,HIP & FEMUR PROCEDURES EXCEPT MAJOR JOINT W MCC,3.0367
|
380 |
+
481,481,08,SURG,HIP & FEMUR PROCEDURES EXCEPT MAJOR JOINT W CC,1.9345
|
381 |
+
482,482,08,SURG,HIP & FEMUR PROCEDURES EXCEPT MAJOR JOINT W/O CC/MCC,1.566
|
382 |
+
483,483,08,SURG,MAJOR JOINT & LIMB REATTACHMENT PROC OF UPPER EXTREMITY W CC/MCC,2.5314
|
383 |
+
484,484,08,SURG,MAJOR JOINT & LIMB REATTACHMENT PROC OF UPPER EXTREMITY W/O CC/MCC,2.095
|
384 |
+
485,485,08,SURG,KNEE PROCEDURES W PDX OF INFECTION W MCC,3.0583
|
385 |
+
486,486,08,SURG,KNEE PROCEDURES W PDX OF INFECTION W CC,2.0808
|
386 |
+
487,487,08,SURG,KNEE PROCEDURES W PDX OF INFECTION W/O CC/MCC,1.4863
|
387 |
+
488,488,08,SURG,KNEE PROCEDURES W/O PDX OF INFECTION W CC/MCC,1.6865
|
388 |
+
489,489,08,SURG,KNEE PROCEDURES W/O PDX OF INFECTION W/O CC/MCC,1.2486
|
389 |
+
490,490,08,SURG,BACK & NECK PROC EXC SPINAL FUSION W CC/MCC OR DISC DEVICE/NEUROSTIM,1.8154
|
390 |
+
491,491,08,SURG,BACK & NECK PROC EXC SPINAL FUSION W/O CC/MCC,1.0354
|
391 |
+
492,492,08,SURG,"LOWER EXTREM & HUMER PROC EXCEPT HIP,FOOT,FEMUR W MCC",3.1039
|
392 |
+
493,493,08,SURG,"LOWER EXTREM & HUMER PROC EXCEPT HIP,FOOT,FEMUR W CC",1.931
|
393 |
+
494,494,08,SURG,"LOWER EXTREM & HUMER PROC EXCEPT HIP,FOOT,FEMUR W/O CC/MCC",1.3938
|
394 |
+
495,495,08,SURG,LOCAL EXCISION & REMOVAL INT FIX DEVICES EXC HIP & FEMUR W MCC,2.9977
|
395 |
+
496,496,08,SURG,LOCAL EXCISION & REMOVAL INT FIX DEVICES EXC HIP & FEMUR W CC,1.6306
|
396 |
+
497,497,08,SURG,LOCAL EXCISION & REMOVAL INT FIX DEVICES EXC HIP & FEMUR W/O CC/MCC,1.1202
|
397 |
+
498,498,08,SURG,LOCAL EXCISION & REMOVAL INT FIX DEVICES OF HIP & FEMUR W CC/MCC,2.1304
|
398 |
+
499,499,08,SURG,LOCAL EXCISION & REMOVAL INT FIX DEVICES OF HIP & FEMUR W/O CC/MCC,1.0106
|
399 |
+
500,500,08,SURG,SOFT TISSUE PROCEDURES W MCC,3.1368
|
400 |
+
501,501,08,SURG,SOFT TISSUE PROCEDURES W CC,1.594
|
401 |
+
502,502,08,SURG,SOFT TISSUE PROCEDURES W/O CC/MCC,1.067
|
402 |
+
503,503,08,SURG,FOOT PROCEDURES W MCC,2.3006
|
403 |
+
504,504,08,SURG,FOOT PROCEDURES W CC,1.5641
|
404 |
+
505,505,08,SURG,FOOT PROCEDURES W/O CC/MCC,1.1478
|
405 |
+
506,506,08,SURG,MAJOR THUMB OR JOINT PROCEDURES,1.3003
|
406 |
+
507,507,08,SURG,MAJOR SHOULDER OR ELBOW JOINT PROCEDURES W CC/MCC,1.8689
|
407 |
+
508,508,08,SURG,MAJOR SHOULDER OR ELBOW JOINT PROCEDURES W/O CC/MCC,1.2071
|
408 |
+
509,509,08,SURG,ARTHROSCOPY,1.3494
|
409 |
+
510,510,08,SURG,"SHOULDER,ELBOW OR FOREARM PROC,EXC MAJOR JOINT PROC W MCC",2.2963
|
410 |
+
511,511,08,SURG,"SHOULDER,ELBOW OR FOREARM PROC,EXC MAJOR JOINT PROC W CC",1.5222
|
411 |
+
512,512,08,SURG,"SHOULDER,ELBOW OR FOREARM PROC,EXC MAJOR JOINT PROC W/O CC/MCC",1.1201
|
412 |
+
513,513,08,SURG,"HAND OR WRIST PROC, EXCEPT MAJOR THUMB OR JOINT PROC W CC/MCC",1.3409
|
413 |
+
514,514,08,SURG,"HAND OR WRIST PROC, EXCEPT MAJOR THUMB OR JOINT PROC W/O CC/MCC",0.8655
|
414 |
+
515,515,08,SURG,OTHER MUSCULOSKELET SYS & CONN TISS O.R. PROC W MCC,3.2831
|
415 |
+
516,516,08,SURG,OTHER MUSCULOSKELET SYS & CONN TISS O.R. PROC W CC,1.9744
|
416 |
+
517,517,08,SURG,OTHER MUSCULOSKELET SYS & CONN TISS O.R. PROC W/O CC/MCC,1.5767
|
417 |
+
533,533,08,MED,FRACTURES OF FEMUR W MCC,1.4725
|
418 |
+
534,534,08,MED,FRACTURES OF FEMUR W/O MCC,0.7366
|
419 |
+
535,535,08,MED,FRACTURES OF HIP & PELVIS W MCC,1.279
|
420 |
+
536,536,08,MED,FRACTURES OF HIP & PELVIS W/O MCC,0.7146
|
421 |
+
537,537,08,MED,"SPRAINS, STRAINS, & DISLOCATIONS OF HIP, PELVIS & THIGH W CC/MCC",0.8638
|
422 |
+
538,538,08,MED,"SPRAINS, STRAINS, & DISLOCATIONS OF HIP, PELVIS & THIGH W/O CC/MCC",0.6405
|
423 |
+
539,539,08,MED,OSTEOMYELITIS W MCC,1.9982
|
424 |
+
540,540,08,MED,OSTEOMYELITIS W CC,1.2692
|
425 |
+
541,541,08,MED,OSTEOMYELITIS W/O CC/MCC,0.977
|
426 |
+
542,542,08,MED,PATHOLOGICAL FRACTURES & MUSCULOSKELET & CONN TISS MALIG W MCC,2.0293
|
427 |
+
543,543,08,MED,PATHOLOGICAL FRACTURES & MUSCULOSKELET & CONN TISS MALIG W CC,1.1749
|
428 |
+
544,544,08,MED,PATHOLOGICAL FRACTURES & MUSCULOSKELET & CONN TISS MALIG W/O CC/MCC,0.8012
|
429 |
+
545,545,08,MED,CONNECTIVE TISSUE DISORDERS W MCC,2.4785
|
430 |
+
546,546,08,MED,CONNECTIVE TISSUE DISORDERS W CC,1.1767
|
431 |
+
547,547,08,MED,CONNECTIVE TISSUE DISORDERS W/O CC/MCC,0.7581
|
432 |
+
548,548,08,MED,SEPTIC ARTHRITIS W MCC,1.7465
|
433 |
+
549,549,08,MED,SEPTIC ARTHRITIS W CC,1.1683
|
434 |
+
550,550,08,MED,SEPTIC ARTHRITIS W/O CC/MCC,0.7723
|
435 |
+
551,551,08,MED,MEDICAL BACK PROBLEMS W MCC,1.6345
|
436 |
+
552,552,08,MED,MEDICAL BACK PROBLEMS W/O MCC,0.8533
|
437 |
+
553,553,08,MED,BONE DISEASES & ARTHROPATHIES W MCC,1.2087
|
438 |
+
554,554,08,MED,BONE DISEASES & ARTHROPATHIES W/O MCC,0.6916
|
439 |
+
555,555,08,MED,SIGNS & SYMPTOMS OF MUSCULOSKELETAL SYSTEM & CONN TISSUE W MCC,1.2348
|
440 |
+
556,556,08,MED,SIGNS & SYMPTOMS OF MUSCULOSKELETAL SYSTEM & CONN TISSUE W/O MCC,0.7039
|
441 |
+
557,557,08,MED,"TENDONITIS, MYOSITIS & BURSITIS W MCC",1.5613
|
442 |
+
558,558,08,MED,"TENDONITIS, MYOSITIS & BURSITIS W/O MCC",0.8594
|
443 |
+
559,559,08,MED,"AFTERCARE, MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W MCC",1.8741
|
444 |
+
560,560,08,MED,"AFTERCARE, MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W CC",1.03
|
445 |
+
561,561,08,MED,"AFTERCARE, MUSCULOSKELETAL SYSTEM & CONNECTIVE TISSUE W/O CC/MCC",0.6115
|
446 |
+
562,562,08,MED,"FX, SPRN, STRN & DISL EXCEPT FEMUR, HIP, PELVIS & THIGH W MCC",1.3989
|
447 |
+
563,563,08,MED,"FX, SPRN, STRN & DISL EXCEPT FEMUR, HIP, PELVIS & THIGH W/O MCC",0.7463
|
448 |
+
564,564,08,MED,OTHER MUSCULOSKELETAL SYS & CONNECTIVE TISSUE DIAGNOSES W MCC,1.4459
|
449 |
+
565,565,08,MED,OTHER MUSCULOSKELETAL SYS & CONNECTIVE TISSUE DIAGNOSES W CC,0.9386
|
450 |
+
566,566,08,MED,OTHER MUSCULOSKELETAL SYS & CONNECTIVE TISSUE DIAGNOSES W/O CC/MCC,0.6786
|
451 |
+
570,570,09,SURG,SKIN DEBRIDEMENT W MCC,2.4688
|
452 |
+
571,571,09,SURG,SKIN DEBRIDEMENT W CC,1.4969
|
453 |
+
572,572,09,SURG,SKIN DEBRIDEMENT W/O CC/MCC,1.0036
|
454 |
+
573,573,09,SURG,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS W MCC,3.5637
|
455 |
+
574,574,09,SURG,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS W CC,2.4469
|
456 |
+
575,575,09,SURG,SKIN GRAFT FOR SKIN ULCER OR CELLULITIS W/O CC/MCC,1.3266
|
457 |
+
576,576,09,SURG,SKIN GRAFT EXC FOR SKIN ULCER OR CELLULITIS W MCC,4.2457
|
458 |
+
577,577,09,SURG,SKIN GRAFT EXC FOR SKIN ULCER OR CELLULITIS W CC,1.8963
|
459 |
+
578,578,09,SURG,SKIN GRAFT EXC FOR SKIN ULCER OR CELLULITIS W/O CC/MCC,1.1312
|
460 |
+
579,579,09,SURG,"OTHER SKIN, SUBCUT TISS & BREAST PROC W MCC",2.7186
|
461 |
+
580,580,09,SURG,"OTHER SKIN, SUBCUT TISS & BREAST PROC W CC",1.4875
|
462 |
+
581,581,09,SURG,"OTHER SKIN, SUBCUT TISS & BREAST PROC W/O CC/MCC",0.9916
|
463 |
+
582,582,09,SURG,MASTECTOMY FOR MALIGNANCY W CC/MCC,1.1283
|
464 |
+
583,583,09,SURG,MASTECTOMY FOR MALIGNANCY W/O CC/MCC,0.8992
|
465 |
+
584,584,09,SURG,"BREAST BIOPSY, LOCAL EXCISION & OTHER BREAST PROCEDURES W CC/MCC",1.655
|
466 |
+
585,585,09,SURG,"BREAST BIOPSY, LOCAL EXCISION & OTHER BREAST PROCEDURES W/O CC/MCC",1.1381
|
467 |
+
592,592,09,MED,SKIN ULCERS W MCC,1.4632
|
468 |
+
593,593,09,MED,SKIN ULCERS W CC,0.9912
|
469 |
+
594,594,09,MED,SKIN ULCERS W/O CC/MCC,0.6782
|
470 |
+
595,595,09,MED,MAJOR SKIN DISORDERS W MCC,1.8803
|
471 |
+
596,596,09,MED,MAJOR SKIN DISORDERS W/O MCC,0.888
|
472 |
+
597,597,09,MED,MALIGNANT BREAST DISORDERS W MCC,1.6026
|
473 |
+
598,598,09,MED,MALIGNANT BREAST DISORDERS W CC,1.228
|
474 |
+
599,599,09,MED,MALIGNANT BREAST DISORDERS W/O CC/MCC,0.665
|
475 |
+
600,600,09,MED,NON-MALIGNANT BREAST DISORDERS W CC/MCC,0.9968
|
476 |
+
601,601,09,MED,NON-MALIGNANT BREAST DISORDERS W/O CC/MCC,0.6247
|
477 |
+
602,602,09,MED,CELLULITIS W MCC,1.4883
|
478 |
+
603,603,09,MED,CELLULITIS W/O MCC,0.8392
|
479 |
+
604,604,09,MED,"TRAUMA TO THE SKIN, SUBCUT TISS & BREAST W MCC",1.3297
|
480 |
+
605,605,09,MED,"TRAUMA TO THE SKIN, SUBCUT TISS & BREAST W/O MCC",0.7552
|
481 |
+
606,606,09,MED,MINOR SKIN DISORDERS W MCC,1.3936
|
482 |
+
607,607,09,MED,MINOR SKIN DISORDERS W/O MCC,0.6892
|
483 |
+
614,614,10,SURG,ADRENAL & PITUITARY PROCEDURES W CC/MCC,2.3998
|
484 |
+
615,615,10,SURG,ADRENAL & PITUITARY PROCEDURES W/O CC/MCC,1.4036
|
485 |
+
616,616,10,SURG,"AMPUTAT OF LOWER LIMB FOR ENDOCRINE,NUTRIT,& METABOL DIS W MCC",4.3525
|
486 |
+
617,617,10,SURG,"AMPUTAT OF LOWER LIMB FOR ENDOCRINE,NUTRIT,& METABOL DIS W CC",1.9716
|
487 |
+
618,618,10,SURG,"AMPUTAT OF LOWER LIMB FOR ENDOCRINE,NUTRIT,& METABOL DIS W/O CC/MCC",1.1287
|
488 |
+
619,619,10,SURG,O.R. PROCEDURES FOR OBESITY W MCC,3.4876
|
489 |
+
620,620,10,SURG,O.R. PROCEDURES FOR OBESITY W CC,1.8601
|
490 |
+
621,621,10,SURG,O.R. PROCEDURES FOR OBESITY W/O CC/MCC,1.5026
|
491 |
+
622,622,10,SURG,"SKIN GRAFTS & WOUND DEBRID FOR ENDOC, NUTRIT & METAB DIS W MCC",3.5668
|
492 |
+
623,623,10,SURG,"SKIN GRAFTS & WOUND DEBRID FOR ENDOC, NUTRIT & METAB DIS W CC",1.8221
|
493 |
+
624,624,10,SURG,"SKIN GRAFTS & WOUND DEBRID FOR ENDOC, NUTRIT & METAB DIS W/O CC/MCC",0.9662
|
494 |
+
625,625,10,SURG,"THYROID, PARATHYROID & THYROGLOSSAL PROCEDURES W MCC",2.3606
|
495 |
+
626,626,10,SURG,"THYROID, PARATHYROID & THYROGLOSSAL PROCEDURES W CC",1.2163
|
496 |
+
627,627,10,SURG,"THYROID, PARATHYROID & THYROGLOSSAL PROCEDURES W/O CC/MCC",0.8217
|
497 |
+
628,628,10,SURG,"OTHER ENDOCRINE, NUTRIT & METAB O.R. PROC W MCC",3.2936
|
498 |
+
629,629,10,SURG,"OTHER ENDOCRINE, NUTRIT & METAB O.R. PROC W CC",2.144
|
499 |
+
630,630,10,SURG,"OTHER ENDOCRINE, NUTRIT & METAB O.R. PROC W/O CC/MCC",1.2266
|
500 |
+
637,637,10,MED,DIABETES W MCC,1.407
|
501 |
+
638,638,10,MED,DIABETES W CC,0.8218
|
502 |
+
639,639,10,MED,DIABETES W/O CC/MCC,0.5558
|
503 |
+
640,640,10,MED,"MISC DISORDERS OF NUTRITION,METABOLISM,FLUIDS/ELECTROLYTES W MCC",1.1076
|
504 |
+
641,641,10,MED,"MISC DISORDERS OF NUTRITION,METABOLISM,FLUIDS/ELECTROLYTES W/O MCC",0.692
|
505 |
+
642,642,10,MED,INBORN AND OTHER DISORDERS OF METABOLISM,1.1233
|
506 |
+
643,643,10,MED,ENDOCRINE DISORDERS W MCC,1.7094
|
507 |
+
644,644,10,MED,ENDOCRINE DISORDERS W CC,1.0508
|
508 |
+
645,645,10,MED,ENDOCRINE DISORDERS W/O CC/MCC,0.7233
|
509 |
+
652,652,11,SURG,KIDNEY TRANSPLANT,3.0825
|
510 |
+
653,653,11,SURG,MAJOR BLADDER PROCEDURES W MCC,6.1649
|
511 |
+
654,654,11,SURG,MAJOR BLADDER PROCEDURES W CC,3.1279
|
512 |
+
655,655,11,SURG,MAJOR BLADDER PROCEDURES W/O CC/MCC,2.0913
|
513 |
+
656,656,11,SURG,KIDNEY & URETER PROCEDURES FOR NEOPLASM W MCC,3.5136
|
514 |
+
657,657,11,SURG,KIDNEY & URETER PROCEDURES FOR NEOPLASM W CC,1.9904
|
515 |
+
658,658,11,SURG,KIDNEY & URETER PROCEDURES FOR NEOPLASM W/O CC/MCC,1.4836
|
516 |
+
659,659,11,SURG,KIDNEY & URETER PROCEDURES FOR NON-NEOPLASM W MCC,3.5192
|
517 |
+
660,660,11,SURG,KIDNEY & URETER PROCEDURES FOR NON-NEOPLASM W CC,1.8829
|
518 |
+
661,661,11,SURG,KIDNEY & URETER PROCEDURES FOR NON-NEOPLASM W/O CC/MCC,1.3335
|
519 |
+
662,662,11,SURG,MINOR BLADDER PROCEDURES W MCC,2.9941
|
520 |
+
663,663,11,SURG,MINOR BLADDER PROCEDURES W CC,1.5295
|
521 |
+
664,664,11,SURG,MINOR BLADDER PROCEDURES W/O CC/MCC,1.126
|
522 |
+
665,665,11,SURG,PROSTATECTOMY W MCC,3.0737
|
523 |
+
666,666,11,SURG,PROSTATECTOMY W CC,1.6602
|
524 |
+
667,667,11,SURG,PROSTATECTOMY W/O CC/MCC,0.876
|
525 |
+
668,668,11,SURG,TRANSURETHRAL PROCEDURES W MCC,2.4731
|
526 |
+
669,669,11,SURG,TRANSURETHRAL PROCEDURES W CC,1.3015
|
527 |
+
670,670,11,SURG,TRANSURETHRAL PROCEDURES W/O CC/MCC,0.8326
|
528 |
+
671,671,11,SURG,URETHRAL PROCEDURES W CC/MCC,1.4513
|
529 |
+
672,672,11,SURG,URETHRAL PROCEDURES W/O CC/MCC,0.8383
|
530 |
+
673,673,11,SURG,OTHER KIDNEY & URINARY TRACT PROCEDURES W MCC,3.0591
|
531 |
+
674,674,11,SURG,OTHER KIDNEY & URINARY TRACT PROCEDURES W CC,2.1887
|
532 |
+
675,675,11,SURG,OTHER KIDNEY & URINARY TRACT PROCEDURES W/O CC/MCC,1.3558
|
533 |
+
682,682,11,MED,RENAL FAILURE W MCC,1.5862
|
534 |
+
683,683,11,MED,RENAL FAILURE W CC,0.9958
|
535 |
+
684,684,11,MED,RENAL FAILURE W/O CC/MCC,0.6432
|
536 |
+
685,685,11,MED,ADMIT FOR RENAL DIALYSIS,0.8899
|
537 |
+
686,686,11,MED,KIDNEY & URINARY TRACT NEOPLASMS W MCC,1.6823
|
538 |
+
687,687,11,MED,KIDNEY & URINARY TRACT NEOPLASMS W CC,1.0499
|
539 |
+
688,688,11,MED,KIDNEY & URINARY TRACT NEOPLASMS W/O CC/MCC,0.6805
|
540 |
+
689,689,11,MED,KIDNEY & URINARY TRACT INFECTIONS W MCC,1.1784
|
541 |
+
690,690,11,MED,KIDNEY & URINARY TRACT INFECTIONS W/O MCC,0.781
|
542 |
+
691,691,11,MED,URINARY STONES W ESW LITHOTRIPSY W CC/MCC,1.5632
|
543 |
+
692,692,11,MED,URINARY STONES W ESW LITHOTRIPSY W/O CC/MCC,1.0563
|
544 |
+
693,693,11,MED,URINARY STONES W/O ESW LITHOTRIPSY W MCC,1.4169
|
545 |
+
694,694,11,MED,URINARY STONES W/O ESW LITHOTRIPSY W/O MCC,0.7017
|
546 |
+
695,695,11,MED,KIDNEY & URINARY TRACT SIGNS & SYMPTOMS W MCC,1.2944
|
547 |
+
696,696,11,MED,KIDNEY & URINARY TRACT SIGNS & SYMPTOMS W/O MCC,0.6639
|
548 |
+
697,697,11,MED,URETHRAL STRICTURE,0.8246
|
549 |
+
698,698,11,MED,OTHER KIDNEY & URINARY TRACT DIAGNOSES W MCC,1.5995
|
550 |
+
699,699,11,MED,OTHER KIDNEY & URINARY TRACT DIAGNOSES W CC,0.9998
|
551 |
+
700,700,11,MED,OTHER KIDNEY & URINARY TRACT DIAGNOSES W/O CC/MCC,0.6854
|
552 |
+
707,707,12,SURG,MAJOR MALE PELVIC PROCEDURES W CC/MCC,1.8134
|
553 |
+
708,708,12,SURG,MAJOR MALE PELVIC PROCEDURES W/O CC/MCC,1.2936
|
554 |
+
709,709,12,SURG,PENIS PROCEDURES W CC/MCC,2.0087
|
555 |
+
710,710,12,SURG,PENIS PROCEDURES W/O CC/MCC,1.2991
|
556 |
+
711,711,12,SURG,TESTES PROCEDURES W CC/MCC,1.9631
|
557 |
+
712,712,12,SURG,TESTES PROCEDURES W/O CC/MCC,0.8418
|
558 |
+
713,713,12,SURG,TRANSURETHRAL PROSTATECTOMY W CC/MCC,1.3234
|
559 |
+
714,714,12,SURG,TRANSURETHRAL PROSTATECTOMY W/O CC/MCC,0.6983
|
560 |
+
715,715,12,SURG,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROC FOR MALIGNANCY W CC/MCC,1.9149
|
561 |
+
716,716,12,SURG,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROC FOR MALIGNANCY W/O CC/MCC,0.9656
|
562 |
+
717,717,12,SURG,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROC EXC MALIGNANCY W CC/MCC,1.7261
|
563 |
+
718,718,12,SURG,OTHER MALE REPRODUCTIVE SYSTEM O.R. PROC EXC MALIGNANCY W/O CC/MCC,0.8657
|
564 |
+
722,722,12,MED,"MALIGNANCY, MALE REPRODUCTIVE SYSTEM W MCC",1.669
|
565 |
+
723,723,12,MED,"MALIGNANCY, MALE REPRODUCTIVE SYSTEM W CC",1.1066
|
566 |
+
724,724,12,MED,"MALIGNANCY, MALE REPRODUCTIVE SYSTEM W/O CC/MCC",0.6509
|
567 |
+
725,725,12,MED,BENIGN PROSTATIC HYPERTROPHY W MCC,1.2976
|
568 |
+
726,726,12,MED,BENIGN PROSTATIC HYPERTROPHY W/O MCC,0.7085
|
569 |
+
727,727,12,MED,INFLAMMATION OF THE MALE REPRODUCTIVE SYSTEM W MCC,1.4014
|
570 |
+
728,728,12,MED,INFLAMMATION OF THE MALE REPRODUCTIVE SYSTEM W/O MCC,0.7721
|
571 |
+
729,729,12,MED,OTHER MALE REPRODUCTIVE SYSTEM DIAGNOSES W CC/MCC,1.0357
|
572 |
+
730,730,12,MED,OTHER MALE REPRODUCTIVE SYSTEM DIAGNOSES W/O CC/MCC,0.6113
|
573 |
+
734,734,13,SURG,"PELVIC EVISCERATION, RAD HYSTERECTOMY & RAD VULVECTOMY W CC/MCC",2.6652
|
574 |
+
735,735,13,SURG,"PELVIC EVISCERATION, RAD HYSTERECTOMY & RAD VULVECTOMY W/O CC/MCC",1.1682
|
575 |
+
736,736,13,SURG,UTERINE & ADNEXA PROC FOR OVARIAN OR ADNEXAL MALIGNANCY W MCC,4.414
|
576 |
+
737,737,13,SURG,UTERINE & ADNEXA PROC FOR OVARIAN OR ADNEXAL MALIGNANCY W CC,2.0049
|
577 |
+
738,738,13,SURG,UTERINE & ADNEXA PROC FOR OVARIAN OR ADNEXAL MALIGNANCY W/O CC/MCC,1.2853
|
578 |
+
739,739,13,SURG,"UTERINE,ADNEXA PROC FOR NON-OVARIAN/ADNEXAL MALIG W MCC",3.3219
|
579 |
+
740,740,13,SURG,"UTERINE,ADNEXA PROC FOR NON-OVARIAN/ADNEXAL MALIG W CC",1.5688
|
580 |
+
741,741,13,SURG,"UTERINE,ADNEXA PROC FOR NON-OVARIAN/ADNEXAL MALIG W/O CC/MCC",1.1499
|
581 |
+
742,742,13,SURG,UTERINE & ADNEXA PROC FOR NON-MALIGNANCY W CC/MCC,1.4157
|
582 |
+
743,743,13,SURG,UTERINE & ADNEXA PROC FOR NON-MALIGNANCY W/O CC/MCC,0.9653
|
583 |
+
744,744,13,SURG,"D&C, CONIZATION, LAPAROSCOPY & TUBAL INTERRUPTION W CC/MCC",1.5573
|
584 |
+
745,745,13,SURG,"D&C, CONIZATION, LAPAROSCOPY & TUBAL INTERRUPTION W/O CC/MCC",0.8109
|
585 |
+
746,746,13,SURG,"VAGINA, CERVIX & VULVA PROCEDURES W CC/MCC",1.385
|
586 |
+
747,747,13,SURG,"VAGINA, CERVIX & VULVA PROCEDURES W/O CC/MCC",0.8818
|
587 |
+
748,748,13,SURG,FEMALE REPRODUCTIVE SYSTEM RECONSTRUCTIVE PROCEDURES,0.9773
|
588 |
+
749,749,13,SURG,OTHER FEMALE REPRODUCTIVE SYSTEM O.R. PROCEDURES W CC/MCC,2.5755
|
589 |
+
750,750,13,SURG,OTHER FEMALE REPRODUCTIVE SYSTEM O.R. PROCEDURES W/O CC/MCC,1.0675
|
590 |
+
754,754,13,MED,"MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM W MCC",1.9833
|
591 |
+
755,755,13,MED,"MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM W CC",1.099
|
592 |
+
756,756,13,MED,"MALIGNANCY, FEMALE REPRODUCTIVE SYSTEM W/O CC/MCC",0.5777
|
593 |
+
757,757,13,MED,"INFECTIONS, FEMALE REPRODUCTIVE SYSTEM W MCC",1.6945
|
594 |
+
758,758,13,MED,"INFECTIONS, FEMALE REPRODUCTIVE SYSTEM W CC",1.079
|
595 |
+
759,759,13,MED,"INFECTIONS, FEMALE REPRODUCTIVE SYSTEM W/O CC/MCC",0.7173
|
596 |
+
760,760,13,MED,MENSTRUAL & OTHER FEMALE REPRODUCTIVE SYSTEM DISORDERS W CC/MCC,0.8062
|
597 |
+
761,761,13,MED,MENSTRUAL & OTHER FEMALE REPRODUCTIVE SYSTEM DISORDERS W/O CC/MCC,0.4951
|
598 |
+
765,765,14,SURG,CESAREAN SECTION W CC/MCC,1.2194
|
599 |
+
766,766,14,SURG,CESAREAN SECTION W/O CC/MCC,0.8586
|
600 |
+
767,767,14,SURG,VAGINAL DELIVERY W STERILIZATION &/OR D&C,0.9225
|
601 |
+
768,768,14,SURG,VAGINAL DELIVERY W O.R. PROC EXCEPT STERIL &/OR D&C,1.8304
|
602 |
+
769,769,14,SURG,POSTPARTUM & POST ABORTION DIAGNOSES W O.R. PROCEDURE,1.4668
|
603 |
+
770,770,14,SURG,"ABORTION W D&C, ASPIRATION CURETTAGE OR HYSTEROTOMY",0.6489
|
604 |
+
774,774,14,MED,VAGINAL DELIVERY W COMPLICATING DIAGNOSES,0.7217
|
605 |
+
775,775,14,MED,VAGINAL DELIVERY W/O COMPLICATING DIAGNOSES,0.5755
|
606 |
+
776,776,14,MED,POSTPARTUM & POST ABORTION DIAGNOSES W/O O.R. PROCEDURE,0.6565
|
607 |
+
777,777,14,MED,ECTOPIC PREGNANCY,0.8777
|
608 |
+
778,778,14,MED,THREATENED ABORTION,0.5049
|
609 |
+
779,779,14,MED,ABORTION W/O D&C,0.4962
|
610 |
+
780,780,14,MED,FALSE LABOR,0.1896
|
611 |
+
781,781,14,MED,OTHER ANTEPARTUM DIAGNOSES W MEDICAL COMPLICATIONS,0.6687
|
612 |
+
782,782,14,MED,OTHER ANTEPARTUM DIAGNOSES W/O MEDICAL COMPLICATIONS,0.405
|
613 |
+
789,789,15,MED,"NEONATES, DIED OR TRANSFERRED TO ANOTHER ACUTE CARE FACILITY",1.5035
|
614 |
+
790,790,15,MED,"EXTREME IMMATURITY OR RESPIRATORY DISTRESS SYNDROME, NEONATE",4.9579
|
615 |
+
791,791,15,MED,PREMATURITY W MAJOR PROBLEMS,3.3861
|
616 |
+
792,792,15,MED,PREMATURITY W/O MAJOR PROBLEMS,2.0431
|
617 |
+
793,793,15,MED,FULL TERM NEONATE W MAJOR PROBLEMS,3.4783
|
618 |
+
794,794,15,MED,NEONATE W OTHER SIGNIFICANT PROBLEMS,1.2311
|
619 |
+
795,795,15,MED,NORMAL NEWBORN,0.1667
|
620 |
+
799,799,16,SURG,SPLENECTOMY W MCC,5.1496
|
621 |
+
800,800,16,SURG,SPLENECTOMY W CC,2.6372
|
622 |
+
801,801,16,SURG,SPLENECTOMY W/O CC/MCC,1.5736
|
623 |
+
802,802,16,SURG,OTHER O.R. PROC OF THE BLOOD & BLOOD FORMING ORGANS W MCC,3.6452
|
624 |
+
803,803,16,SURG,OTHER O.R. PROC OF THE BLOOD & BLOOD FORMING ORGANS W CC,1.7576
|
625 |
+
804,804,16,SURG,OTHER O.R. PROC OF THE BLOOD & BLOOD FORMING ORGANS W/O CC/MCC,1.1211
|
626 |
+
808,808,16,MED,MAJOR HEMATOL/IMMUN DIAG EXC SICKLE CELL CRISIS & COAGUL W MCC,2.0902
|
627 |
+
809,809,16,MED,MAJOR HEMATOL/IMMUN DIAG EXC SICKLE CELL CRISIS & COAGUL W CC,1.1767
|
628 |
+
810,810,16,MED,MAJOR HEMATOL/IMMUN DIAG EXC SICKLE CELL CRISIS & COAGUL W/O CC/MCC,0.849
|
629 |
+
811,811,16,MED,RED BLOOD CELL DISORDERS W MCC,1.2556
|
630 |
+
812,812,16,MED,RED BLOOD CELL DISORDERS W/O MCC,0.7872
|
631 |
+
813,813,16,MED,COAGULATION DISORDERS,1.5841
|
632 |
+
814,814,16,MED,RETICULOENDOTHELIAL & IMMUNITY DISORDERS W MCC,1.6794
|
633 |
+
815,815,16,MED,RETICULOENDOTHELIAL & IMMUNITY DISORDERS W CC,1.0102
|
634 |
+
816,816,16,MED,RETICULOENDOTHELIAL & IMMUNITY DISORDERS W/O CC/MCC,0.6918
|
635 |
+
820,820,17,SURG,LYMPHOMA & LEUKEMIA W MAJOR O.R. PROCEDURE W MCC,5.7228
|
636 |
+
821,821,17,SURG,LYMPHOMA & LEUKEMIA W MAJOR O.R. PROCEDURE W CC,2.3066
|
637 |
+
822,822,17,SURG,LYMPHOMA & LEUKEMIA W MAJOR O.R. PROCEDURE W/O CC/MCC,1.1935
|
638 |
+
823,823,17,SURG,LYMPHOMA & NON-ACUTE LEUKEMIA W OTHER O.R. PROC W MCC,4.5397
|
639 |
+
824,824,17,SURG,LYMPHOMA & NON-ACUTE LEUKEMIA W OTHER O.R. PROC W CC,2.2603
|
640 |
+
825,825,17,SURG,LYMPHOMA & NON-ACUTE LEUKEMIA W OTHER O.R. PROC W/O CC/MCC,1.2712
|
641 |
+
826,826,17,SURG,MYELOPROLIF DISORD OR POORLY DIFF NEOPL W MAJ O.R. PROC W MCC,4.868
|
642 |
+
827,827,17,SURG,MYELOPROLIF DISORD OR POORLY DIFF NEOPL W MAJ O.R. PROC W CC,2.1765
|
643 |
+
828,828,17,SURG,MYELOPROLIF DISORD OR POORLY DIFF NEOPL W MAJ O.R. PROC W/O CC/MCC,1.3409
|
644 |
+
829,829,17,SURG,MYELOPROLIF DISORD OR POORLY DIFF NEOPL W OTHER O.R. PROC W CC/MCC,3.0335
|
645 |
+
830,830,17,SURG,MYELOPROLIF DISORD OR POORLY DIFF NEOPL W OTHER O.R. PROC W/O CC/MCC,1.1804
|
646 |
+
834,834,17,MED,ACUTE LEUKEMIA W/O MAJOR O.R. PROCEDURE W MCC,5.1622
|
647 |
+
835,835,17,MED,ACUTE LEUKEMIA W/O MAJOR O.R. PROCEDURE W CC,2.2133
|
648 |
+
836,836,17,MED,ACUTE LEUKEMIA W/O MAJOR O.R. PROCEDURE W/O CC/MCC,1.0992
|
649 |
+
837,837,17,MED,CHEMO W ACUTE LEUKEMIA AS SDX OR W HIGH DOSE CHEMO AGENT W MCC,6.4881
|
650 |
+
838,838,17,MED,CHEMO W ACUTE LEUKEMIA AS SDX W CC OR HIGH DOSE CHEMO AGENT,2.7537
|
651 |
+
839,839,17,MED,CHEMO W ACUTE LEUKEMIA AS SDX W/O CC/MCC,1.2412
|
652 |
+
840,840,17,MED,LYMPHOMA & NON-ACUTE LEUKEMIA W MCC,3.0103
|
653 |
+
841,841,17,MED,LYMPHOMA & NON-ACUTE LEUKEMIA W CC,1.6192
|
654 |
+
842,842,17,MED,LYMPHOMA & NON-ACUTE LEUKEMIA W/O CC/MCC,1.045
|
655 |
+
843,843,17,MED,OTHER MYELOPROLIF DIS OR POORLY DIFF NEOPL DIAG W MCC,1.8719
|
656 |
+
844,844,17,MED,OTHER MYELOPROLIF DIS OR POORLY DIFF NEOPL DIAG W CC,1.2216
|
657 |
+
845,845,17,MED,OTHER MYELOPROLIF DIS OR POORLY DIFF NEOPL DIAG W/O CC/MCC,0.8612
|
658 |
+
846,846,17,MED,CHEMOTHERAPY W/O ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS W MCC,2.4374
|
659 |
+
847,847,17,MED,CHEMOTHERAPY W/O ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS W CC,1.0447
|
660 |
+
848,848,17,MED,CHEMOTHERAPY W/O ACUTE LEUKEMIA AS SECONDARY DIAGNOSIS W/O CC/MCC,0.7878
|
661 |
+
849,849,17,MED,RADIOTHERAPY,1.3396
|
662 |
+
853,853,18,SURG,INFECTIOUS & PARASITIC DISEASES W O.R. PROCEDURE W MCC,5.3431
|
663 |
+
854,854,18,SURG,INFECTIOUS & PARASITIC DISEASES W O.R. PROCEDURE W CC,2.5583
|
664 |
+
855,855,18,SURG,INFECTIOUS & PARASITIC DISEASES W O.R. PROCEDURE W/O CC/MCC,1.5331
|
665 |
+
856,856,18,SURG,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS W O.R. PROC W MCC,4.8125
|
666 |
+
857,857,18,SURG,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS W O.R. PROC W CC,2.0649
|
667 |
+
858,858,18,SURG,POSTOPERATIVE OR POST-TRAUMATIC INFECTIONS W O.R. PROC W/O CC/MCC,1.2534
|
668 |
+
862,862,18,MED,POSTOPERATIVE & POST-TRAUMATIC INFECTIONS W MCC,2.0099
|
669 |
+
863,863,18,MED,POSTOPERATIVE & POST-TRAUMATIC INFECTIONS W/O MCC,0.9822
|
670 |
+
864,864,18,MED,FEVER,0.8443
|
671 |
+
865,865,18,MED,VIRAL ILLNESS W MCC,1.5181
|
672 |
+
866,866,18,MED,VIRAL ILLNESS W/O MCC,0.7594
|
673 |
+
867,867,18,MED,OTHER INFECTIOUS & PARASITIC DISEASES DIAGNOSES W MCC,2.5861
|
674 |
+
868,868,18,MED,OTHER INFECTIOUS & PARASITIC DISEASES DIAGNOSES W CC,1.0762
|
675 |
+
869,869,18,MED,OTHER INFECTIOUS & PARASITIC DISEASES DIAGNOSES W/O CC/MCC,0.7415
|
676 |
+
870,870,18,MED,SEPTICEMIA OR SEVERE SEPSIS W MV 96+ HOURS,5.8399
|
677 |
+
871,871,18,MED,SEPTICEMIA OR SEVERE SEPSIS W/O MV 96+ HOURS W MCC,1.8803
|
678 |
+
872,872,18,MED,SEPTICEMIA OR SEVERE SEPSIS W/O MV 96+ HOURS W/O MCC,1.0988
|
679 |
+
876,876,19,SURG,O.R. PROCEDURE W PRINCIPAL DIAGNOSES OF MENTAL ILLNESS,2.7097
|
680 |
+
880,880,19,MED,ACUTE ADJUSTMENT REACTION & PSYCHOSOCIAL DYSFUNCTION,0.6474
|
681 |
+
881,881,19,MED,DEPRESSIVE NEUROSES,0.6356
|
682 |
+
882,882,19,MED,NEUROSES EXCEPT DEPRESSIVE,0.6271
|
683 |
+
883,883,19,MED,DISORDERS OF PERSONALITY & IMPULSE CONTROL,1.3613
|
684 |
+
884,884,19,MED,ORGANIC DISTURBANCES & MENTAL RETARDATION,0.985
|
685 |
+
885,885,19,MED,PSYCHOSES,0.9539
|
686 |
+
886,886,19,MED,BEHAVIORAL & DEVELOPMENTAL DISORDERS,0.7812
|
687 |
+
887,887,19,MED,OTHER MENTAL DISORDER DIAGNOSES,0.9473
|
688 |
+
894,894,20,MED,"ALCOHOL/DRUG ABUSE OR DEPENDENCE, LEFT AMA",0.4278
|
689 |
+
895,895,20,MED,ALCOHOL/DRUG ABUSE OR DEPENDENCE W REHABILITATION THERAPY,1.0963
|
690 |
+
896,896,20,MED,ALCOHOL/DRUG ABUSE OR DEPENDENCE W/O REHABILITATION THERAPY W MCC,1.5271
|
691 |
+
897,897,20,MED,ALCOHOL/DRUG ABUSE OR DEPENDENCE W/O REHABILITATION THERAPY W/O MCC,0.6788
|
692 |
+
901,901,21,SURG,WOUND DEBRIDEMENTS FOR INJURIES W MCC,4.3477
|
693 |
+
902,902,21,SURG,WOUND DEBRIDEMENTS FOR INJURIES W CC,1.7079
|
694 |
+
903,903,21,SURG,WOUND DEBRIDEMENTS FOR INJURIES W/O CC/MCC,0.989
|
695 |
+
904,904,21,SURG,SKIN GRAFTS FOR INJURIES W CC/MCC,2.9145
|
696 |
+
905,905,21,SURG,SKIN GRAFTS FOR INJURIES W/O CC/MCC,1.263
|
697 |
+
906,906,21,SURG,HAND PROCEDURES FOR INJURIES,1.1596
|
698 |
+
907,907,21,SURG,OTHER O.R. PROCEDURES FOR INJURIES W MCC,3.8565
|
699 |
+
908,908,21,SURG,OTHER O.R. PROCEDURES FOR INJURIES W CC,1.9519
|
700 |
+
909,909,21,SURG,OTHER O.R. PROCEDURES FOR INJURIES W/O CC/MCC,1.2051
|
701 |
+
913,913,21,MED,TRAUMATIC INJURY W MCC,1.2273
|
702 |
+
914,914,21,MED,TRAUMATIC INJURY W/O MCC,0.6998
|
703 |
+
915,915,21,MED,ALLERGIC REACTIONS W MCC,1.5168
|
704 |
+
916,916,21,MED,ALLERGIC REACTIONS W/O MCC,0.5042
|
705 |
+
917,917,21,MED,POISONING & TOXIC EFFECTS OF DRUGS W MCC,1.4542
|
706 |
+
918,918,21,MED,POISONING & TOXIC EFFECTS OF DRUGS W/O MCC,0.6304
|
707 |
+
919,919,21,MED,COMPLICATIONS OF TREATMENT W MCC,1.6615
|
708 |
+
920,920,21,MED,COMPLICATIONS OF TREATMENT W CC,0.9693
|
709 |
+
921,921,21,MED,COMPLICATIONS OF TREATMENT W/O CC/MCC,0.6637
|
710 |
+
922,922,21,MED,"OTHER INJURY, POISONING & TOXIC EFFECT DIAG W MCC",1.4305
|
711 |
+
923,923,21,MED,"OTHER INJURY, POISONING & TOXIC EFFECT DIAG W/O MCC",0.6438
|
712 |
+
927,927,22,SURG,EXTENSIVE BURNS OR FULL THICKNESS BURNS W MV 96+ HRS W SKIN GRAFT,16.4026
|
713 |
+
928,928,22,SURG,FULL THICKNESS BURN W SKIN GRAFT OR INHAL INJ W CC/MCC,4.7919
|
714 |
+
929,929,22,SURG,FULL THICKNESS BURN W SKIN GRAFT OR INHAL INJ W/O CC/MCC,2.242
|
715 |
+
933,933,22,MED,EXTENSIVE BURNS OR FULL THICKNESS BURNS W MV 96+ HRS W/O SKIN GRAFT,2.374
|
716 |
+
934,934,22,MED,FULL THICKNESS BURN W/O SKIN GRFT OR INHAL INJ,1.5123
|
717 |
+
935,935,22,MED,NON-EXTENSIVE BURNS,1.341
|
718 |
+
939,939,23,SURG,O.R. PROC W DIAGNOSES OF OTHER CONTACT W HEALTH SERVICES W MCC,2.7769
|
719 |
+
940,940,23,SURG,O.R. PROC W DIAGNOSES OF OTHER CONTACT W HEALTH SERVICES W CC,1.8108
|
720 |
+
941,941,23,SURG,O.R. PROC W DIAGNOSES OF OTHER CONTACT W HEALTH SERVICES W/O CC/MCC,1.1776
|
721 |
+
945,945,23,MED,REHABILITATION W CC/MCC,1.3204
|
722 |
+
946,946,23,MED,REHABILITATION W/O CC/MCC,1.253
|
723 |
+
947,947,23,MED,SIGNS & SYMPTOMS W MCC,1.1131
|
724 |
+
948,948,23,MED,SIGNS & SYMPTOMS W/O MCC,0.701
|
725 |
+
949,949,23,MED,AFTERCARE W CC/MCC,0.9372
|
726 |
+
950,950,23,MED,AFTERCARE W/O CC/MCC,0.5693
|
727 |
+
951,951,23,MED,OTHER FACTORS INFLUENCING HEALTH STATUS,0.8105
|
728 |
+
955,955,24,SURG,CRANIOTOMY FOR MULTIPLE SIGNIFICANT TRAUMA,5.417
|
729 |
+
956,956,24,SURG,"LIMB REATTACHMENT, HIP & FEMUR PROC FOR MULTIPLE SIGNIFICANT TRAUMA",3.6372
|
730 |
+
957,957,24,SURG,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA W MCC,6.4182
|
731 |
+
958,958,24,SURG,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA W CC,3.9004
|
732 |
+
959,959,24,SURG,OTHER O.R. PROCEDURES FOR MULTIPLE SIGNIFICANT TRAUMA W/O CC/MCC,2.5646
|
733 |
+
963,963,24,MED,OTHER MULTIPLE SIGNIFICANT TRAUMA W MCC,2.8483
|
734 |
+
964,964,24,MED,OTHER MULTIPLE SIGNIFICANT TRAUMA W CC,1.4975
|
735 |
+
965,965,24,MED,OTHER MULTIPLE SIGNIFICANT TRAUMA W/O CC/MCC,0.96
|
736 |
+
969,969,25,SURG,HIV W EXTENSIVE O.R. PROCEDURE W MCC,5.4815
|
737 |
+
970,970,25,SURG,HIV W EXTENSIVE O.R. PROCEDURE W/O MCC,2.6631
|
738 |
+
974,974,25,MED,HIV W MAJOR RELATED CONDITION W MCC,2.5943
|
739 |
+
975,975,25,MED,HIV W MAJOR RELATED CONDITION W CC,1.3142
|
740 |
+
976,976,25,MED,HIV W MAJOR RELATED CONDITION W/O CC/MCC,0.8416
|
741 |
+
977,977,25,MED,HIV W OR W/O OTHER RELATED CONDITION,1.0517
|
742 |
+
981,981,,SURG,EXTENSIVE O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W MCC,5.027
|
743 |
+
982,982,,SURG,EXTENSIVE O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W CC,2.8276
|
744 |
+
983,983,,SURG,EXTENSIVE O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W/O CC/MCC,1.7175
|
745 |
+
984,984,,SURG,PROSTATIC O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W MCC,3.6217
|
746 |
+
985,985,,SURG,PROSTATIC O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W CC,2.0895
|
747 |
+
986,986,,SURG,PROSTATIC O.R. PROCEDURE UNRELATED TO PRINCIPAL DIAGNOSIS W/O CC/MCC,1.071
|
748 |
+
987,987,,SURG,NON-EXTENSIVE O.R. PROC UNRELATED TO PRINCIPAL DIAGNOSIS W MCC,3.3374
|
749 |
+
988,988,,SURG,NON-EXTENSIVE O.R. PROC UNRELATED TO PRINCIPAL DIAGNOSIS W CC,1.8141
|
750 |
+
989,989,,SURG,NON-EXTENSIVE O.R. PROC UNRELATED TO PRINCIPAL DIAGNOSIS W/O CC/MCC,1.015
|
751 |
+
998,998,,**,PRINCIPAL DIAGNOSIS INVALID AS DISCHARGE DIAGNOSIS,0.0
|
752 |
+
999,999,,**,UNGROUPABLE,0.0
|
app.py
ADDED
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
import gradio as gr
|
3 |
+
import pandas as pd
|
4 |
+
import torch
|
5 |
+
import random
|
6 |
+
|
7 |
+
from model import MimicTransformer
|
8 |
+
from utils import load_rule, get_attribution, get_drg_link, visualize_attn
|
9 |
+
from transformers import set_seed
|
10 |
+
|
11 |
+
set_seed(42)
|
12 |
+
|
13 |
+
def read_model(model, path):
|
14 |
+
model.load_state_dict(torch.load(path, map_location=torch.device('cpu')), strict=False)
|
15 |
+
return model
|
16 |
+
|
17 |
+
model_path = 'checkpoint_0_9113.bin'
|
18 |
+
mimic = MimicTransformer(cutoff=512)
|
19 |
+
|
20 |
+
related_tensor = torch.load('discharge_embeddings.pt')
|
21 |
+
|
22 |
+
# get model and results
|
23 |
+
mimic = read_model(model=mimic, path=model_path)
|
24 |
+
all_summaries = pd.read_csv('all_summaries.csv')['SUMMARIES'][:10000].to_list()
|
25 |
+
|
26 |
+
tokenizer = mimic.tokenizer
|
27 |
+
mimic.eval()
|
28 |
+
|
29 |
+
ex1 = """Radiologic studies also included a chest CT, which confirmed cavitary lesions in the left lung apex consistent with infectious tuberculosis. This also moderate-sized left pleural effusion."""
|
30 |
+
ex2 = """We have discharged Mrs Smith on regular oral Furosemide (40mg OD) and we have requested an outpatient ultrasound of her renal tract which will be performed in the next few weeks. We will review Mrs Smith in the Cardiology Outpatient Clinic in 6 weeks time."""
|
31 |
+
ex3 = """Blood tests revealed a raised BNP. An ECG showed evidence of left-ventricular hypertrophy and echocardiography revealed grossly impaired ventricular function (ejection fraction 35%). A chest X-ray demonstrated bilateral pleural effusions, with evidence of upper lobe diversion."""
|
32 |
+
ex4 = """Mrs Smith presented to A&E with worsening shortness of breath and ankle swelling. On arrival, she was tachypnoeic and hypoxic (oxygen saturation 82% on air). Clinical examination revealed reduced breath sounds and dullness to percussion in both lung bases. There was also a significant degree of lower limb oedema extending up to the mid-thigh bilaterally."""
|
33 |
+
examples = [ex1, ex2, ex3, ex4]
|
34 |
+
related_summaries = [[ex1]]
|
35 |
+
related_chosen = []
|
36 |
+
related_attn = []
|
37 |
+
related_clr_bts = []
|
38 |
+
|
39 |
+
rule_df, drg2idx, i2d, d2mdc, d2w = load_rule('MSDRG_RULE13.csv')
|
40 |
+
|
41 |
+
def mean_pooling(model_output, attention_mask):
|
42 |
+
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
|
43 |
+
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
|
44 |
+
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
|
45 |
+
|
46 |
+
|
47 |
+
def get_model_results(text):
|
48 |
+
inputs = tokenizer(text, return_tensors='pt', padding='max_length', max_length=512, truncation=True)
|
49 |
+
outputs = mimic(input_ids=inputs.input_ids, attention_mask=inputs.attention_mask, drg_labels=None)
|
50 |
+
attribution, reconstructed_text = get_attribution(text=text, tokenizer=tokenizer, model_outputs=outputs, inputs=inputs, k=10)
|
51 |
+
logits = outputs[0][0]
|
52 |
+
out = logits.detach().cpu()[0]
|
53 |
+
drg_code = i2d[out.argmax().item()]
|
54 |
+
prob = torch.nn.functional.softmax(out).max()
|
55 |
+
return {
|
56 |
+
'class': drg_code,
|
57 |
+
'prob': prob,
|
58 |
+
'attn': attribution,
|
59 |
+
'tokens': reconstructed_text,
|
60 |
+
'logits': logits
|
61 |
+
}
|
62 |
+
|
63 |
+
def find_related_summaries(raw_embedding):
|
64 |
+
raw_embedding = torch.nn.functional.normalize(raw_embedding)
|
65 |
+
scores = torch.mm(related_tensor, raw_embedding.transpose(1,0))
|
66 |
+
scores_indices = scores.topk(k=5, dim=0)
|
67 |
+
indices, scores = scores_indices[-1], torch.round(100 * scores_indices[0], decimals=2)
|
68 |
+
summaries = []
|
69 |
+
for summary_idx, score in zip(indices, scores):
|
70 |
+
corresp_summary = all_summaries[summary_idx]
|
71 |
+
summary = f'{round(score.item(),2)}% Similarity Rate for the following Discharge Summary:\n\n{corresp_summary}'
|
72 |
+
summaries.append([summary])
|
73 |
+
return summaries
|
74 |
+
|
75 |
+
|
76 |
+
|
77 |
+
def run(text, related_discharges=False):
|
78 |
+
model_results = get_model_results(text=text)
|
79 |
+
drg_code = model_results['class']
|
80 |
+
drg_link = get_drg_link(drg_code=drg_code)
|
81 |
+
row = rule_df[rule_df['DRG_CODE'] == drg_code]
|
82 |
+
drg_description = row['DESCRIPTION'].values[0]
|
83 |
+
model_results['class_dsc'] = drg_description
|
84 |
+
global related_summaries
|
85 |
+
# related_summaries = generate_similar_summeries()
|
86 |
+
related_summaries = find_related_summaries(model_results['logits'])
|
87 |
+
if related_discharges:
|
88 |
+
return visualize_attn(model_results=model_results)
|
89 |
+
return (
|
90 |
+
visualize_attn(model_results=model_results),
|
91 |
+
gr.Dataset.update(samples=related_summaries, visible=True, label='Related Discharge Summaries'),
|
92 |
+
gr.ClearButton.update(visible=True),
|
93 |
+
gr.TextArea.update(visible=True),
|
94 |
+
gr.Button.update(visible=True),
|
95 |
+
gr.Button.update(visible=True)
|
96 |
+
)
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
def run_related():
|
101 |
+
global related_chosen
|
102 |
+
attn_list = []
|
103 |
+
clr_bts = []
|
104 |
+
for related in related_chosen:
|
105 |
+
text = related[0]
|
106 |
+
attn_html = run(text=text, related_discharges=True)
|
107 |
+
attn_list.append(gr.HTML.update(value=attn_html))
|
108 |
+
clr_bts.append(gr.ClearButton.update(visible=True))
|
109 |
+
if len(attn_list) != 3:
|
110 |
+
# find difference
|
111 |
+
diff = 3 - len(attn_list)
|
112 |
+
for i in range(diff):
|
113 |
+
attn_list.append(gr.HTML.update(value=''))
|
114 |
+
clr_bts.append(gr.ClearButton.update(visible=False))
|
115 |
+
return attn_list + clr_bts
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
+
def load_example(example_id):
|
120 |
+
global related_summaries
|
121 |
+
global related_chosen
|
122 |
+
sample = related_summaries[example_id][0]
|
123 |
+
cleaned_sample = sample.split('% Similarity Rate for the following Discharge Summary:\n\n')[1:]
|
124 |
+
related_chosen.append(cleaned_sample)
|
125 |
+
return prettify_text(related_chosen)
|
126 |
+
# return related_chosen
|
127 |
+
|
128 |
+
def generate_similar_summeries():
|
129 |
+
if random.random() > 0.5:
|
130 |
+
return [[ex1], [ex3]]
|
131 |
+
else:
|
132 |
+
return [[ex2], [ex4]]
|
133 |
+
|
134 |
+
def remove_info(c1, c2):
|
135 |
+
return gr.ClearButton.update(visible=False)
|
136 |
+
|
137 |
+
def prettify_text(nested_list):
|
138 |
+
idx = 1
|
139 |
+
string = ''
|
140 |
+
for li in nested_list:
|
141 |
+
string += f'({idx})\n{li[0]}\n\n'
|
142 |
+
idx += 1
|
143 |
+
return string
|
144 |
+
|
145 |
+
def remove_most_recent():
|
146 |
+
global related_chosen
|
147 |
+
related_chosen = related_chosen[:-1]
|
148 |
+
if len(related_chosen) == 0:
|
149 |
+
return ''
|
150 |
+
return prettify_text(related_chosen)
|
151 |
+
|
152 |
+
def clr_btn():
|
153 |
+
return gr.ClearButton.update(visible=False)
|
154 |
+
|
155 |
+
def main():
|
156 |
+
with gr.Blocks() as demo:
|
157 |
+
gr.Markdown("""
|
158 |
+
# DRGCoder
|
159 |
+
This interface outlines DRGCoder, an explainable clinical coding for the early prediction of diagnostic-related groups (DRGs). Please note all summaries will be truncated to 512 words if longer.
|
160 |
+
""")
|
161 |
+
with gr.Row() as row:
|
162 |
+
with gr.Column(scale=2) as col:
|
163 |
+
input = gr.Textbox(label="Input Discharge Summary Here", placeholder='sample discharge summary')
|
164 |
+
btn = gr.Button(value="Submit")
|
165 |
+
with gr.Column(scale=3) as col:
|
166 |
+
gr.Examples(examples, [input])
|
167 |
+
with gr.Row() as row:
|
168 |
+
with gr.Column() as col:
|
169 |
+
attn_viz = gr.HTML()
|
170 |
+
attn_clr_btn = gr.ClearButton(value='Remove output', visible=False, components=[attn_viz])
|
171 |
+
attn_clr_btn.click(clr_btn, outputs=[attn_clr_btn])
|
172 |
+
|
173 |
+
# related row 1
|
174 |
+
with gr.Row() as row:
|
175 |
+
with gr.Column() as col:
|
176 |
+
attn = gr.HTML()
|
177 |
+
related_attn.append(attn)
|
178 |
+
attn_clr = gr.ClearButton(value='Remove output', visible=False, components=[attn])
|
179 |
+
related_clr_bts.append(attn_clr)
|
180 |
+
attn_clr.click(clr_btn, outputs=[attn_clr])
|
181 |
+
|
182 |
+
# related row 2
|
183 |
+
with gr.Row() as row:
|
184 |
+
with gr.Column() as col:
|
185 |
+
attn = gr.HTML()
|
186 |
+
related_attn.append(attn)
|
187 |
+
attn_clr = gr.ClearButton(value='Remove output', visible=False, components=[attn])
|
188 |
+
related_clr_bts.append(attn_clr)
|
189 |
+
attn_clr.click(clr_btn, outputs=[attn_clr])
|
190 |
+
|
191 |
+
# related row 3
|
192 |
+
with gr.Row() as row:
|
193 |
+
with gr.Column() as col:
|
194 |
+
attn = gr.HTML()
|
195 |
+
related_attn.append(attn)
|
196 |
+
attn_clr = gr.ClearButton(value='Remove output', visible=False, components=[attn])
|
197 |
+
related_clr_bts.append(attn_clr)
|
198 |
+
attn_clr.click(clr_btn, outputs=[attn_clr])
|
199 |
+
|
200 |
+
# input to related summaries
|
201 |
+
with gr.Row() as row:
|
202 |
+
with gr.Column(scale=4) as col:
|
203 |
+
input_related = gr.TextArea(label="Input up to 3 Related Discharge Summary/Summaries Here", visible=False)
|
204 |
+
rmv_related_btn = gr.Button(value='Remove Related Summary', visible=False)
|
205 |
+
with gr.Column(scale=4) as col:
|
206 |
+
related = gr.Dataset(samples=[], components=[input_related], visible=False, type='index')
|
207 |
+
sbm_btn = gr.Button(value="Submit Related Summaries", components=[input_related], visible=False)
|
208 |
+
|
209 |
+
# initial run
|
210 |
+
btn.click(run, inputs=[input], outputs=[attn_viz, related, attn_clr_btn, input_related, sbm_btn, rmv_related_btn])
|
211 |
+
# find related summaries
|
212 |
+
related.click(load_example, inputs=[related], outputs=[input_related])
|
213 |
+
# remove related summaries
|
214 |
+
rmv_related_btn.click(remove_most_recent, outputs=[input_related])
|
215 |
+
|
216 |
+
# perform attribution on related summaries
|
217 |
+
sbm_btn.click(run_related, outputs=related_attn + related_clr_bts)
|
218 |
+
|
219 |
+
|
220 |
+
demo.launch(share=True)
|
221 |
+
|
222 |
+
if __name__ == "__main__":
|
223 |
+
main()
|
discharge_embeddings.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28719850725ae66c3e55fd4bfd8f95bdd511d258dfd90b29d088c4a7720aa758
|
3 |
+
size 29520786
|
model.py
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import AutoConfig, AutoTokenizer, AutoModelForSequenceClassification
|
2 |
+
from torch.utils.data import DataLoader
|
3 |
+
from torch.nn import Linear, Module
|
4 |
+
from typing import Dict, List
|
5 |
+
from collections import Counter, defaultdict
|
6 |
+
from itertools import chain
|
7 |
+
import torch
|
8 |
+
|
9 |
+
class MimicTransformer(Module):
|
10 |
+
def __init__(self, num_labels=738, tokenizer_name='clinical', cutoff=512):
|
11 |
+
"""
|
12 |
+
:param args:
|
13 |
+
"""
|
14 |
+
super().__init__()
|
15 |
+
self.tokenizer_name = self.find_tokenizer(tokenizer_name)
|
16 |
+
self.num_labels = num_labels
|
17 |
+
self.config = AutoConfig.from_pretrained(self.tokenizer_name, num_labels=self.num_labels)
|
18 |
+
self.tokenizer = AutoTokenizer.from_pretrained(self.tokenizer_name, config=self.config)
|
19 |
+
self.model = AutoModelForSequenceClassification.from_pretrained(self.tokenizer_name, config=self.config)
|
20 |
+
if 'longformer' in self.tokenizer_name:
|
21 |
+
self.cutoff = self.model.config.max_position_embeddings
|
22 |
+
else:
|
23 |
+
self.cutoff = cutoff
|
24 |
+
self.linear = Linear(in_features=self.cutoff, out_features=1)
|
25 |
+
|
26 |
+
def parse_icds(self, instances: List[Dict]):
|
27 |
+
token_list = defaultdict(set)
|
28 |
+
token_freq_list = []
|
29 |
+
for instance in instances:
|
30 |
+
icds = list(chain(*instance['icd']))
|
31 |
+
icd_dict_list = list({icd['start']: icd for icd in icds}.values())
|
32 |
+
for icd_dict in icd_dict_list:
|
33 |
+
icd_ent = icd_dict['text']
|
34 |
+
icd_tokenized = self.tokenizer(icd_ent, add_special_tokens=False)['input_ids']
|
35 |
+
icd_dict['tokens'] = icd_tokenized
|
36 |
+
icd_dict['labels'] = []
|
37 |
+
for i,token in enumerate(icd_tokenized):
|
38 |
+
if i != 0:
|
39 |
+
label = "I-ATTN"
|
40 |
+
else:
|
41 |
+
label = "B-ATTN"
|
42 |
+
icd_dict['labels'].append(label)
|
43 |
+
token_list[token].add(label)
|
44 |
+
token_freq_list.append(str(token) + ": " + label)
|
45 |
+
token_tag_freqs = Counter(token_freq_list)
|
46 |
+
for token in token_list:
|
47 |
+
if len(token_list[token]) == 2:
|
48 |
+
inside_count = token_tag_freqs[str(token) + ": I-ATTN"]
|
49 |
+
begin_count = token_tag_freqs[str(token) + ": B-ATTN"]
|
50 |
+
if begin_count > inside_count:
|
51 |
+
token_list[token].remove('I-ATTN')
|
52 |
+
else:
|
53 |
+
token_list[token].remove('B-ATTN')
|
54 |
+
return token_list
|
55 |
+
|
56 |
+
|
57 |
+
def collate_mimic(
|
58 |
+
self, instances: List[Dict], device='cuda'
|
59 |
+
):
|
60 |
+
tokenized = [
|
61 |
+
self.tokenizer.encode(
|
62 |
+
' '.join(instance['description']), max_length=self.cutoff, truncation=True, padding='max_length'
|
63 |
+
) for instance in instances
|
64 |
+
]
|
65 |
+
entries = [instance['entry'] for instance in instances]
|
66 |
+
labels = torch.tensor([x['drg'] for x in instances], dtype=torch.long).to(device).unsqueeze(1)
|
67 |
+
inputs = torch.tensor(tokenized, dtype=torch.long).to(device)
|
68 |
+
icds = self.parse_icds(instances)
|
69 |
+
xai_labels = torch.zeros(size=inputs.shape, dtype=torch.float32).to(device)
|
70 |
+
for i,row in enumerate(inputs):
|
71 |
+
for j,ele in enumerate(row):
|
72 |
+
if ele.item() in icds:
|
73 |
+
xai_labels[i][j] = 1
|
74 |
+
return {
|
75 |
+
'text': inputs,
|
76 |
+
'drg': labels,
|
77 |
+
'entry': entries,
|
78 |
+
'icds': icds,
|
79 |
+
'xai': xai_labels
|
80 |
+
}
|
81 |
+
|
82 |
+
def forward(self, input_ids, attention_mask=None, drg_labels=None):
|
83 |
+
if drg_labels:
|
84 |
+
cls_results = self.model(input_ids, attention_mask=attention_mask, labels=drg_labels, output_attentions=True)
|
85 |
+
else:
|
86 |
+
cls_results = self.model(input_ids, attention_mask=attention_mask, output_attentions=True)
|
87 |
+
# last_attn = cls_results[-1][-1] # (batch, attn_heads, tokens, tokens)
|
88 |
+
last_attn = torch.mean(torch.stack(cls_results[-1])[:], dim=0)
|
89 |
+
last_layer_attn = torch.mean(last_attn[:, :-3, :, :], dim=1)
|
90 |
+
xai_logits = self.linear(last_layer_attn).squeeze(dim=-1)
|
91 |
+
return (cls_results, xai_logits)
|
92 |
+
|
93 |
+
def find_tokenizer(self, tokenizer_name):
|
94 |
+
"""
|
95 |
+
|
96 |
+
:param args:
|
97 |
+
:return:
|
98 |
+
"""
|
99 |
+
if tokenizer_name == 'clinical_longformer':
|
100 |
+
return 'yikuan8/Clinical-Longformer'
|
101 |
+
if tokenizer_name == 'clinical':
|
102 |
+
return 'emilyalsentzer/Bio_ClinicalBERT'
|
103 |
+
else:
|
104 |
+
# standard transformer
|
105 |
+
return 'bert-based-uncased'
|
related_summaries.py
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
import torch
|
3 |
+
from transformers import AutoTokenizer, AutoModel, set_seed
|
4 |
+
from tqdm import tqdm
|
5 |
+
|
6 |
+
from model import MimicTransformer
|
7 |
+
set_seed(42)
|
8 |
+
|
9 |
+
def read_model(model, path):
|
10 |
+
model.load_state_dict(torch.load(path, map_location=torch.device('cuda')), strict=False)
|
11 |
+
return model
|
12 |
+
|
13 |
+
model_path = 'checkpoint_0_9113.bin'
|
14 |
+
mimic = MimicTransformer(cutoff=512)
|
15 |
+
mimic = read_model(model=mimic, path=model_path)
|
16 |
+
mimic.eval()
|
17 |
+
mimic.cuda()
|
18 |
+
tokenizer = mimic.tokenizer
|
19 |
+
|
20 |
+
summaries = pd.read_csv('all_summaries.csv')['SUMMARIES']
|
21 |
+
|
22 |
+
def mean_pooling(model_output, attention_mask):
|
23 |
+
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
|
24 |
+
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
|
25 |
+
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
|
26 |
+
|
27 |
+
def get_model_outputs(text):
|
28 |
+
inputs = tokenizer(text, return_tensors='pt', padding='max_length', max_length=512, truncation=True).to('cuda')
|
29 |
+
outputs = mimic(input_ids=inputs.input_ids, attention_mask=inputs.attention_mask, drg_labels=None)
|
30 |
+
# pooled = mean_pooling(outputs[0][0], inputs['attention_mask'])
|
31 |
+
pooled = outputs[0][0]
|
32 |
+
normalized = pooled/pooled.norm(dim=1)[:,None]
|
33 |
+
return normalized
|
34 |
+
|
35 |
+
return_tensors = torch.zeros(size=(10000, 738))
|
36 |
+
|
37 |
+
for i, summary in tqdm(enumerate(summaries[:10000])):
|
38 |
+
res = get_model_outputs(text=summary)
|
39 |
+
return_tensors[i, :] = res.detach().cpu()
|
40 |
+
# sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
41 |
+
# sentence_embeddings = sentence_embeddings/sentence_embeddings.norm(dim=1)[:,None]
|
42 |
+
|
43 |
+
torch.save(return_tensors, f='discharge_embeddings.pt')
|
utils.py
ADDED
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import urllib.request, urllib.error, urllib.parse
|
2 |
+
import json
|
3 |
+
import pandas as pd
|
4 |
+
import ssl
|
5 |
+
import torch
|
6 |
+
from pprint import pprint
|
7 |
+
from captum.attr import visualization
|
8 |
+
|
9 |
+
REST_URL = "http://data.bioontology.org"
|
10 |
+
API_KEY = "604a90bc-ef14-4c26-a347-f4928fa086ea"
|
11 |
+
ssl._create_default_https_context = ssl._create_unverified_context
|
12 |
+
|
13 |
+
class PyTMinMaxScalerVectorized(object):
|
14 |
+
"""
|
15 |
+
From https://discuss.pytorch.org/t/using-scikit-learns-scalers-for-torchvision/53455
|
16 |
+
Transforms each channel to the range [0, 1].
|
17 |
+
"""
|
18 |
+
def __call__(self, tensor):
|
19 |
+
scale = 1.0 / (tensor.max(dim=0, keepdim=True)[0] - tensor.min(dim=0, keepdim=True)[0])
|
20 |
+
tensor.mul_(scale).sub_(tensor.min(dim=0, keepdim=True)[0])
|
21 |
+
return tensor
|
22 |
+
|
23 |
+
def get_drg_link(drg_code):
|
24 |
+
return f'https://www.aapc.com/codes/icd9-codes/{drg_code}'
|
25 |
+
|
26 |
+
def prettify(dict_list, k):
|
27 |
+
li = [di[k] for di in dict_list]
|
28 |
+
result = "\n".join(l for l in li)
|
29 |
+
return result
|
30 |
+
|
31 |
+
def get_json(text_to_annotate):
|
32 |
+
url = REST_URL + "/annotator?text=" + urllib.parse.quote(text_to_annotate) + "&ontologies=ICD9CM" +\
|
33 |
+
"&longest_only=false" + "&exclude_numbers=false" + "&whole_word_only=true" + '&exclude_synonyms=false'
|
34 |
+
opener = urllib.request.build_opener()
|
35 |
+
opener.addheaders = [('Authorization', 'apikey token=' + API_KEY)]
|
36 |
+
try:
|
37 |
+
return json.loads(opener.open(url).read())
|
38 |
+
except:
|
39 |
+
return []
|
40 |
+
|
41 |
+
def parse_results(results):
|
42 |
+
if len(results) == 0:
|
43 |
+
return []
|
44 |
+
rlist = []
|
45 |
+
for result in results:
|
46 |
+
annotations = result['annotations']
|
47 |
+
for annotation in annotations:
|
48 |
+
start = annotation['from']-1
|
49 |
+
end = annotation['to'] - 1
|
50 |
+
text = annotation['text']
|
51 |
+
rlist.append({
|
52 |
+
'start': start,
|
53 |
+
'end': end,
|
54 |
+
'text': text,
|
55 |
+
'link': result['annotatedClass']['@id']
|
56 |
+
})
|
57 |
+
return rlist
|
58 |
+
|
59 |
+
def get_icd_annotations(text):
|
60 |
+
response = get_json(text)
|
61 |
+
annotation_list = parse_results(response)
|
62 |
+
return annotation_list
|
63 |
+
|
64 |
+
def subfinder(mylist, pattern):
|
65 |
+
mylist = mylist.tolist()
|
66 |
+
pattern = pattern.tolist()
|
67 |
+
return list(filter(lambda x: x in pattern, mylist))
|
68 |
+
|
69 |
+
def tokenize_icds(tokenizer, annotations, token_ids):
|
70 |
+
icd_tokens = torch.zeros(token_ids.shape)
|
71 |
+
for annotation in annotations:
|
72 |
+
icd = annotation['text']
|
73 |
+
icd_token_ids = tokenizer(icd, add_special_tokens=False, return_tensors='pt').input_ids[0]
|
74 |
+
# find index of the beginning icd token
|
75 |
+
starting_indices = (token_ids==icd_token_ids[0]).nonzero(as_tuple=False)
|
76 |
+
num_icd_tokens = icd_token_ids.shape[0]
|
77 |
+
|
78 |
+
# if there's more than 1 icd token for the given annotation
|
79 |
+
if num_icd_tokens > 1:
|
80 |
+
# if there's only one starting index
|
81 |
+
if starting_indices.shape[0] == 1:
|
82 |
+
starting_index = starting_indices.item()
|
83 |
+
icd_tokens[starting_index: starting_index + num_icd_tokens] = 1
|
84 |
+
# if there's more than 1 starting index, determine which is the appropriate
|
85 |
+
else:
|
86 |
+
for starting_index in starting_indices:
|
87 |
+
if token_ids[starting_index + num_icd_tokens] == icd_token_ids:
|
88 |
+
icd_tokens[starting_index: starting_index + num_icd_tokens] = 1
|
89 |
+
|
90 |
+
# otherwise, set the corresponding index to a value of 1
|
91 |
+
else:
|
92 |
+
icd_tokens[starting_indices] = 1
|
93 |
+
return icd_tokens
|
94 |
+
|
95 |
+
def get_attribution(text, tokenizer, model_outputs, inputs, k=7):
|
96 |
+
tokens = tokenizer.convert_ids_to_tokens(inputs.input_ids[0])
|
97 |
+
padding_idx = tokens.index('[PAD]')
|
98 |
+
tokens = tokens[:padding_idx][1:-1]
|
99 |
+
attn = model_outputs[-1][0]
|
100 |
+
agg_attn, final_text = reconstruct_text(tokenizer=tokenizer, tokens=tokens, attn=attn)
|
101 |
+
return agg_attn, final_text
|
102 |
+
|
103 |
+
def reconstruct_text(tokenizer, tokens, attn):
|
104 |
+
"""
|
105 |
+
find a word -> token_id mapping that allows you to
|
106 |
+
perform an aggregation on the sub-tokens' attention
|
107 |
+
values
|
108 |
+
"""
|
109 |
+
reconstructed_text = tokenizer.convert_tokens_to_string(tokens)
|
110 |
+
num_subtokens = len([t for t in tokens if t.startswith('#')])
|
111 |
+
aggregated_attn = torch.zeros(len(tokens) - num_subtokens)
|
112 |
+
token_indices = [0]
|
113 |
+
token_idx = 0
|
114 |
+
reconstructed_tokens = []
|
115 |
+
for i, token in enumerate(tokens[1:], start=1):
|
116 |
+
# case when a token is a subtoken
|
117 |
+
if token.startswith('#'):
|
118 |
+
token_indices.append(i)
|
119 |
+
else:
|
120 |
+
# reconstruct the tokens to make sure you're doing this correctly
|
121 |
+
reconstructed_token = ''.join(tokens[i].replace('#', '') for i in token_indices)
|
122 |
+
reconstructed_tokens.append(reconstructed_token)
|
123 |
+
# find the corresponding attention vectors
|
124 |
+
aggregated_attn[token_idx] = torch.mean(attn[token_indices])
|
125 |
+
# create new index list
|
126 |
+
token_indices = [i]
|
127 |
+
token_idx += 1
|
128 |
+
# reconstruct the tokens to make sure you're doing this correctly
|
129 |
+
reconstructed_token = ''.join(tokens[i].replace('#', '') for i in token_indices)
|
130 |
+
reconstructed_tokens.append(reconstructed_token)
|
131 |
+
# find the corresponding attention vectors
|
132 |
+
aggregated_attn[token_idx] = torch.mean(attn[token_indices])
|
133 |
+
|
134 |
+
# final representation of text
|
135 |
+
final_text = ' '.join(reconstructed_tokens).replace(' .', '.')
|
136 |
+
final_text = final_text.replace(' ,', ',')
|
137 |
+
assert final_text == reconstructed_text
|
138 |
+
return aggregated_attn, reconstructed_tokens
|
139 |
+
|
140 |
+
def load_rule(path):
|
141 |
+
rule_df = pd.read_csv(path)
|
142 |
+
|
143 |
+
# remove MDC 15 - neonate and couple other codes related to postcare
|
144 |
+
if 'MS' in path:
|
145 |
+
msk = (rule_df['MDC']!='15') & (~rule_df['MS-DRG'].isin([945, 946, 949, 950, 998, 999]))
|
146 |
+
space = sorted(rule_df[msk]['DRG_CODE'].unique())
|
147 |
+
elif 'APR' in path:
|
148 |
+
msk = (rule_df['MDC']!='15') & (~rule_df['APR-DRG'].isin([860, 863]))
|
149 |
+
space = sorted(rule_df[msk]['DRG_CODE'].unique())
|
150 |
+
|
151 |
+
drg2idx = {}
|
152 |
+
for d in space:
|
153 |
+
drg2idx[d] = len(drg2idx)
|
154 |
+
i2d = {v:k for k,v in drg2idx.items()}
|
155 |
+
|
156 |
+
d2mdc, d2w = {}, {}
|
157 |
+
for _, r in rule_df.iterrows():
|
158 |
+
drg = r['DRG_CODE']
|
159 |
+
mdc = r['MDC']
|
160 |
+
w = r['WEIGHT']
|
161 |
+
d2mdc[drg] = mdc
|
162 |
+
d2w[drg] = w
|
163 |
+
|
164 |
+
return rule_df, drg2idx, i2d, d2mdc, d2w
|
165 |
+
|
166 |
+
def visualize_attn(model_results):
|
167 |
+
class_id = model_results['class_dsc']
|
168 |
+
prob = model_results['prob']
|
169 |
+
attn = model_results['attn']
|
170 |
+
tokens = model_results['tokens']
|
171 |
+
scaler = PyTMinMaxScalerVectorized()
|
172 |
+
normalized_attn = scaler(attn)
|
173 |
+
viz_record = visualization.VisualizationDataRecord(
|
174 |
+
word_attributions=normalized_attn,
|
175 |
+
pred_prob=prob,
|
176 |
+
pred_class=class_id,
|
177 |
+
true_class=class_id,
|
178 |
+
attr_class=0,
|
179 |
+
attr_score=1,
|
180 |
+
raw_input_ids=tokens,
|
181 |
+
convergence_score=1
|
182 |
+
)
|
183 |
+
return visualize_text(viz_record)
|
184 |
+
|
185 |
+
|
186 |
+
def modify_attn_html(attn_html):
|
187 |
+
attn_split = attn_html.split('<mark')
|
188 |
+
htmls = [attn_split[0]]
|
189 |
+
for html in attn_split[1:]:
|
190 |
+
# wrap around href tag
|
191 |
+
href_html = f'<a href="espn.com" \
|
192 |
+
<mark{html} \
|
193 |
+
</a>'
|
194 |
+
htmls.append(href_html)
|
195 |
+
return "".join(htmls)
|
196 |
+
|
197 |
+
# copied out of captum because we need raw html instead of a jupyter widget
|
198 |
+
def visualize_text(datarecord):
|
199 |
+
dom = ["<table width: 100%>"]
|
200 |
+
rows = [
|
201 |
+
"<th style='text-align: left'>Predicted DRG</th>"
|
202 |
+
"<th style='text-align: left'>Word Importance</th>"
|
203 |
+
]
|
204 |
+
pred_class_html = visualization.format_classname(datarecord.pred_class)
|
205 |
+
word_attn_html = visualization.format_word_importances(
|
206 |
+
datarecord.raw_input_ids, datarecord.word_attributions
|
207 |
+
)
|
208 |
+
word_attn_html = modify_attn_html(word_attn_html)
|
209 |
+
rows.append(
|
210 |
+
"".join(
|
211 |
+
[
|
212 |
+
"<tr>",
|
213 |
+
pred_class_html,
|
214 |
+
word_attn_html,
|
215 |
+
"<tr>",
|
216 |
+
]
|
217 |
+
)
|
218 |
+
)
|
219 |
+
|
220 |
+
dom.append("".join(rows))
|
221 |
+
dom.append("</table>")
|
222 |
+
html = "".join(dom)
|
223 |
+
|
224 |
+
return html
|