ICDDRG10 ;ALB/GRR - FIX SURGERY HIERARCHY ; 11/6/00 2:03pm
;;18.0;DRG Grouper;**24,31,50**;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<3061001 D F Q
. E I ICDDATE<3071001 D FY2007 Q
. E I ICDDATE<3101001 D FY2008
. E D FY2011
END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" Q
F I ICDJ=286 S ICDJ(1)=ICDJ Q
I ICDJ=288 S ICDJ(2)=ICDJ Q
I ICDJ=285 S ICDJ(3)=ICDJ
Q
FY2007 ;
I ICDJ=286 S ICDJ(1)=ICDJ Q
I ICDJ=285 S ICDJ(2)=ICDJ Q
I ICDJ=288 S ICDJ(3)=ICDJ
Q
FY2008 ;MS-DRG
I ICDJ-615 S ICDJ(1)=ICDJ Q
I ICDJ=618 S ICDJ(2)=ICDJ Q
I ICDJ=621 S ICDJ(3)=ICDJ Q
I ICDJ=624 S ICDJ(4)=ICDJ Q
I ICDJ=627 S ICDJ(5)=ICDJ Q
I ICDJ=630 S ICDJ(6)=ICDJ Q
FY2011 ;MS-DRG
I ICDJ-614 S ICDJ(1)=ICDJ Q
I ICDJ-615 S ICDJ(2)=ICDJ Q
I ICDJ=618 S ICDJ(3)=ICDJ Q
I ICDJ=621 S ICDJ(4)=ICDJ Q
I ICDJ=624 S ICDJ(5)=ICDJ Q
I ICDJ=625 S ICDJ(6)=ICDJ Q
I ICDJ=627 S ICDJ(7)=ICDJ Q
I ICDJ=630 S ICDJ(8)=ICDJ Q
Q
ICDDRG10 ;ALB/GRR - FIX SURGERY HIERARCHY ; 11/6/00 2:03pm
+1 ;;18.0;DRG Grouper;**24,31,50**;Oct 20, 2000;Build 7
+2 IF $ORDER(ICDODRG(0))'>0
Q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