Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ICDDRG3

ICDDRG3.m

Go to the documentation of this file.
ICDDRG3 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:39am
 ;;18.0;DRG Grouper;**24,31**;Oct 20, 2000;Build 7
 Q:$O(ICDODRG(0))'>0  K ICDJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0  D
 .I ICDDATE<3061001 D F Q
 .E  I ICDDATE<3071001 D FY2007 Q
 .E  D FY2008
END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0  S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" K ICDJ Q
F I ICDJ=49 S ICDJ(1)=ICDJ Q
 I ICDJ=61 S ICDJ(2)=ICDJ Q
 I ICDJ=62 S ICDJ(3)=ICDJ Q
 I ICDJ=53 S ICDJ(4)=ICDJ Q
 I ICDJ=54 S ICDJ(5)=ICDJ Q
 I ICDJ=57 S ICDJ(6)=ICDJ Q
 I ICDJ=58 S ICDJ(7)=ICDJ Q
 I ICDJ=52 S ICDJ(8)=ICDJ Q
 I ICDJ=168 S ICDJ(9)=ICDJ Q
 I ICDJ=169 S ICDJ(10)=ICDJ Q
 I ICDJ=56 S ICDJ(11)=ICDJ Q
 I ICDJ=50 S ICDJ(12)=ICDJ Q
 I ICDJ=51 S ICDJ(13)=ICDJ Q
 I ICDJ=55 S ICDJ(14)=ICDJ Q
 I ICDJ=59 S ICDJ(15)=ICDJ Q
 I ICDJ=60 S ICDJ(16)=ICDJ Q
 I ICDJ=63 S ICDJ(17)=ICDJ Q
 Q
FY2007 ;
 I ICDJ=49 S ICDJ(1)=ICDJ Q
 I ICDJ=61 S ICDJ(2)=ICDJ Q
 I ICDJ=62 S ICDJ(3)=ICDJ Q
 I ICDJ=53 S ICDJ(4)=ICDJ Q
 I ICDJ=54 S ICDJ(5)=IC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