[613] | 1 | ICDTLB1B ;ALB/EG - GROUPER UTILITY FUNCTIONS FY 2006; 8/19/04 3:19pm ; 6/28/05 4:01pm
|
---|
| 2 | ;;18.0;DRG Grouper;**20**;Oct 20, 2000;Build 1
|
---|
| 3 | DRG1 D DRG528 D:ICDRG'=528 DRG543^ICDTLB6B D:ICDRG'=543 DRG529
|
---|
| 4 | S ICDRG=$S(AGE<18:3,ICDRG=528:528,ICDRG=543:543,ICDRG=529:529,ICDRG=530:530,ICDCC:1,1:2) I AGE="" S ICDRTC=3,ICDRG=470
|
---|
| 5 | Q
|
---|
| 6 | DRG2 D DRG1
|
---|
| 7 | Q
|
---|
| 8 | DRG3 D DRG1
|
---|
| 9 | Q
|
---|
| 10 | DRG7 S ICDRG=$S(ICDCC:7,1:8) Q
|
---|
| 11 | DRG8 S ICDRG=$S(ICDCC:7,1:8) Q
|
---|
| 12 | DRG10 S ICDRG=$S(ICDCC:10,1:11) Q
|
---|
| 13 | DRG11 S ICDRG=$S(ICDCC:10,1:11) Q
|
---|
| 14 | DRG16 S ICDRG=$S(ICDCC:16,1:17) Q
|
---|
| 15 | DRG17 S ICDRG=$S(ICDCC:16,1:17) Q
|
---|
| 16 | DRG18 S ICDRG=$S(ICDCC:18,1:19) Q
|
---|
| 17 | DRG19 S ICDRG=$S(ICDCC:18,1:19) Q
|
---|
| 18 | DRG24 S ICDRG=$S(AGE<18:26,ICDCC:24,1:25) I AGE="" S ICDRTC=3,ICDRG=470
|
---|
| 19 | Q
|
---|
| 20 | DRG25 S ICDRG=$S(AGE<18:26,ICDCC:24,1:25) I AGE="" S ICDRTC=3,ICDRG=470
|
---|
| 21 | Q
|
---|
| 22 | DRG26 S ICDRG=$S(AGE<18:26,ICDCC:24,1:25) I AGE="" S ICDRTC=3,ICDRG=470
|
---|
| 23 | Q
|
---|
| 24 | DRG27 S ICDRG=$S(ICDPD[1!(ICDSD[1):27,AGE="":470,AGE<18:30,ICDCC:28,1:29),ICDRTC=$S(ICDRG=470:3,1:ICDRTC) Q
|
---|
| 25 | DRG28 D DRG27 Q
|
---|
| 26 | DRG29 D DRG27 Q
|
---|
| 27 | DRG30 D DRG27 Q
|
---|
| 28 | DRG31 S ICDRG=$S(AGE<18:33,ICDCC:31,1:32) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 29 | Q
|
---|
| 30 | DRG32 S ICDRG=$S(AGE<18:33,ICDCC:31,1:32) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 31 | Q
|
---|
| 32 | DRG33 S ICDRG=$S(AGE<18:33,ICDCC:31,1:32) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 33 | Q
|
---|
| 34 | DRG34 S ICDRG=$S(ICDCC:34,1:35) Q
|
---|
| 35 | DRG35 S ICDRG=$S(ICDCC:34,1:35) Q
|
---|
| 36 | DRG39 D VER^ICDDRG2 Q
|
---|
| 37 | DRG40 S ICDRG=$S(AGE>17:40,1:41) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 38 | Q
|
---|
| 39 | DRG41 S ICDRG=$S(AGE>17:40,1:41) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 40 | Q
|
---|
| 41 | DRG46 S ICDRG=$S(AGE<18:48,ICDCC:46,1:47) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 42 | Q
|
---|
| 43 | DRG47 S ICDRG=$S(AGE<18:48,ICDCC:46,1:47) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 44 | Q
|
---|
| 45 | DRG48 S ICDRG=$S(AGE<18:48,ICDCC:46,1:47) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 46 | Q
|
---|
| 47 | DRG53 S ICDRG=$S(AGE>17:53,1:54) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 48 | Q
|
---|
| 49 | DRG54 S ICDRG=$S(AGE>17:53,1:54) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 50 | Q
|
---|
| 51 | DRG57 S ICDRG=$S((ICDOPCT>0)&($P(ICDY(0),U,1)="28.3"):$S(AGE>17:59,1:60),ICDOPCT>0:$S(AGE>17:57,1:58),AGE>17:59,1:60) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 52 | Q
|
---|
| 53 | DRG58 S ICDRG=$S(ICDOPCT>1:$S(AGE>17:57,1:58),AGE>17:59,1:60) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 54 | Q
|
---|
| 55 | DRG59 D EN1^ICDDRG3 I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 56 | Q
|
---|
| 57 | DRG60 D EN1^ICDDRG3 I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 58 | Q
|
---|
| 59 | DRG61 S ICDRG=$S(AGE>17:61,1:62) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 60 | Q
|
---|
| 61 | DRG62 S ICDRG=$S(AGE>17:61,1:62) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 62 | Q
|
---|
| 63 | DRG68 S ICDRG=$S(AGE<18:70,ICDCC:68,1:69) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 64 | Q
|
---|
| 65 | DRG69 S ICDRG=$S(AGE<18:70,ICDCC:68,1:69) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 66 | Q
|
---|
| 67 | DRG70 S ICDRG=$S(AGE<18:70,ICDCC:68,1:69) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 68 | Q
|
---|
| 69 | DRG73 S ICDRG=$S(AGE>17:73,1:74) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 70 | Q
|
---|
| 71 | DRG74 S ICDRG=$S(AGE>17:73,1:74) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 72 | Q
|
---|
| 73 | DRG75 S ICDRG=$S($D(ICDODRG(474)):474,1:ICDRG) Q
|
---|
| 74 | DRG76 S ICDRG=$S($D(ICDODRG(474)):474,ICDCC:76,1:77) Q
|
---|
| 75 | DRG77 S ICDRG=$S($D(ICDODRG(474)):474,ICDCC:76,1:77) Q
|
---|
| 76 | DRG78 S ICDRG=$S(ICDPD["X"&(ICDOR["H"):124,ICDSD["X"&(ICDOR["H"):124,1:78) Q
|
---|
| 77 | DRG79 S ICDRG=$S(AGE<18:81,ICDCC:79,1:80) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 78 | Q
|
---|
| 79 | DRG80 S ICDRG=$S(AGE<18:81,ICDCC:79,1:80) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 80 | Q
|
---|
| 81 | DRG81 S ICDRG=$S(AGE<18:81,ICDCC:79,1:80) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 82 | Q
|
---|
| 83 | DRG83 S ICDRG=$S(ICDCC:83,1:84) Q
|
---|
| 84 | DRG84 S ICDRG=$S(ICDCC:83,1:84) Q
|
---|
| 85 | DRG85 S ICDRG=$S(ICDCC:85,1:86) Q
|
---|
| 86 | DRG86 S ICDRG=$S(ICDCC:85,1:86) Q
|
---|
| 87 | DRG89 S ICDRG=$S(AGE<18:91,ICDCC:89,1:90) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 88 | Q
|
---|
| 89 | DRG90 S ICDRG=$S(AGE<18:91,ICDCC:89,1:90) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 90 | Q
|
---|
| 91 | DRG91 S ICDRG=$S(AGE<18:91,ICDCC:89,1:90) I AGE="" S ICDRG=470,ICDRTC=3
|
---|
| 92 | Q
|
---|
| 93 | DRG92 S ICDRG=$S(ICDCC!($D(ICDSDRG(92))):92,1:93) Q
|
---|
| 94 | DRG93 S ICDRG=$S(ICDCC:92,1:93) Q
|
---|
| 95 | DRG94 S ICDRG=$S(ICDCC:94,1:95) Q
|
---|
| 96 | DRG528 S ICDRG=$S((ICDPD["K")&(ICDOR["K"):528,1:ICDRG) Q
|
---|
| 97 | DRG529 S ICDRG=$S((ICDOR["S")&(ICDCC):529,(ICDOR["S")&('ICDCC):530,1:ICDRG) Q
|
---|
| 98 | DRG530 D DRG529 Q
|
---|