source: WorldVistAEHR/trunk/r/DRG_GROUPER-ICD--ICPT/ICDDRG8.m@ 1259

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

initial load of WorldVistAEHR

File size: 3.8 KB
Line 
1ICDDRG8 ;ALB/GRR/EG - FIX SURGERY HIERARCHY ; 7/18/01 10:40am
2 ;;18.0;DRG Grouper;**1,2,10,20,24**;Oct 20, 2000;Build 5
3 Q:$O(ICDODRG(0))'>0 K ICDJ,ICDJJ F ICDJ=0:0 S ICDJ=$O(ICDODRG(ICDJ)) Q:ICDJ'>0 S ICDJJ(ICDJ)="" D
4 .I ICDDATE<3051001 D F
5 .E I ICDDATE<3061001 D FY2006
6 .E D FY2007
7END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" Q
8F I ICDJ=471 S ICDJ(1)=ICDJ Q
9 I ICDJ=217 S ICDJ(2)=ICDJ Q
10 I ICDJ=209 S ICDJ(3)=ICDJ Q
11 I ICDJ=216 S ICDJ(4)=ICDJ Q
12 I ICDJ=210 S ICDJ(5)=ICDJ Q
13 I ICDJ=213 S ICDJ(6)=ICDJ Q
14 I ICDJ=491 S ICDJ(7)=ICDJ Q
15 I ICDJ=497 S ICDJ(8)=ICDJ Q
16 I ICDJ=519 S ICDJ(9)=ICDJ Q
17 I ICDJ=520 S ICDJ(10)=ICDJ Q
18 I ICDJ=499 S ICDJ(11)=ICDJ Q
19 I ICDJ=501 S ICDJ(12)=ICDJ Q
20 I ICDJ=218 S ICDJ(13)=ICDJ Q
21 I ICDJ=231 S ICDJ(14)=ICDJ Q
22 I ICDJ=537 S ICDJ(15)=ICDJ Q
23 I ICDJ=230 S ICDJ(16)=ICDJ Q
24 I ICDJ=226 S ICDJ(17)=ICDJ Q
25 I ICDJ=227 S ICDJ(18)=ICDJ Q
26 I ICDJ=225 S ICDJ(19)=ICDJ Q
27 I ICDJ=228 S ICDJ(20)=ICDJ Q
28 I ICDJ=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
102 I ICDJ=227 S ICDJ(29)=ICDJ Q
103 I ICDJ=225 S ICDJ(30)=ICDJ Q
104 I ICDJ=228 S ICDJ(31)=ICDJ Q
105 I ICDJ=223 S ICDJ(32)=ICDJ Q
106 I ICDJ=232 S ICDJ(33)=ICDJ Q
107 I ICDJ=224 S ICDJ(34)=ICDJ Q
108 I ICDJ=229 S ICDJ(35)=ICDJ Q
109 I ICDJ=233 S ICDJ(36)=ICDJ Q
110 I ICDJ=234 S ICDJ(37)=ICDJ Q
111 Q
112EN1 ; paired spinal fusion codes
113 S ICDCC3=0
114 ;I $D(ICDOP(" 81.02"))!$D(ICDOP(" 81.04"))!$D(ICDOP(" 81.06"))&($D(ICDOP(" 81.03"))!$D(ICDOP(" 81.05"))!$D(ICDOP(" 81.08"))) S ICDCC3=1
115 N ICDA,ICDB S (ICDA,ICDB)=0
116 I $D(ICDOP(" 81.02"))!$D(ICDOP(" 81.04"))!$D(ICDOP(" 81.06"))!$D(ICDOP(" 81.32"))!$D(ICDOP(" 81.34"))!$D(ICDOP(" 81.36")) S ICDA=1
117 I $D(ICDOP(" 81.03"))!$D(ICDOP(" 81.05"))!$D(ICDOP(" 81.07"))!$D(ICDOP(" 81.08"))!$D(ICDOP(" 81.33"))!$D(ICDOP(" 81.35"))!$D(ICDOP(" 81.37"))!$D(ICDOP(" 81.38")) S ICDB=1
118 I ICDA&ICDB S ICDCC3=1
119 Q
Note: See TracBrowser for help on using the repository browser.