source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXDI027.m@ 794

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

initial load of FOIAVistA 6/30/08 version

File size: 5.1 KB
Line 
1OCXDI027 ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5S ;
6 ;
7 D DOT^OCXDIAG
8 ;
9 ;
10 K REMOTE,LOCAL,OPCODE,REF
11 F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT I $L(TEXT) D Q:QUIT
12 .S ^TMP("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
13 ;
14 G ^OCXDI028
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;D^TAKEMED^ORKPS(|PATIENT IEN|,"^GLUCOPHAGE^METFORMIN")
21 ;;R^"863.3:","863.32:2",.01,"E"
22 ;;D^OCXO UP-ARROW PIECE NUMBER
23 ;;R^"863.3:","863.32:2",1,"E"
24 ;;D^1
25 ;;EOR^
26 ;;KEY^863.3:^PATIENT.HAS_DIABETES
27 ;;R^"863.3:",.01,"E"
28 ;;D^PATIENT.HAS_DIABETES
29 ;;R^"863.3:",.02,"E"
30 ;;D^PATIENT
31 ;;R^"863.3:",.05,"E"
32 ;;D^PROBLEM LIST HAS DIABETES
33 ;;R^"863.3:",.06,"E"
34 ;;D^999
35 ;;R^"863.3:","863.32:1",.01,"E"
36 ;;D^OCXO EXTERNAL FUNCTION CALL
37 ;;R^"863.3:","863.32:1",1,"E"
38 ;;D^HASPROB^ORQQPL(|PATIENT IEN|,"^;250")
39 ;;R^"863.3:","863.32:2",.01,"E"
40 ;;D^OCXO UP-ARROW PIECE NUMBER
41 ;;R^"863.3:","863.32:2",1,"E"
42 ;;D^1
43 ;;EOR^
44 ;;KEY^863.3:^PATIENT.ORDER TEXT (51 CHARS)
45 ;;R^"863.3:",.01,"E"
46 ;;D^PATIENT.ORDER TEXT (51 CHARS)
47 ;;R^"863.3:",.02,"E"
48 ;;D^PATIENT
49 ;;R^"863.3:",.05,"E"
50 ;;D^ORDER TEXT
51 ;;R^"863.3:",.06,"E"
52 ;;D^999
53 ;;R^"863.3:","863.32:1",.01,"E"
54 ;;D^OCXO EXTERNAL FUNCTION CALL
55 ;;R^"863.3:","863.32:1",1,"E"
56 ;;D^TEXT^ORKOR(|ORDER NUMBER|)
57 ;;R^"863.3:","863.32:2",.01,"E"
58 ;;D^OCXO UP-ARROW PIECE NUMBER
59 ;;R^"863.3:","863.32:2",1,"E"
60 ;;D^2
61 ;;EOR^
62 ;;KEY^863.3:^PATIENT.DATE_LAST_LITH_ORDER
63 ;;R^"863.3:",.01,"E"
64 ;;D^PATIENT.DATE_LAST_LITH_ORDER
65 ;;R^"863.3:",.02,"E"
66 ;;D^PATIENT
67 ;;R^"863.3:",.05,"E"
68 ;;D^LAB TEST ORDER DATE
69 ;;R^"863.3:",.06,"E"
70 ;;D^99
71 ;;R^"863.3:","863.32:1",.01,"E"
72 ;;D^OCXO EXTERNAL FUNCTION CALL
73 ;;R^"863.3:","863.32:1",1,"E"
74 ;;D^RECENT^ORQOR2(|PATIENT IEN|,|OI IEN|,"")
75 ;;R^"863.3:","863.32:2",.01,"E"
76 ;;D^OCXO UP-ARROW PIECE NUMBER
77 ;;R^"863.3:","863.32:2",1,"E"
78 ;;D^3
79 ;;EOR^
80 ;;KEY^863.3:^LITHIUM LAB TEST OI IEN
81 ;;R^"863.3:",.01,"E"
82 ;;D^LITHIUM LAB TEST OI IEN
83 ;;R^"863.3:",.02,"E"
84 ;;D^PATIENT
85 ;;R^"863.3:",.05,"E"
86 ;;D^IEN
87 ;;R^"863.3:",.06,"E"
88 ;;D^9999
89 ;;EOR^
90 ;;KEY^863.3:^PATIENT.MOVE_DATE_PREV
91 ;;R^"863.3:",.01,"E"
92 ;;D^PATIENT.MOVE_DATE_PREV
93 ;;R^"863.3:",.02,"E"
94 ;;D^PATIENT
95 ;;R^"863.3:",.05,"E"
96 ;;D^MOVEMENT DATE
97 ;;R^"863.3:",.06,"E"
98 ;;D^9999
99 ;;R^"863.3:","863.32:1",.01,"E"
100 ;;D^OCXO VARIABLE NAME
101 ;;R^"863.3:","863.32:1",1,"E"
102 ;;D^DGPM0
103 ;;R^"863.3:","863.32:2",.01,"E"
104 ;;D^OCXO UP-ARROW PIECE NUMBER
105 ;;R^"863.3:","863.32:2",1,"E"
106 ;;D^1
107 ;;EOR^
108 ;;KEY^863.3:^NUMMEDS
109 ;;R^"863.3:",.01,"E"
110 ;;D^NUMMEDS
111 ;;R^"863.3:",.02,"E"
112 ;;D^PATIENT
113 ;;R^"863.3:",.05,"E"
114 ;;D^NUMBER OF ACTIVE MEDS
115 ;;R^"863.3:",.06,"E"
116 ;;D^9991
117 ;;R^"863.3:","863.32:1",.01,"E"
118 ;;D^OCXO EXTERNAL FUNCTION CALL
119 ;;R^"863.3:","863.32:1",1,"E"
120 ;;D^NUMRX^ORQQPS(|PATIENT IEN|)
121 ;;R^"863.3:","863.32:2",.01,"E"
122 ;;D^OCXO UP-ARROW PIECE NUMBER
123 ;;R^"863.3:","863.32:2",1,"E"
124 ;;D^1
125 ;;EOR^
126 ;;KEY^863.3:^ORIG ORDERING PROVIDER
127 ;;R^"863.3:",.01,"E"
128 ;;D^ORIG ORDERING PROVIDER
129 ;;R^"863.3:",.02,"E"
130 ;;D^PATIENT
131 ;;R^"863.3:",.05,"E"
132 ;;D^ORIGINAL ORDERING PROVIDER
133 ;;R^"863.3:",.06,"E"
134 ;;D^999
135 ;;R^"863.3:","863.32:1",.01,"E"
136 ;;D^OCXO EXTERNAL FUNCTION CALL
137 ;;R^"863.3:","863.32:1",1,"E"
138 ;;D^ORDERER^ORKOR(|ORDER NUMBER|)
139 ;;R^"863.3:","863.32:2",.01,"E"
140 ;;D^OCXO UP-ARROW PIECE NUMBER
141 ;;R^"863.3:","863.32:2",1,"E"
142 ;;D^1
143 ;;R^"863.3:","863.32:3",.01,"E"
144 ;;D^OCXO FILE POINTER
145 ;;R^"863.3:","863.32:3",1,"E"
146 ;;D^VA(200,
147 ;;EOR^
148 ;;KEY^863.3:^HL7_ENTERED BY
149 ;;R^"863.3:",.01,"E"
150 ;;D^HL7_ENTERED BY
151 ;;R^"863.3:",.02,"E"
152 ;;D^PATIENT
153 ;;R^"863.3:",.05,"E"
154 ;;D^HL7 ENTERED BY
155 ;;R^"863.3:",.06,"E"
156 ;;D^99
157 ;;R^"863.3:","863.32:1",.01,"E"
158 ;;D^OCXO VARIABLE NAME
159 ;;R^"863.3:","863.32:1",1,"E"
160 ;;D^OCXODATA("ORC",10)
161 ;;R^"863.3:","863.32:2",.01,"E"
162 ;;D^OCXO UP-ARROW PIECE NUMBER
163 ;;R^"863.3:","863.32:2",1,"E"
164 ;;D^2
165 ;;EOR^
166 ;;KEY^863.3:^ORDER.ORDERED BY
167 ;;R^"863.3:",.01,"E"
168 ;;D^ORDER.ORDERED BY
169 ;;R^"863.3:",.02,"E"
170 ;;D^PATIENT
171 ;;R^"863.3:",.05,"E"
172 ;;D^ORDERED BY
173 ;;R^"863.3:",.06,"E"
174 ;;D^9999
175 ;;R^"863.3:","863.32:1",.01,"E"
176 ;;D^OCXO EXTERNAL FUNCTION CALL
177 ;;R^"863.3:","863.32:1",1,"E"
178 ;;D^ORDERER^ORKOR(|ORDER NUMBER|)
179 ;;R^"863.3:","863.32:2",.01,"E"
180 ;;D^OCXO FILE POINTER
181 ;;R^"863.3:","863.32:2",1,"E"
182 ;;D^VA(200,
183 ;;EOR^
184 ;;KEY^863.3:^LAB TEST ID
185 ;;R^"863.3:",.01,"E"
186 ;;D^LAB TEST ID
187 ;;R^"863.3:",.02,"E"
188 ;;D^PATIENT
189 ;;R^"863.3:",.06,"E"
190 ;;D^998
191 ;;R^"863.3:","863.32:1",.01,"E"
192 ;;D^OCXO VARIABLE NAME
193 ;;R^"863.3:","863.32:1",1,"E"
194 ;;D^OCXODATA("OBX",3)
195 ;;R^"863.3:","863.32:2",.01,"E"
196 ;;D^OCXO UP-ARROW PIECE NUMBER
197 ;;R^"863.3:","863.32:2",1,"E"
198 ;;D^4
199 ;;EOR^
200 ;;KEY^863.3:^PATIENT.HL7_LAB_LOCAL_ID
201 ;;R^"863.3:",.01,"E"
202 ;;D^PATIENT.HL7_LAB_LOCAL_ID
203 ;;R^"863.3:",.02,"E"
204 ;;D^PATIENT
205 ;;R^"863.3:",.05,"E"
206 ;;D^LAB TEST ID
207 ;;R^"863.3:",.06,"E"
208 ;;D^998
209 ;;R^"863.3:","863.32:1",.01,"E"
210 ;;D^OCXO VARIABLE NAME
211 ;;R^"863.3:","863.32:1",1,"E"
212 ;;D^OCXODATA("OBX",3)
213 ;;R^"863.3:","863.32:2",.01,"E"
214 ;;D^OCXO UP-ARROW PIECE NUMBER
215 ;;R^"863.3:","863.32:2",1,"E"
216 ;;D^4
217 ;;EOR^
218 ;;KEY^863.3:^LAB TEST PRINT NAME
219 ;;R^"863.3:",.01,"E"
220 ;;D^LAB TEST PRINT NAME
221 ;;R^"863.3:",.02,"E"
222 ;;D^PATIENT
223 ;;R^"863.3:",.04,"E"
224 ;1;
225 ;
Note: See TracBrowser for help on using the repository browser.