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J Q
I ICDJ=159 S ICDJ(16)=ICDJ Q
I ICDJ=161 S ICDJ(17)=ICDJ Q
I ICDJ=163 S ICDJ(18)=ICDJ Q
I ICDJ=170 S ICDJ(19)=ICDJ
Q
FY2008 ;
I ICDJ=328 S ICDJ(1)=ICDJ Q
I ICDJ=331 S ICDJ(2)=ICDJ Q
I ICDJ=334 S ICDJ(3)=ICDJ Q
I ICDJ=337 S ICDJ(4)=ICDJ Q
I ICDJ=340 S ICDJ(5)=ICDJ Q
I ICDJ=343 S ICDJ(6)=ICDJ Q
I ICDJ=346 S ICDJ(7)=ICDJ Q
I ICDJ=349 S ICDJ(8)=ICDJ Q
I ICDJ=352 S ICDJ(9)=ICDJ Q
I ICDJ=355 S ICDJ(10)=ICDJ Q
I ICDJ=358 S ICDJ(11)=ICDJ Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDDRG6 1667 printed Oct 16, 2024@17:50:59 Page 2
ICDDRG6 ;ALB/GRR - FIX SURGERY HIERARCHY ; 10/23/00 11:40am
+1 ;;18.0;DRG Grouper;**24,27,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<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)=""
KILL ICDJ
QUIT
F IF ICDJ=154
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=148
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=146
SET ICDJ(3)=ICDJ
QUIT
+3 IF ICDJ=150
SET ICDJ(4)=ICDJ
QUIT
+4 IF ICDJ=164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