ICDDRG7 ;ALB/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:41am
;;18.0;DRG Grouper;**31**;Oct 20, 2000;Build 7
Q:$O(ICDODRG(0))'>0 K ICDJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0 D
.I ICDDATE<3071001 D F Q
.E D FY2008
END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" K ICDJ Q
F I ICDJ=191 S ICDJ(1)=ICDJ Q
I ICDJ=192 S ICDJ(2)=ICDJ Q
I ICDJ=195 S ICDJ(3)=ICDJ Q
I ICDJ=196 S ICDJ(4)=ICDJ Q
I ICDJ=197 S ICDJ(5)=ICDJ Q
I ICDJ=198 S ICDJ(6)=ICDJ Q
I ICDJ=493 S ICDJ(7)=ICDJ Q
I ICDJ=494 S ICDJ(8)=ICDJ Q
I ICDJ=193 S ICDJ(9)=ICDJ Q
I ICDJ=194 S ICDJ(10)=ICDJ Q
I ICDJ=199 S ICDJ(11)=ICDJ Q
I ICDJ=200 S ICDJ(12)=ICDJ Q
I ICDJ=201 S ICDJ(13)=ICDJ
Q
FY2008 ;
I ICDJ=407 S ICDJ(1)=ICDJ Q
I ICDJ=410 S ICDJ(2)=ICDJ Q
I ICDJ=413 S ICDJ(3)=ICDJ Q
I ICDJ=416 S ICDJ(4)=ICDJ Q
I ICDJ=419 S ICDJ(5)=ICDJ Q
I ICDJ=422 S ICDJ(6)=ICDJ Q
I ICDJ=423 S ICDJ(7)=ICDJ Q
Q
ICDDRG7 ;ALB/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:41am
+1 ;;18.0;DRG Grouper;**31**;Oct 20, 2000;Build 7
+2 IF $ORDER(ICDODRG(0))'>0
QUIT
KILL ICDJ
FOR ICDJ=0:0
SET ICDJ=$ORDER(ICDODRG(ICDJ))
IF ICDJ'>0
QUIT
Begin DoDot:1
+3 IF ICDDATE<3071001
DO F
QUIT
+4 IF '$TEST
DO FY2008
End DoDot:1
END SET ICDJ=$ORDER(ICDJ(0))
IF ICDJ'>0
QUIT
SET ICDJ=ICDJ(ICDJ)
KILL ICDODRG
SET ICDODRG(ICDJ)=""
KILL ICDJ
QUIT
F IF ICDJ=191
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=192
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=195
SET ICDJ(3)=ICDJ
QUIT
+3 IF ICDJ=196
SET ICDJ(4)=ICDJ
QUIT
+4 IF ICDJ=197
SET ICDJ(5)=ICDJ
QUIT
+5 IF ICDJ=198
SET ICDJ(6)=ICDJ
QUIT
+6 IF ICDJ=493
SET ICDJ(7)=ICDJ
QUIT
+7 IF ICDJ=494
SET ICDJ(8)=ICDJ
QUIT
+8 IF ICDJ=193
SET ICDJ(9)=ICDJ
QUIT
+9 IF ICDJ=194
SET ICDJ(10)=ICDJ
QUIT
+10 IF ICDJ=199
SET ICDJ(11)=ICDJ
QUIT
+11 IF ICDJ=200
SET ICDJ(12)=ICDJ
QUIT
+12 IF ICDJ=201
SET ICDJ(13)=ICDJ
+13 QUIT
FY2008 ;
+1 IF ICDJ=407
SET ICDJ(1)=ICDJ
QUIT
+2 IF ICDJ=410
SET ICDJ(2)=ICDJ
QUIT
+3 IF ICDJ=413
SET ICDJ(3)=ICDJ
QUIT
+4 IF ICDJ=416
SET ICDJ(4)=ICDJ
QUIT
+5 IF ICDJ=419
SET ICDJ(5)=ICDJ
QUIT
+6 IF ICDJ=422
SET ICDJ(6)=ICDJ
QUIT
+7 IF ICDJ=423
SET ICDJ(7)=ICDJ
QUIT
+8 QUIT