source: FOIAVistA/trunk/r/DRG_GROUPER-ICD--ICPT/ICDTBL8.m@ 894

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

initial load of FOIAVistA 6/30/08 version

File size: 3.7 KB
Line 
1ICDTBL8 ;ALB/EG/MRY - GROUPER UTILITY FUNCTIONS ; 11/9/07 1:01pm
2 ;;18.0;DRG Grouper;**31**;Oct 20, 2000;Build 7
3DRG800 ;
4DRG801 S ICDRG=$S(ICDMCC=2:799,ICDMCC=1:800,1:801) Q
5DRG802 ;
6DRG803 ;
7DRG804 S ICDRG=$S(ICDMCC=2:802,ICDMCC=1:803,1:804) Q
8DRG808 ;
9DRG809 ;
10DRG810 S ICDRG=$S(ICDMCC=2:808,ICDMCC=1:809,1:810) Q
11DRG811 ;
12DRG812 S ICDRG=$S(ICDMCC=2:811,1:812) Q
13DRG813 S ICDRG=813 Q
14DRG814 ;
15DRG815 ;
16DRG816 S ICDRG=$S(ICDMCC=2:814,ICDMCC=1:815,1:816) Q
17DRG820 ;DRG 20-22
18 ;removed check I ICDPD["L"&('$G(ICDMAJ))
19 I ICDPD["L"&('$G(ICDMAJ)) D DRG825 Q:"823^824^825^840^841^842^834^835^836"[ICDRG
20 ;removed check I ICDPD["L"
21 I ICDPD["L"&($G(ICDMAJ)) D Q
22 .S ICDRG=$S(ICDMCC=2:820,ICDMCC=1:821,1:822)
23 S ICDRG=$S(ICDMCC=2:826,ICDMCC=1:827,1:828)
24 Q
25DRG821 D DRG820 Q
26DRG822 D DRG820 Q
27DRG823 ;DRGs 823-825
28 S ICDRG=$S(ICDPD["l":836,ICDOR["O"!(ICDORNI["O"):825,1:842)
29 I ICDRG=836 S ICDRG=$S(ICDMCC=2:834,ICDMCC=1:835,1:836) Q
30 I ICDRG=825 S ICDRG=$S(ICDMCC=2:823,ICDMCC=1:824,1:825) Q
31 I ICDRG=842 D Q
32 .I ICDPD["L"&($D(ICDOP(" 92.30"))!$D(ICDOP(" 92.31"))!$D(ICDOP(" 92.32"))!$D(ICDOP(" 92.33"))!$D(ICDOP(" 92.39"))) S ICDRG=$S(ICDMCC=2:823,ICDMCC=1:824,1:825) Q
33 .I $D(ICDOP(" 92.30"))!$D(ICDOP(" 92.31"))!$D(ICDOP(" 92.32"))!$D(ICDOP(" 92.33"))!$D(ICDOP(" 92.39")) S ICDRG=$S(ICDMCC>0:829,1:830) Q
34 .S ICDRG=$S(ICDMCC=2:840,ICDMCC=1:841,1:842)
35 Q
36DRG824 D DRG823 Q
37DRG825 D DRG823 Q
38DRG826 ;DRGs 826-828
39 I ICDOCNT>0!(ICDOR["O") D Q
40 .S ICDRG=$S(ICDMCC=2:826,ICDMCC=1:827,1:828)
41 S ICDRG=$S(ICDMCC=2:843,ICDMCC=1:844,1:845)
42 Q
43DRG827 ;
44DRG828 S ICDRG=$S(ICDMCC=2:826,ICDMCC=1:827,1:828) Q
45DRG829 ;
46DRG830 S ICDRG=$S(ICDMCC>0:829,1:830) Q
47DRG834 ;DRGs 834-836
48DRG835 ;
49DRG836 D DRG840 Q
50DRG837 ;DRGs 837-839
51DRG838 ;
52DRG839 I ICDSD["l",ICDMCC=2 S ICDRG=837 Q
53 I ICDSD'["l",$D(ICDOP(" 00.15")),ICDMCC=2 S ICDRG=837 Q
54 I ICDSD["l",'$D(ICDOP(" 00.15")),ICDMCC=1 S ICDRG=838 Q
55 I ICDSD'["l",$D(ICDOP(" 00.15")) S ICDRG=838 Q
56 I ICDSD["l",'$D(ICDOP(" 00.15")) S ICDRG=839 Q
57 D DRG846 Q
58DRG840 ;DRGs 840-842
59 S ICDRG=$S(ICDPD["l":836,ICDOR["O"!ICDORNI["O":825,1:842)
60 I ICDRG=836 S ICDRG=$S(ICDMCC=2:834,ICDMCC=1:835,1:836) Q
61 I ICDRG=825 S ICDRG=$S(ICDMCC=2:823,ICDMCC=1:824,1:825) Q
62 S ICDRG=$S(ICDMCC=2:840,ICDMCC=1:841,1:842)
63 Q
64DRG841 D DRG840 Q
65DRG842 D DRG840 Q
66DRG843 ;
67DRG844 ;
68DRG845 S ICDRG=$S(ICDMCC=2:843,ICDMCC=1:844,1:845) Q
69DRG846 ;
70DRG847 ;
71DRG848 S ICDRG=$S(ICDMCC=2:846,ICDMCC=1:847,1:848) Q
72DRG849 S ICSDRG=849 Q
73DRG853 ;
74DRG854 ;
75DRG855 I ICDDX(1)=7322 D DRG856 Q
76 I ICDDX(1)=13271 D DRG856 Q
77 I ICDDX(1)=13272 D DRG856 Q
78 I ICDDX(1)=14543 D DRG856 Q
79 I ICDOR["O" S ICDRG=$S(ICDMCC=2:853,ICDMCC=1:854,1:855) Q
80 Q
81DRG856 ;
82DRG857 ;
83DRG858 I ICDOR["O" S ICDRG=$S(ICDMCC=2:856,ICDMCC=1:857,1:858) Q
84 Q
85DRG862 ;
86DRG863 S ICDRG=$S(ICDMCC=2:862,1:863) D DRG853 Q
87DRG864 S ICDRG=864 D DRG853 Q
88DRG865 ;
89DRG866 S ICDRG=$S(ICDMCC=2:865,1:866) D DRG853 Q
90DRG867 ;
91DRG868 ;
92DRG869 S ICDRG=$S(ICDMCC=2:867,ICDMCC=1:868,1:869) D DRG853 Q
93DRG870 ;DRGs 870-872
94 S ICDRG=$S(ICDOR["O":855,1:872) I ICDRG=872&($D(ICDOP(" 96.72"))) S ICDRG=870
95 I ICDRG=855 S ICDRG=$S(ICDMCC=2:853,ICDMCC=1:854,1:855) Q
96 I ICDRG=872 S ICDRG=$S(ICDMCC=2:871,1:872) Q
97 Q
98DRG871 D DRG870 Q
99DRG872 D DRG870 Q
100DRG876 I ICDOR["O" S ICDRG=876 Q
101 Q
102DRG880 S ICDRG=880 I ICDOR["O" S ICDRG=876 Q
103 Q
104DRG881 S ICDRG=881 I ICDOR["O" S ICDRG=876 Q
105 Q
106DRG882 S ICDRG=882 I ICDOR["O" S ICDRG=876 Q
107 Q
108DRG883 S ICDRG=883 I ICDOR["O" S ICDRG=876 Q
109 Q
110DRG884 S ICDRG=884 I ICDOR["O" S ICDRG=876 Q
111 Q
112DRG885 S ICDRG=885 I ICDOR["O" S ICDRG=876 Q
113 Q
114DRG886 S ICDRG=886 I ICDOR["O" S ICDRG=876 Q
115 Q
116DRG887 S ICDRG=887 I ICDOR["O" S ICDRG=876 Q
117 Q
118DRG894 S ICDRG=894 I ICDOR["O" S ICDRG=876 Q
119 Q
120DRG895 I (ICDOR["ND")!(ICDOR["NR") S ICDRG=895 Q
121DRG896 ;
122DRG897 S ICDRG=$S(ICDMCC=2:896,1:897) Q
123 Q
Note: See TracBrowser for help on using the repository browser.