source: FOIAVistA/trunk/r/DRG_GROUPER-ICD--ICPT/ICD1824O.m@ 1552

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

initial load of FOIAVistA 6/30/08 version

File size: 3.0 KB
Line 
1ICD1824O ;;ALB/EG/JAT - FY 2007 UPDATE; 6/19/05 4:08pm ; 6/24/05 3:29pm
2 ;;18.0;DRG Grouper;**24**;Oct 13,2000;Build 5
3 ;
4 Q
5 ;
6PRO ;
7 D BMES^XPDUTL(">>>Modifying procedure codes - file 80.1")
8 D MES^XPDUTL(">>>for new DRGs")
9 N LINE,X,ICDPROC,ENTRY,SUBLINE,DATA,FDA
10 F LINE=1:1 S X=$T(REV+LINE) S ICDPROC=$P(X,";;",2) Q:ICDPROC="EXIT" D
11 .Q:ICDPROC["+"
12 .S ENTRY=+$O(^ICD0("BA",$P(ICDPROC,U)_" ",0))
13 .I ENTRY D
14 ..;check for possible inactive dupe
15 ..I $P($G(^ICD0(ENTRY,0)),U,9)=1 S ENTRY=+$O(^ICD0("BA",$P(ICDPROC,U)_" ",ENTRY)) I 'ENTRY Q
16 ..; check if already created in case patch being re-installed
17 ..Q:$D(^ICD0(ENTRY,2,"B",3061001))
18 ..;add 80.171, 80.1711 and 80.17111 records
19 ..F SUBLINE=1:1 S X=$T(REV+LINE+SUBLINE) S DATA=$P(X,";;",2) Q:DATA'["+" D
20 ...I SUBLINE=1 D
21 ....S FDA(1820,80.1,"?1,",.01)="`"_ENTRY
22 ....S FDA(1820,80.171,"+2,?1,",.01)=3061001
23 ....D UPDATE^DIE("","FDA(1820)") K FDA(1820)
24 ...S DATA=$E(DATA,2,99)
25 ...S FDA(1820,80.1,"?1,",.01)="`"_ENTRY
26 ...S FDA(1820,80.171,"?2,?1,",.01)=3061001
27 ...S FDA(1820,80.1711,"+3,?2,?1,",.01)=$P(DATA,U)
28 ...D UPDATE^DIE("","FDA(1820)") K FDA(1820)
29 ...S FDA(1820,80.1,"?1,",.01)="`"_ENTRY
30 ...S FDA(1820,80.171,"?2,?1,",.01)=3061001
31 ...S FDA(1820,80.1711,"?3,?2,?1,",.01)=$P(DATA,U)
32 ...S FDA(1820,80.17111,"+4,?3,?2,?1,",.01)=$P(DATA,U,2)
33 ...I $P(DATA,U,3) S FDA(1820,80.17111,"+5,?3,?2,?1,",.01)=$P(DATA,U,3)
34 ...I $P(DATA,U,4) S FDA(1820,80.17111,"+6,?3,?2,?1,",.01)=$P(DATA,U,4)
35 ...I $P(DATA,U,5) S FDA(1820,80.17111,"+7,?3,?2,?1,",.01)=$P(DATA,U,5)
36 ...I $P(DATA,U,6) S FDA(1820,80.17111,"+8,?3,?2,?1,",.01)=$P(DATA,U,6)
37 ...I $P(DATA,U,7) S FDA(1820,80.17111,"+9,?3,?2,?1,",.01)=$P(DATA,U,7)
38 ...D UPDATE^DIE("","FDA(1820)") K FDA(1820)
39 Q
40ID ;
41 ; modify Identifier field (#2) in file 80.1 - add an "M" - this should have been
42 ; done when these new codes were added in FY2006 so they can go to DRG 471
43 ; although beginning with FY2007, only 00.70 and 00.80 can still go to DRG 471.
44 ; Note also that DRG 471 doesn't work for bilateral (e.g. both hips) - HIM Staff know this
45 ; as this is a limitation of the VistA Grouper who can't handle duplicate codes
46 N LINE,X,ICDPROC,ENTRY,DA,DIE,DR,IDENT,DIC
47 F LINE=1:1 S X=$T(REVID+LINE) S ICDPROC=$P(X,";;",2) Q:ICDPROC="EXIT" D
48 .S ENTRY=+$O(^ICD0("BA",$P(ICDPROC,U)_" ",0)) I ENTRY D
49 ..S DA=ENTRY,DIE="^ICD0("
50 ..S IDENT=$P(ICDPROC,U,2)
51 ..S DR="2///^S X=IDENT"
52 ..D ^DIE
53 Q
54 ;
55REV ;
56 ;;96.70^
57 ;;+4^566
58 ;;96.71^
59 ;;+4^566
60 ;;96.72^
61 ;;+4^565
62 ;;57.6^
63 ;;+11^573
64 ;;57.71^
65 ;;+11^573
66 ;;57.79^
67 ;;+11^573
68 ;;57.83^
69 ;;+11^573
70 ;;57.84^
71 ;;+11^573
72 ;;57.85^
73 ;;+11^573
74 ;;57.86^
75 ;;+11^573
76 ;;57.87^
77 ;;+11^573
78 ;;57.88^
79 ;;+11^573
80 ;;57.89^
81 ;;+11^573
82 ;;00.71^
83 ;;+8^545
84 ;;00.72^
85 ;;+8^545
86 ;;00.73^
87 ;;+8^545
88 ;;00.81^
89 ;;+8^545
90 ;;00.82^
91 ;;+8^545
92 ;;00.83^
93 ;;+8^545
94 ;;00.84^
95 ;;+8^545
96 ;;81.53^
97 ;;+8^545
98 ;;81.55^
99 ;;+8^545
100 ;;EXIT
101 ;;
102REVID ; these codes were new in FY2006 and should have had an "M" added then
103 ;;00.70^OM
104 ;;00.71^OM
105 ;;00.72^OM
106 ;;00.73^OM
107 ;;00.80^OM
108 ;;00.81^OM
109 ;;00.82^OM
110 ;;00.83^OM
111 ;;00.84^OM
112 ;;EXIT
Note: See TracBrowser for help on using the repository browser.