ICDDRG11 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:42am
;;18.0;DRG Grouper;**24,31**;Oct 20, 2000;Build 7
Q:$O(ICDODRG(0))'>0 K ICDJ,ICDJJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0 S ICDJJ(ICDJ)="" 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)="" Q
F I ICDJ=302 S ICDJ(1)=ICDJ Q
I ICDJ=573 S ICDJ(2)=ICDJ Q
I ICDJ=303 S ICDJ(3)=ICDJ Q
Q
FY2008 ;MS-DRG
I ICDJ=652 S ICDJ(1)=ICDJ Q
I ICDJ=655 S ICDJ(2)=ICDJ Q
I ICDJ=658 S ICDJ(3)=ICDJ Q
I ICDJ=661 S ICDJ(4)=ICDJ Q
I ICDJ=667 S ICDJ(5)=ICDJ Q
I ICDJ=670 S ICDJ(6)=ICDJ Q
I ICDJ=672 S ICDJ(7)=ICDJ Q
I ICDJ=675 S ICDJ(8)=ICDJ
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HICDDRG11 700 printed Dec 13, 2024@01:50:10 Page 2
ICDDRG11 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:42am
+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<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)=""
QUIT
F IF ICDJ=302
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ=573
SET ICDJ(2)=ICDJ
QUIT
+2 IF ICDJ=303
SET ICDJ(3)=ICDJ
QUIT
+3 QUIT
FY2008 ;MS-DRG
+1 IF ICDJ=652
SET ICDJ(1)=ICDJ
QUIT
+2 IF ICDJ=655
SET ICDJ(2)=ICDJ
QUIT
+3 IF ICDJ=658
SET ICDJ(3)=ICDJ
QUIT
+4 IF ICDJ=661
SET ICDJ(4)=ICDJ
QUIT
+5 IF ICDJ=667
SET ICDJ(5)=ICDJ
QUIT
+6 IF ICDJ=670
SET ICDJ(6)=ICDJ
QUIT
+7 IF ICDJ=672
SET ICDJ(7)=ICDJ
QUIT
+8 IF ICDJ=675
SET ICDJ(8)=ICDJ
+9 QUIT