ICDDRG17 ;ALB/EG - FIX SURGERY HIERARCHY ; 10/9/03 11:41am
;;18.0;DRG Grouper;**10,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=539 S ICDJ(1)=ICDJ Q
I ICDJ=540 S ICDJ(2)=ICDJ Q
I ICDJ=473 S ICDJ(3)=ICDJ Q
I ICDJ=405 S ICDJ(4)=ICDJ Q
I ICDJ=401 S ICDJ(5)=ICDJ Q
I ICDJ=402 S ICDJ(6)=ICDJ Q
I ICDJ=403 S ICDJ(7)=ICDJ Q
I ICDJ=404 S ICDJ(8)=ICDJ Q
I ICDJ=406 S ICDJ(9)=ICDJ Q
I ICDJ=407 S ICDJ(10)=ICDJ Q
I ICDJ=408 S ICDJ(11)=ICDJ Q
I ICDJ=409 S ICDJ(12)=ICDJ Q
I ICDJ=492 S ICDJ(13)=ICDJ Q
I ICDJ=410 S ICDJ(14)=ICDJ Q
I ICDJ=412 S ICDJ(15)=ICDJ Q
I ICDJ=411 S ICDJ(16)=ICDJ Q
I ICDJ=413 S ICDJ(17)=ICDJ Q
I ICDJ=414 S ICDJ(18)=ICDJ Q
Q
FY2008 ;
I ICDJ=822 S ICDJ(1)=ICDJ Q
I ICDJ=825 S ICDJ(2)=ICDJ Q
I ICDJ=828 S ICDJ(3)=ICDJ Q
I ICDJ=830 S ICDJ(4)=ICDJ
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDDRG17 1012 printed Oct 16, 2024@17:50:56 Page 2
ICDDRG17 ;ALB/EG - FIX SURGERY HIERARCHY ; 10/9/03 11:41am
+1 ;;18.0;DRG Grouper;**10,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=539
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=540
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=473
SET ICDJ(3)=ICDJ
QUIT
+3 IF ICDJ=405
SET ICDJ(4)=ICDJ
QUIT
+4 IF ICDJ=401
SET ICDJ(5)=ICDJ
QUIT
+5 IF ICDJ=402
SET ICDJ(6)=ICDJ
QUIT
+6 IF ICDJ=403
SET ICDJ(7)=ICDJ
QUIT
+7 IF ICDJ=404
SET ICDJ(8)=ICDJ
QUIT
+8 IF ICDJ=406
SET ICDJ(9)=ICDJ
QUIT
+9 IF ICDJ=407
SET ICDJ(10)=ICDJ
QUIT
+10 IF ICDJ=408
SET ICDJ(11)=ICDJ
QUIT
+11 IF ICDJ=409
SET ICDJ(12)=ICDJ
QUIT
+12 IF ICDJ=492
SET ICDJ(13)=ICDJ
QUIT
+13 IF ICDJ=410
SET ICDJ(14)=ICDJ
QUIT
+14 IF ICDJ=412
SET ICDJ(15)=ICDJ
QUIT
+15 IF ICDJ=411
SET ICDJ(16)=ICDJ
QUIT
+16 IF ICDJ=413
SET ICDJ(17)=ICDJ
QUIT
+17 IF ICDJ=414
SET ICDJ(18)=ICDJ
QUIT
+18 QUIT
FY2008 ;
+1 IF ICDJ=822
SET ICDJ(1)=ICDJ
QUIT
+2 IF ICDJ=825
SET ICDJ(2)=ICDJ
QUIT
+3 IF ICDJ=828
SET ICDJ(3)=ICDJ
QUIT
+4 IF ICDJ=830
SET ICDJ(4)=ICDJ
+5 QUIT