source: FOIAVistA/trunk/r/DRG_GROUPER-ICD--ICPT/ICDDRG8.m@ 1614

Last change on this file since 1614 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 4.6 KB
Line 
1ICDDRG8 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 7/18/01 10:40am
2 ;;18.0;DRG Grouper;**1,2,10,20,24,31**;Oct 20, 2000;Build 7
3 Q:$O(ICDODRG(0))'>0 K ICDJ,ICDJJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0 S ICDJJ(ICDJ)="" D
4 .I ICDDATE<3051001 D F Q
5 .E I ICDDATE<3061001 D FY2006 Q
6 .E I ICDDATE<3071001 D FY2007 Q
7 .E D FY2008
8END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" Q
9F I ICDJ=471 S ICDJ(1)=ICDJ Q
10 I ICDJ=217 S ICDJ(2)=ICDJ Q
11 I ICDJ=209 S ICDJ(3)=ICDJ Q
12 I ICDJ=216 S ICDJ(4)=ICDJ Q
13 I ICDJ=210 S ICDJ(5)=ICDJ Q
14 I ICDJ=213 S ICDJ(6)=ICDJ Q
15 I ICDJ=491 S ICDJ(7)=ICDJ Q
16 I ICDJ=497 S ICDJ(8)=ICDJ Q
17 I ICDJ=519 S ICDJ(9)=ICDJ Q
18 I ICDJ=520 S ICDJ(10)=ICDJ Q
19 I ICDJ=499 S ICDJ(11)=ICDJ Q
20 I ICDJ=501 S ICDJ(12)=ICDJ Q
21 I ICDJ=218 S ICDJ(13)=ICDJ Q
22 I ICDJ=231 S ICDJ(14)=ICDJ Q
23 I ICDJ=537 S ICDJ(15)=ICDJ Q
24 I ICDJ=230 S ICDJ(16)=ICDJ Q
25 I ICDJ=226 S ICDJ(17)=ICDJ Q
26 I ICDJ=227 S ICDJ(18)=ICDJ Q
27 I ICDJ=225 S ICDJ(19)=ICDJ Q
28 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ICDJ Q
102 I ICDJ=226 S ICDJ(28)=ICDJ Q
103 I ICDJ=227 S ICDJ(29)=ICDJ Q
104 I ICDJ=225 S ICDJ(30)=ICDJ Q
105 I ICDJ=228 S ICDJ(31)=ICDJ Q
106 I ICDJ=223 S ICDJ(32)=ICDJ Q
107 I ICDJ=232 S ICDJ(33)=ICDJ Q
108 I ICDJ=224 S ICDJ(34)=ICDJ Q
109 I ICDJ=229 S ICDJ(35)=ICDJ Q
110 I ICDJ=233 S ICDJ(36)=ICDJ Q
111 I ICDJ=234 S ICDJ(37)=ICDJ Q
112 Q
113FY2008 ;
114 I ICDJ=455 S ICDJ(1)=ICDJ Q
115 I ICDJ=458 S ICDJ(2)=ICDJ Q
116 I ICDJ=460 S ICDJ(3)=ICDJ Q
117 I ICDJ=462 S ICDJ(4)=ICDJ Q
118 I ICDJ=465 S ICDJ(5)=ICDJ Q
119 I ICDJ=468 S ICDJ(6)=ICDJ Q
120 I ICDJ=470 S ICDJ(7)=ICDJ Q
121 I ICDJ=473 S ICDJ(8)=ICDJ Q
122 I ICDJ=476 S ICDJ(9)=ICDJ Q
123 I ICDJ=479 S ICDJ(10)=ICDJ Q
124 I ICDJ=482 S ICDJ(11)=ICDJ Q
125 I ICDJ=484 S ICDJ(12)=ICDJ Q
126 I ICDJ=487 S ICDJ(13)=ICDJ Q
127 I ICDJ=489 S ICDJ(14)=ICDJ Q
128 I ICDJ=491 S ICDJ(15)=ICDJ Q
129 I ICDJ=494 S ICDJ(16)=ICDJ Q
130 I ICDJ=497 S ICDJ(17)=ICDJ Q
131 I ICDJ=499 S ICDJ(18)=ICDJ Q
132 I ICDJ=502 S ICDJ(19)=ICDJ Q
133 I ICDJ=505 S ICDJ(20)=ICDJ Q
134 I ICDJ=506 S ICDJ(21)=ICDJ Q
135 I ICDJ=508 S ICDJ(22)=ICDJ Q
136 I ICDJ=509 S ICDJ(23)=ICDJ Q
137 I ICDJ=512 S ICDJ(24)=ICDJ Q
138 I ICDJ=514 S ICDJ(25)=ICDJ Q
139 I ICDJ=517 S ICDJ(26)=ICDJ Q
140 Q
141EN1 ; paired spinal fusion codes
142 S ICDCC3=0
143 ;I $D(ICDOP(" 81.02"))!$D(ICDOP(" 81.04"))!$D(ICDOP(" 81.06"))&($D(ICDOP(" 81.03"))!$D(ICDOP(" 81.05"))!$D(ICDOP(" 81.08"))) S ICDCC3=1
144 N ICDA,ICDB S (ICDA,ICDB)=0
145 I $D(ICDOP(" 81.02"))!$D(ICDOP(" 81.04"))!$D(ICDOP(" 81.06"))!$D(ICDOP(" 81.32"))!$D(ICDOP(" 81.34"))!$D(ICDOP(" 81.36")) S ICDA=1
146 I $D(ICDOP(" 81.03"))!$D(ICDOP(" 81.05"))!$D(ICDOP(" 81.07"))!$D(ICDOP(" 81.08"))!$D(ICDOP(" 81.33"))!$D(ICDOP(" 81.35"))!$D(ICDOP(" 81.37"))!$D(ICDOP(" 81.38")) S ICDB=1
147 I ICDA&ICDB S ICDCC3=1
148 Q
Note: See TracBrowser for help on using the repository browser.