source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORY24304.m@ 1746

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

initial load of WorldVistAEHR

File size: 7.4 KB
RevLine 
[613]1ORY24304 ;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 ^ORY24305
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;R^"863.3:","863.32:3",1,"E"
21 ;;D^OCXODATA("ORC",3)
22 ;;R^"863.3:","863.32:4",.01,"E"
23 ;;D^OCXO HL7 SEGMENT ID
24 ;;R^"863.3:","863.32:5",.01,"E"
25 ;;D^OCXO DATA DRIVE SOURCE
26 ;;R^"863.3:","863.32:5",1,"E"
27 ;;D^HL7
28 ;;R^"863.3:","863.32:6",.01,"E"
29 ;;D^OCXO FILE POINTER
30 ;;EOR^
31 ;;KEY^863.3:^PATIENT.HL7_PATIENT_ID
32 ;;R^"863.3:",.01,"E"
33 ;;D^PATIENT.HL7_PATIENT_ID
34 ;;R^"863.3:",.02,"E"
35 ;;D^PATIENT
36 ;;R^"863.3:",.04,"E"
37 ;;D^HL7
38 ;;R^"863.3:",.05,"E"
39 ;;D^IEN
40 ;;R^"863.3:",.06,"E"
41 ;;D^99
42 ;;R^"863.3:","863.32:1",.01,"E"
43 ;;D^OCXO HL7 SEGMENT ID
44 ;;R^"863.3:","863.32:2",.01,"E"
45 ;;D^OCXO VT-BAR PIECE NUMBER
46 ;;R^"863.3:","863.32:3",.01,"E"
47 ;;D^OCXO VARIABLE NAME
48 ;;R^"863.3:","863.32:3",1,"E"
49 ;;D^OCXODATA("PID",3)
50 ;;EOR^
51 ;;KEY^863.3:^PATIENT.IEN
52 ;;R^"863.3:",.01,"E"
53 ;;D^PATIENT.IEN
54 ;;R^"863.3:",.02,"E"
55 ;;D^PATIENT
56 ;;R^"863.3:",.05,"E"
57 ;;D^IEN
58 ;;R^"863.3:",.06,"E"
59 ;;D^99
60 ;;R^"863.3:","863.32:1",.01,"E"
61 ;;D^OCXO VARIABLE NAME
62 ;;R^"863.3:","863.32:1",1,"E"
63 ;;D^DFN
64 ;;EOR^
65 ;;KEY^863.3:^PATIENT.OERR_ORDER_PATIENT
66 ;;R^"863.3:",.01,"E"
67 ;;D^PATIENT.OERR_ORDER_PATIENT
68 ;;R^"863.3:",.02,"E"
69 ;;D^PATIENT
70 ;;R^"863.3:",.05,"E"
71 ;;D^ORDER PATIENT
72 ;;R^"863.3:",.06,"E"
73 ;;D^5567
74 ;;R^"863.3:","863.32:1",.01,"E"
75 ;;D^OCXO VARIABLE NAME
76 ;;R^"863.3:","863.32:1",1,"E"
77 ;;D^OCXORD
78 ;;R^"863.3:","863.32:2",.01,"E"
79 ;;D^OCXO UP-ARROW PIECE NUMBER
80 ;;R^"863.3:","863.32:2",1,"E"
81 ;;D^1
82 ;;EOR^
83 ;;KEY^863.3:^PATIENT.OPS_DRUG_ID
84 ;;R^"863.3:",.01,"E"
85 ;;D^PATIENT.OPS_DRUG_ID
86 ;;R^"863.3:",.02,"E"
87 ;;D^PATIENT
88 ;;R^"863.3:",.05,"E"
89 ;;D^DISPENSE DRUG
90 ;;R^"863.3:",.06,"E"
91 ;;D^33
92 ;;R^"863.3:","863.32:1",.01,"E"
93 ;;D^OCXO VARIABLE NAME
94 ;;R^"863.3:","863.32:1",1,"E"
95 ;;D^OCXPSD
96 ;;R^"863.3:","863.32:2",.01,"E"
97 ;;D^OCXO VT-BAR PIECE NUMBER
98 ;;R^"863.3:","863.32:2",1,"E"
99 ;;D^2
100 ;;R^"863.3:","863.32:3",.01,"E"
101 ;;D^OCXO UP-ARROW PIECE NUMBER
102 ;;R^"863.3:","863.32:3",1,"E"
103 ;;D^4
104 ;;EOR^
105 ;;KEY^863.3:^PATIENT.OPS_FILLER
106 ;;R^"863.3:",.01,"E"
107 ;;D^PATIENT.OPS_FILLER
108 ;;R^"863.3:",.02,"E"
109 ;;D^PATIENT
110 ;;R^"863.3:",.04,"E"
111 ;;D^OPS
112 ;;R^"863.3:",.05,"E"
113 ;;D^FILLER
114 ;;R^"863.3:",.06,"E"
115 ;;D^99
116 ;;R^"863.3:","863.32:1",.01,"E"
117 ;;D^OCXO VARIABLE NAME
118 ;;R^"863.3:","863.32:1",1,"E"
119 ;;D^OCXPSD
120 ;;R^"863.3:","863.32:2",.01,"E"
121 ;;D^OCXO VT-BAR PIECE NUMBER
122 ;;R^"863.3:","863.32:2",1,"E"
123 ;;D^1
124 ;;EOR^
125 ;;KEY^863.3:^PATIENT.OPS_ORD_MODE
126 ;;R^"863.3:",.01,"E"
127 ;;D^PATIENT.OPS_ORD_MODE
128 ;;R^"863.3:",.02,"E"
129 ;;D^PATIENT
130 ;;R^"863.3:",.04,"E"
131 ;;D^OPS
132 ;;R^"863.3:",.05,"E"
133 ;;D^ORDER MODE
134 ;;R^"863.3:",.06,"E"
135 ;;D^99
136 ;;R^"863.3:","863.32:1",.01,"E"
137 ;;D^OCXO VARIABLE NAME
138 ;;R^"863.3:","863.32:1",1,"E"
139 ;;D^OCXPSM
140 ;;EOR^
141 ;;EOF^OCXS(863.3)^1
142 ;;SOF^860.9 ORDER CHECK NATIONAL TERM
143 ;;KEY^860.9:^ANGIOGRAM (PERIPHERAL)
144 ;;R^"860.9:",.01,"E"
145 ;;D^ANGIOGRAM (PERIPHERAL)
146 ;;R^"860.9:",.02,"E"
147 ;;D^101.43
148 ;;EOR^
149 ;;KEY^860.9:^BLOOD SPECIMEN
150 ;;R^"860.9:",.01,"E"
151 ;;D^BLOOD SPECIMEN
152 ;;R^"860.9:",.02,"E"
153 ;;D^61
154 ;;EOR^
155 ;;KEY^860.9:^DANGEROUS MEDS FOR PTS > 64
156 ;;R^"860.9:",.01,"E"
157 ;;D^DANGEROUS MEDS FOR PTS > 64
158 ;;R^"860.9:",.02,"E"
159 ;;D^101.43
160 ;;R^"860.9:",2,"E"
161 ;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
162 ;;EOR^
163 ;;KEY^860.9:^DNR
164 ;;R^"860.9:",.01,"E"
165 ;;D^DNR
166 ;;R^"860.9:",.02,"E"
167 ;;D^101.43
168 ;;EOR^
169 ;;KEY^860.9:^EGFR
170 ;;R^"860.9:",.01,"E"
171 ;;D^EGFR
172 ;;R^"860.9:",.02,"E"
173 ;;D^60
174 ;;EOR^
175 ;;KEY^860.9:^FOOD-DRUG INTERACTION MED
176 ;;R^"860.9:",.01,"E"
177 ;;D^FOOD-DRUG INTERACTION MED
178 ;;R^"860.9:",.02,"E"
179 ;;D^101.43
180 ;;R^"860.9:",2,"E"
181 ;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
182 ;;EOR^
183 ;;KEY^860.9:^NPO
184 ;;R^"860.9:",.01,"E"
185 ;;D^NPO
186 ;;R^"860.9:",.02,"E"
187 ;;D^101.43
188 ;;EOR^
189 ;;KEY^860.9:^ONE TIME MED
190 ;;R^"860.9:",.01,"E"
191 ;;D^ONE TIME MED
192 ;;R^"860.9:",.02,"E"
193 ;;D^51.1
194 ;;R^"860.9:",2,"E"
195 ;;D^I $E($P(^(0),U,4),1,2)="PS"
196 ;;EOR^
197 ;;KEY^860.9:^PARTIAL THROMBOPLASTIN TIME
198 ;;R^"860.9:",.01,"E"
199 ;;D^PARTIAL THROMBOPLASTIN TIME
200 ;;R^"860.9:",.02,"E"
201 ;;D^101.43
202 ;;EOR^
203 ;;KEY^860.9:^PROTHROMBIN TIME
204 ;;R^"860.9:",.01,"E"
205 ;;D^PROTHROMBIN TIME
206 ;;R^"860.9:",.02,"E"
207 ;;D^101.43
208 ;;EOR^
209 ;;KEY^860.9:^SERUM CREATININE
210 ;;R^"860.9:",.01,"E"
211 ;;D^SERUM CREATININE
212 ;;R^"860.9:",.02,"E"
213 ;;D^60
214 ;;EOR^
215 ;;KEY^860.9:^SERUM SPECIMEN
216 ;;R^"860.9:",.01,"E"
217 ;;D^SERUM SPECIMEN
218 ;;R^"860.9:",.02,"E"
219 ;;D^61
220 ;;EOR^
221 ;;KEY^860.9:^SERUM UREA NITROGEN
222 ;;R^"860.9:",.01,"E"
223 ;;D^SERUM UREA NITROGEN
224 ;;R^"860.9:",.02,"E"
225 ;;D^60
226 ;;EOR^
227 ;;KEY^860.9:^THROMBOPLASTIN TIME PARTIAL
228 ;;R^"860.9:",.01,"E"
229 ;;D^THROMBOPLASTIN TIME PARTIAL
230 ;;R^"860.9:",.02,"E"
231 ;;D^60
232 ;;EOR^
233 ;;KEY^860.9:^WBC
234 ;;R^"860.9:",.01,"E"
235 ;;D^WBC
236 ;;R^"860.9:",.02,"E"
237 ;;D^60
238 ;;EOR^
239 ;;EOF^OCXS(860.9)^1
240 ;;SOF^860.8 ORDER CHECK COMPILER FUNCTIONS
241 ;;KEY^860.8:^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
242 ;;R^"860.8:",.01,"E"
243 ;;D^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
244 ;;R^"860.8:",.02,"E"
245 ;;D^DT2INT
246 ;;R^"860.8:",1,1
247 ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
248 ;;R^"860.8:",1,2
249 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
250 ;;R^"860.8:",1,3
251 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
252 ;;R^"860.8:",100,1
253 ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
254 ;;R^"860.8:",100,2
255 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
256 ;;R^"860.8:",100,3
257 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
258 ;;R^"860.8:",100,4
259 ;;D^ ; ;
260 ;;R^"860.8:",100,5
261 ;;D^ ; Q:'$L($G(OCXDT)) ""
262 ;;R^"860.8:",100,6
263 ;;D^ ; N OCXDIFF,OCXVAL S (OCXDIFF,OCXVAL)=0
264 ;;R^"860.8:",100,7
265 ;;D^ ; ;
266 ;;R^"860.8:",100,8
267 ;;D^ ; I $L(OCXDT),'OCXDT,(OCXDT[" at ") D ; EXTERNAL EXPERT SYSTEM FORMAT 1 TO EXTERNAL FORMAT
268 ;;R^"860.8:",100,9
269 ;;D^ ; .N OCXHR,OCXMIN,OCXTIME
270 ;;R^"860.8:",100,10
271 ;;D^ ; .S OCXTIME=$P($P(OCXDT," at ",2),".",1),OCXHR=$P(OCXTIME,":",1),OCXMIN=$P(OCXTIME,":",2)
272 ;;R^"860.8:",100,11
273 ;;D^ ; .S:(OCXDT["Midnight") OCXHR=00
274 ;;R^"860.8:",100,12
275 ;;D^ ; .S:(OCXDT["PM") OCXHR=OCXHR+12
276 ;;R^"860.8:",100,13
277 ;;D^ ; .S OCXDT=$P(OCXDT," at ")_"@"_$E(OCXHR+100,2,3)_$E(OCXMIN+100,2,3)
278 ;;R^"860.8:",100,14
279 ;;D^ ; ;
280 ;;R^"860.8:",100,15
281 ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 2 TO EXTERNAL FORMAT
282 ;;R^"860.8:",100,16
283 ;;D^ ; .N OCXMON
284 ;;R^"860.8:",100,17
285 ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
286 ;;R^"860.8:",100,18
287 ;;D^ ; .I $L($P(OCXDT," ",2)) S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_"@"_$TR($P(OCXDT," ",2),":","")
288 ;;R^"860.8:",100,19
289 ;;D^ ; .E S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)
290 ;;R^"860.8:",100,20
291 ;;D^ ; ;
292 ;;R^"860.8:",100,21
293 ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 3 TO EXTERNAL FORMAT
294 ;;R^"860.8:",100,22
295 ;;D^ ; .N OCXMON
296 ;;R^"860.8:",100,23
297 ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
298 ;1;
299 ;
Note: See TracBrowser for help on using the repository browser.