source: WorldVistAEHR/trunk/r/DRG_GROUPER-ICD--ICPT/ICDDRG5.m@ 1361

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

initial load of WorldVistAEHR

File size: 3.9 KB
RevLine 
[613]1ICDDRG5 ;ALB/GRR/EG/MRY/ADL - FIX SURGERY HIERARCHY ; 3/20/03 10:36am
2 ;;18.0;DRG Grouper;**2,5,7,10,20,22**;Oct 20, 2000;Build 1
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 D FY2006
6END S ICDJ=$O(ICDJ(0)) Q:ICDJ'>0 S ICDJ=ICDJ(ICDJ) K ICDODRG S ICDODRG(ICDJ)="" Q
7F I ICDJ=103 S ICDJ(1)=ICDJ Q
8 I ICDJ=525 S ICDJ(2)=ICDJ Q
9 I ICDJ=104 S ICDJ(3)=ICDJ Q
10 I ICDJ=535 S ICDJ(4)=ICDJ Q
11 I ICDJ=536 S ICDJ(5)=ICDJ Q
12 I ICDJ=515 S ICDJ(6)=ICDJ Q
13 I ICDJ=108 S ICDJ(7)=ICDJ Q
14 I ICDJ=106 S ICDJ(8)=ICDJ Q
15 I ICDJ=110 S ICDJ(9)=ICDJ Q
16 I ICDJ=111 S ICDJ(10)=ICDJ Q
17 I ICDJ=113 S ICDJ(11)=ICDJ Q
18 I ICDJ=115 S ICDJ(12)=ICDJ Q
19 I ICDJ=116 S ICDJ(13)=ICDJ Q
20 I ICDJ=526 S ICDJ(14)=ICDJ Q
21 I ICDJ=527 S ICDJ(15)=ICDJ Q
22 I ICDJ=516 S ICDJ(16)=ICDJ Q
23 I ICDJ=517 S ICDJ(17)=ICDJ Q
24 I ICDJ=518 S ICDJ(18)=ICDJ Q
25 I ICDJ=478 S ICDJ(19)=ICDJ Q
26 I ICDJ=479 S ICDJ(20)=ICDJ Q
27 ;I ICDJ=112 S IC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S ICDJ(30)=ICDJ Q
65 I ICDJ=120 S ICDJ(31)=ICDJ
66 Q
67EN1 S (ICDCC3,ICDCC2)=0
68 I $D(ICDOP(" 00.50")) S ICDCC3=1
69 I $D(ICDOP(" 00.52")) I $D(ICDOP(" 00.53")) S ICDCC3=1
70 I $D(ICDOP(" 37.70"))!($D(ICDOP(" 37.71")))!($D(ICDOP(" 37.73"))) D MORE Q
71 I $D(ICDOP(" 37.72")) I $D(ICDOP(" 37.80"))!($D(ICDOP(" 37.83"))) S ICDCC3=1 Q
72 I $D(ICDOP(" 37.74")) I $D(ICDOP(" 37.80"))!($D(ICDOP(" 37.81")))!($D(ICDOP(" 37.82")))!($D(ICDOP(" 37.83")))!($D(ICDOP(" 37.85")))!($D(ICDOP(" 37.86")))!($D(ICDOP(" 37.87"))) S ICDCC3=1 Q
73 I $D(ICDOP(" 37.76")) I $D(ICDOP(" 37.80"))!($D(ICDOP(" 37.85")))!($D(ICDOP(" 37.86")))!($D(ICDOP(" 37.87"))) S ICDCC3=1 Q
74 I $D(ICDOP(" 00.53")) I $D(ICDOP(" 37.70"))!($D(ICDOP(" 37.71")))!($D(ICDOP(" 37.72")))!($D(ICDOP(" 37.73")))!($D(ICDOP("37.74 ")))!($D(ICDOP(" 37.76"))) S ICDCC3=1
75 I $D(ICDOP(" 00.54"))!$D(ICDOP(" 37.95"))!$D(ICDOP(" 37.96"))!$D(ICDOP(" 37.97"))!$D(ICDOP(" 37.98"))!$D(ICDOP(" 00.52")) S ICDCC2=1
76 Q
77MORE I $D(ICDOP(" 37.80"))!($D(ICDOP(" 37.81")))!($D(ICDOP(" 37.82")))!($D(ICDOP(" 37.85")))!($D(ICDOP(" 37.86")))!($D(ICDOP(" 37.87"))) S ICDCC3=1 Q
78 Q
79VALV ;valve procedure
80 N ICDTMP
81 S (ICDCATH,ICDAJ)="" F ICDI=1:1 Q:'$D(ICDPRC(ICDI)) S ICDAJ=ICDPRC(ICDI),ICDTMP=$$ICDOP^ICDCODE(ICDAJ,$G(ICDDATE)),ICDY(0)=$S((ICDTMP>0&$P(ICDTMP,U,10)):$P(ICDTMP,U,2,99),1:0) I ICDY(0) D
82 . S ICDOP($P(ICDY(0),"^",1))="",ICDCATH=ICDCATH_$P(ICDY(0),"^",2)
83 S ICDE1=$S($D(ICDOP(37.95))&($D(ICDOP(37.96))):1,1:0),ICDE2=$S($D(ICDOP(37.97))&($D(ICDOP(37.98))):1,1:0)
84 Q
85 S:ICDCATH["H" ICDRG=$S(ICDCATH["N"&ICDE1:104,ICDCATH["N"&ICDE2:104,ICDCATH["O":104,1:ICDRG)
86 S:ICDCATH'["H" ICDRG=$S(ICDCATH["N"&ICDE1:105,ICDCATH["N"&ICDE2:105,ICDCATH["O":105,1:ICDRG)
87 K ICDCATH,ICDAJ,ICDE1,ICDE2,ICDI,ICDOP,ICDY Q
88VALV1 ;dx combo's for DRG120
89 S ICDE1=$S($D(ICDOP(" 37.95"))&($D(ICDOP(" 37.96"))):1,1:0),ICDE2=$S($D(ICDOP(" 37.97"))&($D(ICDOP(" 37.98"))):1,1:0)
90 S ICDRG=$S((ICDE1&(ICDOR["H")):104,(ICDE1&(ICDOR'["H")):105,(ICDE2&(ICDOR["H")):104,(ICDE2&(ICDOR'["H")):105,1:120)
91 K ICDE1,ICDE2
92 Q
Note: See TracBrowser for help on using the repository browser.