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008 ;
I ICDJ=735 S ICDJ(1)=ICDJ Q
I ICDJ=738 S ICDJ(2)=ICDJ Q
I ICDJ=741 S ICDJ(3)=ICDJ Q
I ICDJ=743 S ICDJ(4)=ICDJ Q
I ICDJ=745 S ICDJ(5)=ICDJ Q
I ICDJ=747 S ICDJ(6)=ICDJ Q
I ICDJ=748 S ICDJ(7)=ICDJ Q
I ICDJ=750 S ICDJ(8)=ICDJ
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDDRG13 1438 printed Oct 16, 2024@17:50:54 Page 2
ICDDRG13 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:38am
+1 ;;18.0;DRG Grouper;**24,31**;Oct 20, 2000;Build 7
+2 if $ORDER(ICDODRG(0))'>0
QUIT
KILL ICDJ,ICDJJ
FOR ICDJ=0:0
SET ICDJ=$ORDER(ICDODRG(ICDJ))
if ICDJ'>0
QUIT
SET ICDJJ(ICDJ)=""
Begin DoDot:1
+3 IF ICDDATE<3061001
DO F
QUIT
+4 IF '$TEST
IF ICDDATE<3071001
DO FY2007
QUIT
+5 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)=""
QUIT
F IF ICDJ=353
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=357
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=354
SET ICDJ(3)=ICDJ
QUIT
+3 IF ICDJ=355
SET ICDJ(4)=ICDJ
QUIT
+4 IF ICDJ=358
SET ICDJ(5)=ICDJ
QUIT
+5 IF ICDJ=359
SET ICDJ(6)=ICDJ
QUIT
+6 IF ICDJ=361
SET ICDJ(7)=ICDJ
QUIT
+7 IF ICDJ=360
SET ICDJ(8)=ICDJ
QUIT
+8 IF ICDJ=356
SET ICDJ(9)=ICDJ
QUIT
+9 IF ICDJ=363
SET ICDJ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