source: FOIAVistA/trunk/r/DRG_GROUPER-ICD--ICPT/ICDDRG2.m@ 635

Last change on this file since 635 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 998 bytes
Line 
1ICDDRG2 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:39am
2 ;;18.0;DRG Grouper;**24,31**;Oct 20, 2000;Build 7
3 Q:$O(ICDODRG(0))'>0 K ICDJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0 D
4 .I ICDDATE<3061001 D F Q
5 .E I ICDDATE<3071001 D FY2007 Q
6 .E D FY2008
7END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" K ICDJ Q
8F I ICDJ=37 S ICDJ(1)=ICDJ Q
9 I ICDJ=40 S ICDJ(2)=ICDJ Q
10 I ICDJ=36 S ICDJ(3)=ICDJ Q
11 I ICDJ=42 S ICDJ(4)=ICDJ Q
12 I ICDJ=39 S ICDJ(5)=ICDJ Q
13 I ICDJ=38 S ICDJ(6)=ICDJ Q
14 Q
15FY2007 ;
16 I ICDJ=37 S ICDJ(1)=ICDJ Q
17 I ICDJ=40 S ICDJ(2)=ICDJ Q
18 I ICDJ=42 S ICDJ(3)=ICDJ Q
19 I ICDJ=36 S ICDJ(4)=ICDJ Q
20 I ICDJ=39 S ICDJ(5)=ICDJ Q
21 I ICDJ=38 S ICDJ(6)=ICDJ Q
22 Q
23FY2008 ;
24 I ICDJ=114 S ICDJ(1)=ICDJ Q
25 I ICDJ=115 S ICDJ(2)=ICDJ Q
26 I ICDJ=117 S ICDJ(3)=ICDJ Q
27 Q
28VER S ICDF="",ICDL39=0 F ICDFZ=1:1 S ICDF=$O(ICDOP(ICDF)) Q:ICDF="" S ICD=$P(ICDF," ",2) I "12.91^12.92^14.71^14.72^14.73^14.74^14.75^14.79"'[ICD S ICDL39=1 Q
29 S ICDRG=$S(ICDL39:39,1:42)
30 Q
Note: See TracBrowser for help on using the repository browser.