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DJ Q
I ICDJ=583 S ICDJ(8)=ICDJ Q
I ICDJ=585 S ICDJ(9)=ICDJ Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDDRG9 1256 printed Dec 13, 2024@01:50:21 Page 2
ICDDRG9 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:42am
+1 ;;18.0;DRG Grouper;**31,56**;Oct 20, 2000;Build 18
+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<3071001
DO F
QUIT
+4 IF ICDDATE<3081001
DO FY2008
QUIT
+5 IF '$TEST
DO FY2012
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=263
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=264
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=265
SET ICDJ(3)=ICDJ
QUIT
+3 IF ICDJ=266
SET ICDJ(4)=ICDJ
QUIT
+4 IF ICDJ=268
SET ICDJ(5)=ICDJ
QUIT
+5 IF ICDJ=267
SET ICDJ(6)=ICDJ
QUIT
+6 IF ICDJ=257
SET ICDJ(7)=ICDJ
QUIT
+7 IF ICDJ=258
SET ICDJ(8)=ICDJ
QUIT
+8 IF ICDJ=259
SET ICDJ(9)=ICDJ
QUIT
+9 IF ICDJ=260
SET ICDJ(10)=ICDJ
QUIT
+10 IF ICDJ=261
SET ICDJ(11)=ICDJ
QUIT
+11 IF ICDJ=262
SET ICDJ(12)=ICDJ
QUIT
+12 IF ICDJ=269
SET ICDJ(13)=ICDJ
QUIT
+13 IF ICDJ=270
SET ICDJ(14)=ICDJ
+14 QUIT
FY2008 ;
+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