source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORY24308.m@ 1111

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

initial load of WorldVistAEHR

File size: 7.4 KB
RevLine 
[613]1ORY24308 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*243) ;NOV 2,2006 at 12:05
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**243**;Dec 17,1997;Build 242
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5S ;
6 ;
7 D DOT^ORY243ES
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("OCXRULE",$J,$O(^TMP("OCXRULE",$J,"A"),-1)+1)=TEXT
13 ;
14 G ^ORY24309
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;D^PATIENT.OERR_ORDER_PATIENT
21 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
22 ;;D^DATABASE LOOKUP
23 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
24 ;;D^DATABASE LOOKUP
25 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
26 ;;D^PATIENT.IEN
27 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
28 ;;D^GENERIC HL7 MESSAGE ARRAY
29 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
30 ;;D^HL7 PATIENT ID SEGMENT
31 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
32 ;;D^PATIENT.HL7_PATIENT_ID
33 ;;EOR^
34 ;;KEY^860.4:^PHARMACY LOCAL ID
35 ;;R^"860.4:",.01,"E"
36 ;;D^PHARMACY LOCAL ID
37 ;;R^"860.4:",1,"E"
38 ;;D^DISP DRUG IEN
39 ;;R^"860.4:",101,"E"
40 ;;D^FREE TEXT
41 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
42 ;;D^CPRS ORDER PRESCAN
43 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
44 ;;D^ORDER ENTRY ORDER PRESCAN
45 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
46 ;;D^PATIENT.OPS_DRUG_ID
47 ;;EOR^
48 ;;EOF^OCXS(860.4)^1
49 ;;SOF^860.3 ORDER CHECK ELEMENT
50 ;;KEY^860.3:^CLOZAPINE ANC < 1.5
51 ;;R^"860.3:",.01,"E"
52 ;;D^CLOZAPINE ANC < 1.5
53 ;;R^"860.3:",.02,"E"
54 ;;D^CPRS ORDER PRESCAN
55 ;;R^"860.3:","860.31:4",.01,"E"
56 ;;D^4
57 ;;R^"860.3:","860.31:4",1,"E"
58 ;;D^CLOZAPINE ANC W/IN 7 RESULT
59 ;;R^"860.3:","860.31:4",2,"E"
60 ;;D^LESS THAN
61 ;;R^"860.3:","860.31:4",3,"E"
62 ;;D^1.5
63 ;;R^"860.3:","860.31:5",.01,"E"
64 ;;D^5
65 ;;R^"860.3:","860.31:5",1,"E"
66 ;;D^CLOZAPINE ANC W/IN 7 FLAG
67 ;;R^"860.3:","860.31:5",2,"E"
68 ;;D^LOGICAL TRUE
69 ;;EOR^
70 ;;KEY^860.3:^CLOZAPINE ANC >= 1.5
71 ;;R^"860.3:",.01,"E"
72 ;;D^CLOZAPINE ANC >= 1.5
73 ;;R^"860.3:",.02,"E"
74 ;;D^CPRS ORDER PRESCAN
75 ;;R^"860.3:","860.31:1",.01,"E"
76 ;;D^1
77 ;;R^"860.3:","860.31:1",1,"E"
78 ;;D^CLOZAPINE ANC W/IN 7 RESULT
79 ;;R^"860.3:","860.31:1",2,"E"
80 ;;D^GREATER THAN
81 ;;R^"860.3:","860.31:1",3,"E"
82 ;;D^1.499
83 ;;R^"860.3:","860.31:2",.01,"E"
84 ;;D^2
85 ;;R^"860.3:","860.31:2",1,"E"
86 ;;D^CLOZAPINE ANC W/IN 7 FLAG
87 ;;R^"860.3:","860.31:2",2,"E"
88 ;;D^LOGICAL TRUE
89 ;;EOR^
90 ;;KEY^860.3:^CLOZAPINE ANC >= 1.5 & < 2.0
91 ;;R^"860.3:",.01,"E"
92 ;;D^CLOZAPINE ANC >= 1.5 & < 2.0
93 ;;R^"860.3:",.02,"E"
94 ;;D^CPRS ORDER PRESCAN
95 ;;R^"860.3:","860.31:1",.01,"E"
96 ;;D^1
97 ;;R^"860.3:","860.31:1",1,"E"
98 ;;D^CLOZAPINE ANC W/IN 7 RESULT
99 ;;R^"860.3:","860.31:1",2,"E"
100 ;;D^GREATER THAN
101 ;;R^"860.3:","860.31:1",3,"E"
102 ;;D^1.499
103 ;;R^"860.3:","860.31:2",.01,"E"
104 ;;D^2
105 ;;R^"860.3:","860.31:2",1,"E"
106 ;;D^CLOZAPINE ANC W/IN 7 RESULT
107 ;;R^"860.3:","860.31:2",2,"E"
108 ;;D^LESS THAN
109 ;;R^"860.3:","860.31:2",3,"E"
110 ;;D^2.0
111 ;;R^"860.3:","860.31:3",.01,"E"
112 ;;D^3
113 ;;R^"860.3:","860.31:3",1,"E"
114 ;;D^CLOZAPINE ANC W/IN 7 FLAG
115 ;;R^"860.3:","860.31:3",2,"E"
116 ;;D^LOGICAL TRUE
117 ;;EOR^
118 ;;KEY^860.3:^CLOZAPINE DRUG SELECTED
119 ;;R^"860.3:",.01,"E"
120 ;;D^CLOZAPINE DRUG SELECTED
121 ;;R^"860.3:",.02,"E"
122 ;;D^CPRS ORDER PRESCAN
123 ;;R^"860.3:","860.31:1",.01,"E"
124 ;;D^1
125 ;;R^"860.3:","860.31:1",1,"E"
126 ;;D^ORDER MODE
127 ;;R^"860.3:","860.31:1",2,"E"
128 ;;D^EQ FREE TEXT
129 ;;R^"860.3:","860.31:1",3,"E"
130 ;;D^SELECT
131 ;;R^"860.3:","860.31:2",.01,"E"
132 ;;D^2
133 ;;R^"860.3:","860.31:2",1,"E"
134 ;;D^FILLER
135 ;;R^"860.3:","860.31:2",2,"E"
136 ;;D^STARTS WITH
137 ;;R^"860.3:","860.31:2",3,"E"
138 ;;D^PS
139 ;;R^"860.3:","860.31:5",.01,"E"
140 ;;D^5
141 ;;R^"860.3:","860.31:5",1,"E"
142 ;;D^CLOZAPINE MED
143 ;;R^"860.3:","860.31:5",2,"E"
144 ;;D^LOGICAL TRUE
145 ;;EOR^
146 ;;KEY^860.3:^CLOZAPINE NO ANC W/IN 7 DAYS
147 ;;R^"860.3:",.01,"E"
148 ;;D^CLOZAPINE NO ANC W/IN 7 DAYS
149 ;;R^"860.3:",.02,"E"
150 ;;D^CPRS ORDER PRESCAN
151 ;;R^"860.3:","860.31:6",.01,"E"
152 ;;D^6
153 ;;R^"860.3:","860.31:6",1,"E"
154 ;;D^CLOZAPINE ANC W/IN 7 FLAG
155 ;;R^"860.3:","860.31:6",2,"E"
156 ;;D^LOGICAL FALSE
157 ;;EOR^
158 ;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
159 ;;R^"860.3:",.01,"E"
160 ;;D^CLOZAPINE NO WBC W/IN 7 DAYS
161 ;;R^"860.3:",.02,"E"
162 ;;D^CPRS ORDER PRESCAN
163 ;;R^"860.3:","860.31:4",.01,"E"
164 ;;D^4
165 ;;R^"860.3:","860.31:4",1,"E"
166 ;;D^CLOZAPINE WBC W/IN 7 FLAG
167 ;;R^"860.3:","860.31:4",2,"E"
168 ;;D^LOGICAL FALSE
169 ;;EOR^
170 ;;KEY^860.3:^CLOZAPINE WBC < 3.0
171 ;;R^"860.3:",.01,"E"
172 ;;D^CLOZAPINE WBC < 3.0
173 ;;R^"860.3:",.02,"E"
174 ;;D^CPRS ORDER PRESCAN
175 ;;R^"860.3:","860.31:4",.01,"E"
176 ;;D^4
177 ;;R^"860.3:","860.31:4",1,"E"
178 ;;D^CLOZAPINE WBC W/IN 7 RESULT
179 ;;R^"860.3:","860.31:4",2,"E"
180 ;;D^LESS THAN
181 ;;R^"860.3:","860.31:4",3,"E"
182 ;;D^3.0
183 ;;R^"860.3:","860.31:5",.01,"E"
184 ;;D^5
185 ;;R^"860.3:","860.31:5",1,"E"
186 ;;D^CLOZAPINE WBC W/IN 7 FLAG
187 ;;R^"860.3:","860.31:5",2,"E"
188 ;;D^LOGICAL TRUE
189 ;;EOR^
190 ;;KEY^860.3:^CLOZAPINE WBC >= 3.0 & < 3.5
191 ;;R^"860.3:",.01,"E"
192 ;;D^CLOZAPINE WBC >= 3.0 & < 3.5
193 ;;R^"860.3:",.02,"E"
194 ;;D^CPRS ORDER PRESCAN
195 ;;R^"860.3:","860.31:4",.01,"E"
196 ;;D^4
197 ;;R^"860.3:","860.31:4",1,"E"
198 ;;D^CLOZAPINE WBC W/IN 7 RESULT
199 ;;R^"860.3:","860.31:4",2,"E"
200 ;;D^GREATER THAN
201 ;;R^"860.3:","860.31:4",3,"E"
202 ;;D^2.999
203 ;;R^"860.3:","860.31:5",.01,"E"
204 ;;D^5
205 ;;R^"860.3:","860.31:5",1,"E"
206 ;;D^CLOZAPINE WBC W/IN 7 RESULT
207 ;;R^"860.3:","860.31:5",2,"E"
208 ;;D^LESS THAN
209 ;;R^"860.3:","860.31:5",3,"E"
210 ;;D^3.5
211 ;;R^"860.3:","860.31:6",.01,"E"
212 ;;D^6
213 ;;R^"860.3:","860.31:6",1,"E"
214 ;;D^CLOZAPINE WBC W/IN 7 FLAG
215 ;;R^"860.3:","860.31:6",2,"E"
216 ;;D^LOGICAL TRUE
217 ;;EOR^
218 ;;KEY^860.3:^CLOZAPINE WBC >= 3.5
219 ;;R^"860.3:",.01,"E"
220 ;;D^CLOZAPINE WBC >= 3.5
221 ;;R^"860.3:",.02,"E"
222 ;;D^CPRS ORDER PRESCAN
223 ;;R^"860.3:","860.31:1",.01,"E"
224 ;;D^1
225 ;;R^"860.3:","860.31:1",1,"E"
226 ;;D^CLOZAPINE WBC W/IN 7 RESULT
227 ;;R^"860.3:","860.31:1",2,"E"
228 ;;D^GREATER THAN
229 ;;R^"860.3:","860.31:1",3,"E"
230 ;;D^3.499
231 ;;R^"860.3:","860.31:2",.01,"E"
232 ;;D^2
233 ;;R^"860.3:","860.31:2",1,"E"
234 ;;D^CLOZAPINE WBC W/IN 7 FLAG
235 ;;R^"860.3:","860.31:2",2,"E"
236 ;;D^LOGICAL TRUE
237 ;;EOR^
238 ;;EOF^OCXS(860.3)^1
239 ;;SOF^860.2 ORDER CHECK RULE
240 ;;KEY^860.2:^CLOZAPINE
241 ;;R^"860.2:",.01,"E"
242 ;;D^CLOZAPINE
243 ;;R^"860.2:","860.21:10",.01,"E"
244 ;;D^1.5 <= ANC < 2.0
245 ;;R^"860.2:","860.21:10",.02,"E"
246 ;;D^SIMPLE DEFINITION
247 ;;R^"860.2:","860.21:10",1,"E"
248 ;;D^CLOZAPINE ANC >= 1.5 & < 2.0
249 ;;R^"860.2:","860.21:2",.01,"E"
250 ;;D^NO WBC W/IN 7 DAYS
251 ;;R^"860.2:","860.21:2",.02,"E"
252 ;;D^SIMPLE DEFINITION
253 ;;R^"860.2:","860.21:2",1,"E"
254 ;;D^CLOZAPINE NO WBC W/IN 7 DAYS
255 ;;R^"860.2:","860.21:3",.01,"E"
256 ;;D^WBC < 3.0
257 ;;R^"860.2:","860.21:3",.02,"E"
258 ;;D^SIMPLE DEFINITION
259 ;;R^"860.2:","860.21:3",1,"E"
260 ;;D^CLOZAPINE WBC < 3.0
261 ;;R^"860.2:","860.21:4",.01,"E"
262 ;;D^ANC < 1.5
263 ;;R^"860.2:","860.21:4",.02,"E"
264 ;;D^SIMPLE DEFINITION
265 ;;R^"860.2:","860.21:4",1,"E"
266 ;;D^CLOZAPINE ANC < 1.5
267 ;;R^"860.2:","860.21:5",.01,"E"
268 ;;D^3.0 <= WBC < 3.5
269 ;;R^"860.2:","860.21:5",.02,"E"
270 ;;D^SIMPLE DEFINITION
271 ;;R^"860.2:","860.21:5",1,"E"
272 ;;D^CLOZAPINE WBC >= 3.0 & < 3.5
273 ;;R^"860.2:","860.21:6",.01,"E"
274 ;;D^NO ANC W/IN 7 DAYS
275 ;;R^"860.2:","860.21:6",.02,"E"
276 ;;D^SIMPLE DEFINITION
277 ;;R^"860.2:","860.21:6",1,"E"
278 ;;D^CLOZAPINE NO ANC W/IN 7 DAYS
279 ;;R^"860.2:","860.21:7",.01,"E"
280 ;;D^CLOZAPINE
281 ;;R^"860.2:","860.21:7",.02,"E"
282 ;;D^SIMPLE DEFINITION
283 ;;R^"860.2:","860.21:7",1,"E"
284 ;;D^CLOZAPINE DRUG SELECTED
285 ;;R^"860.2:","860.21:8",.01,"E"
286 ;;D^ANC >= 1.5
287 ;;R^"860.2:","860.21:8",.02,"E"
288 ;;D^SIMPLE DEFINITION
289 ;;R^"860.2:","860.21:8",1,"E"
290 ;;D^CLOZAPINE ANC >= 1.5
291 ;;R^"860.2:","860.21:9",.01,"E"
292 ;;D^WBC >= 3.5
293 ;;R^"860.2:","860.21:9",.02,"E"
294 ;;D^SIMPLE DEFINITION
295 ;1;
296 ;
Note: See TracBrowser for help on using the repository browser.