source: WorldVistAEHR/trunk/r/DRG_GROUPER-ICD--ICPT/ICDDRG2.m@ 1650

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

initial load of WorldVistAEHR

File size: 860 bytes
RevLine 
[613]1ICDDRG2 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 10/23/00 11:39am
2 ;;18.0;DRG Grouper;**24**;Oct 20, 2000;Build 5
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
5 .E D FY2007
6END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" K ICDJ Q
7F I ICDJ=37 S ICDJ(1)=ICDJ Q
8 I ICDJ=40 S ICDJ(2)=ICDJ Q
9 I ICDJ=36 S ICDJ(3)=ICDJ Q
10 I ICDJ=42 S ICDJ(4)=ICDJ Q
11 I ICDJ=39 S ICDJ(5)=ICDJ Q
12 I ICDJ=38 S ICDJ(6)=ICDJ Q
13 Q
14FY2007 ;
15 I ICDJ=37 S ICDJ(1)=ICDJ Q
16 I ICDJ=40 S ICDJ(2)=ICDJ Q
17 I ICDJ=42 S ICDJ(3)=ICDJ Q
18 I ICDJ=36 S ICDJ(4)=ICDJ Q
19 I ICDJ=39 S ICDJ(5)=ICDJ Q
20 I ICDJ=38 S ICDJ(6)=ICDJ Q
21 Q
22VER 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
23 S ICDRG=$S(ICDL39:39,1:42)
24 Q
Note: See TracBrowser for help on using the repository browser.