ICDDRG12 ;ALB/GRR - FIX SURGERY HIERARCHY ; 10/23/00 11:37am
;;18.0;DRG Grouper;**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=334 S ICDJ(1)=ICDJ Q
I ICDJ=341 S ICDJ(2)=ICDJ Q
I ICDJ=338 S ICDJ(3)=ICDJ Q
I ICDJ=339 S ICDJ(4)=ICDJ Q
I ICDJ=342 S ICDJ(5)=ICDJ Q
I ICDJ=336 S ICDJ(6)=ICDJ Q
I ICDJ=344 S ICDJ(7)=ICDJ
Q
FY2008 ;MS-DRG
I ICDJ=708 S ICDJ(1)=ICDJ Q
I ICDJ=710 S ICDJ(2)=ICDJ Q
I ICDJ=712 S ICDJ(3)=ICDJ Q
I ICDJ=714 S ICDJ(4)=ICDJ Q
I ICDJ=718 S ICDJ(5)=ICDJ Q
Q
ICDDRG12 ;ALB/GRR - FIX SURGERY HIERARCHY ; 10/23/00 11:37am
+1 ;;18.0;DRG Grouper;**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=334
SET ICDJ(1)=ICDJ
QUIT
+1 IF ICDJ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