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

ICDDRG1.m

Go to the documentation of this file.
ICDDRG1 ;ALB/MRY - FIX SURGERY HIERARCHY ; 11/14/07 5:30pm
 ;;18.0;DRG Grouper;**10,17,24,31,50,56**;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  I ICDDATE<3101001 D FY2008 Q
 . E  I ICDDATE<3111001 D FY2011 Q
 . E  D FY2012
END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0  S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" K ICDJ Q
F I ICDJ=3 S ICDJ(1)=ICDJ Q
 I ICDJ=528 S ICDJ(2)=ICDJ Q
 I ICDJ=543 S ICDJ(3)=ICDJ Q
 I ICDJ=1 S ICDJ(4)=ICDJ Q
 I ICDJ=529 S ICDJ(5)=ICDJ Q
 I ICDJ=531 S ICDJ(6)=ICDJ Q
 I ICDJ=533 S ICDJ(7)=ICDJ Q
 I ICDJ=6 S ICDJ(8)=ICDJ Q
 I ICDJ=7 S ICDJ(9)=ICDJ Q
 I ICDJ=8 S ICDJ(10)=ICDJ Q
 I ICDJ=9 S ICDJ(11)=ICDJ Q
 I ICDJ=10 S ICDJ(12)=ICDJ Q
 I ICDJ=11 S ICDJ(13)=ICDJ Q
 I ICDJ=12 S ICDJ(14)=ICDJ Q
 I ICDJ=13 S ICDJ(15)=ICDJ Q
 I ICDJ=14 S ICDJ(16)=ICDJ Q
 I ICDJ=15 S ICDJ(17)=ICDJ Q
 I ICDJ=524 S ICDJ(18)=ICDJ Q
 I ICDJ=16 S ICDJ(19)=ICDJ Q
 I ICDJ=17 S ICDJ(20)=ICDJ Q
 I ICDJ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