source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORY23406.m@ 811

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

initial load of FOIAVistA 6/30/08 version

File size: 7.3 KB
Line 
1ORY23406 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*234) ;MAY 13,2005 at 09:31
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**234**;Dec 17,1997
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5S ;
6 ;
7 D DOT^ORY234ES
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 ^ORY23407
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;R^"860.8:",100,26
21 ;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
22 ;;R^"860.8:",100,27
23 ;;D^ ; ;
24 ;;R^"860.8:",100,28
25 ;;D^ ; K OCXDATA
26 ;;R^"860.8:",100,29
27 ;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
28 ;;R^"860.8:",100,30
29 ;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
30 ;;R^"860.8:",100,31
31 ;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
32 ;;R^"860.8:",100,32
33 ;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
34 ;;R^"860.8:",100,33
35 ;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
36 ;;R^"860.8:",100,34
37 ;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
38 ;;R^"860.8:",100,35
39 ;;D^ ; ;
40 ;;R^"860.8:",100,36
41 ;;D^ ; K OCXDATA
42 ;;R^"860.8:",100,37
43 ;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
44 ;;R^"860.8:",100,38
45 ;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
46 ;;R^"860.8:",100,39
47 ;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
48 ;;R^"860.8:",100,40
49 ;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
50 ;;R^"860.8:",100,41
51 ;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
52 ;;R^"860.8:",100,42
53 ;;D^ ; ;
54 ;;R^"860.8:",100,43
55 ;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
56 ;;R^"860.8:",100,44
57 ;;D^ ; .;
58 ;;R^"860.8:",100,45
59 ;;D^ ; .N OCXGR1
60 ;;R^"860.8:",100,46
61 ;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
62 ;;R^"860.8:",100,47
63 ;;D^ ; .K OCXDATA
64 ;;R^"860.8:",100,48
65 ;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
66 ;;R^"860.8:",100,49
67 ;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
68 ;;R^"860.8:",100,50
69 ;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
70 ;;R^"860.8:",100,51
71 ;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
72 ;;R^"860.8:",100,52
73 ;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
74 ;;R^"860.8:",100,53
75 ;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
76 ;;R^"860.8:",100,54
77 ;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
78 ;;R^"860.8:",100,55
79 ;;D^ ; .;
80 ;;R^"860.8:",100,56
81 ;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
82 ;;R^"860.8:",100,57
83 ;;D^ ; ..N OCXGR2
84 ;;R^"860.8:",100,58
85 ;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
86 ;;R^"860.8:",100,59
87 ;;D^ ; ..K OCXDATA
88 ;;R^"860.8:",100,60
89 ;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
90 ;;R^"860.8:",100,61
91 ;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
92 ;;R^"860.8:",100,62
93 ;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
94 ;;R^"860.8:",100,63
95 ;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
96 ;;R^"860.8:",100,64
97 ;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
98 ;;R^"860.8:",100,65
99 ;;D^ ; ;
100 ;;R^"860.8:",100,66
101 ;;D^ ; Q 1
102 ;;R^"860.8:",100,67
103 ;;D^ ; ;
104 ;;R^"860.8:",100,68
105 ;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
106 ;;R^"860.8:",100,69
107 ;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
108 ;;R^"860.8:",100,70
109 ;;D^ ; M @ROOT=DATA
110 ;;R^"860.8:",100,71
111 ;;D^ ; I +$G(DD) S @ROOT@(0)="^"_($G(DD))_"^"_($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
112 ;;R^"860.8:",100,72
113 ;;D^ ; I '$G(DD) S $P(@ROOT@(0),U,3,4)=($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
114 ;;R^"860.8:",100,73
115 ;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",$G(ITEM),": ",$G(ITEMNAME)
116 ;;R^"860.8:",100,74
117 ;;D^ ; ;
118 ;;R^"860.8:",100,75
119 ;;D^ ; Q
120 ;;R^"860.8:",100,76
121 ;;D^ ; ;
122 ;;R^"860.8:",100,77
123 ;;D^ ; ;
124 ;;EOR^
125 ;;KEY^860.8:^RETURN POINTED TO VALUE
126 ;;R^"860.8:",.01,"E"
127 ;;D^RETURN POINTED TO VALUE
128 ;;R^"860.8:",.02,"E"
129 ;;D^POINTER
130 ;;R^"860.8:",1,1
131 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
132 ;;R^"860.8:",1,2
133 ;;D^ ; ; of record D0 in file OCXFILE
134 ;;R^"860.8:",100,1
135 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
136 ;;R^"860.8:",100,2
137 ;;D^ ; ; of record D0 in file OCXFILE
138 ;;R^"860.8:",100,3
139 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," FILE: ",$G(OCXFILE)," D0: ",$G(D0)
140 ;;R^"860.8:",100,4
141 ;;D^ ; Q:'$G(D0) "" Q:'$L($G(OCXFILE)) ""
142 ;;R^"860.8:",100,5
143 ;;D^ ; N GLREF
144 ;;R^"860.8:",100,6
145 ;;D^ ; I '(OCXFILE=(+OCXFILE)) S GLREF=U_OCXFILE
146 ;;R^"860.8:",100,7
147 ;;D^ ; E S GLREF=$$FILE^OCXBDTD(+OCXFILE,"GLOBAL NAME") Q:'$L(GLREF) ""
148 ;;R^"860.8:",100,8
149 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," GLREF: ",GLREF," RESOLVES TO: ",$P($G(@(GLREF_(+D0)_",0)")),U,1)
150 ;;R^"860.8:",100,9
151 ;;D^ ; Q $P($G(@(GLREF_(+D0)_",0)")),U,1)
152 ;;R^"860.8:",100,10
153 ;;D^ ; ;
154 ;;EOR^
155 ;;KEY^860.8:^STRING CONTAINS ONE OF A LIST OF VALUES
156 ;;R^"860.8:",.01,"E"
157 ;;D^STRING CONTAINS ONE OF A LIST OF VALUES
158 ;;R^"860.8:",.02,"E"
159 ;;D^CLIST
160 ;;R^"860.8:",100,1
161 ;;D^ ;CLIST(DATA,LIST) ; DOES THE DATA FIELD CONTAIN AN ELEMENT IN THE LIST
162 ;;R^"860.8:",100,2
163 ;;D^ ; ;
164 ;;R^"860.8:",100,3
165 ;;D^T+; W:$G(OCXTRACE) !!,"$$CLIST(",DATA,",""",LIST,""")"
166 ;;R^"860.8:",100,4
167 ;;D^ ; N PC F PC=1:1:$L(LIST,","),0 I PC,$L($P(LIST,",",PC)),(DATA[$P(LIST,",",PC)) Q
168 ;;R^"860.8:",100,5
169 ;;D^ ; Q ''PC
170 ;;EOR^
171 ;;EOF^OCXS(860.8)^1
172 ;;SOF^860.6 ORDER CHECK DATA CONTEXT
173 ;;KEY^860.6:^CPRS ORDER PRESCAN
174 ;;R^"860.6:",.01,"E"
175 ;;D^CPRS ORDER PRESCAN
176 ;;R^"860.6:",.02,"E"
177 ;;D^OEPS
178 ;;R^"860.6:",1,"E"
179 ;;D^DATA DRIVEN
180 ;;EOR^
181 ;;KEY^860.6:^CPRS ORDER PROTOCOL
182 ;;R^"860.6:",.01,"E"
183 ;;D^CPRS ORDER PROTOCOL
184 ;;R^"860.6:",.02,"E"
185 ;;D^OERR
186 ;;R^"860.6:",1,"E"
187 ;;D^DATA DRIVEN
188 ;;EOR^
189 ;;KEY^860.6:^DATABASE LOOKUP
190 ;;R^"860.6:",.01,"E"
191 ;;D^DATABASE LOOKUP
192 ;;R^"860.6:",.02,"E"
193 ;;D^DL
194 ;;R^"860.6:",1,"E"
195 ;;D^PACKAGE LOOKUP
196 ;;EOR^
197 ;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
198 ;;R^"860.6:",.01,"E"
199 ;;D^GENERIC HL7 MESSAGE ARRAY
200 ;;R^"860.6:",.02,"E"
201 ;;D^HL7
202 ;;R^"860.6:",1,"E"
203 ;;D^DATA DRIVEN
204 ;;EOR^
205 ;;EOF^OCXS(860.6)^1
206 ;;SOF^860.5 ORDER CHECK DATA SOURCE
207 ;;KEY^860.5:^DATABASE LOOKUP
208 ;;R^"860.5:",.01,"E"
209 ;;D^DATABASE LOOKUP
210 ;;R^"860.5:",.02,"E"
211 ;;D^DATABASE LOOKUP
212 ;;EOR^
213 ;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
214 ;;R^"860.5:",.01,"E"
215 ;;D^HL7 COMMON ORDER SEGMENT
216 ;;R^"860.5:",.02,"E"
217 ;;D^GENERIC HL7 MESSAGE ARRAY
218 ;;EOR^
219 ;;KEY^860.5:^HL7 PATIENT ID SEGMENT
220 ;;R^"860.5:",.01,"E"
221 ;;D^HL7 PATIENT ID SEGMENT
222 ;;R^"860.5:",.02,"E"
223 ;;D^GENERIC HL7 MESSAGE ARRAY
224 ;;EOR^
225 ;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
226 ;;R^"860.5:",.01,"E"
227 ;;D^OERR ORDER EVENT FLAG PROTOCOL
228 ;;R^"860.5:",.02,"E"
229 ;;D^CPRS ORDER PROTOCOL
230 ;;EOR^
231 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
232 ;;R^"860.5:",.01,"E"
233 ;;D^ORDER ENTRY ORDER PRESCAN
234 ;;R^"860.5:",.02,"E"
235 ;;D^CPRS ORDER PRESCAN
236 ;;EOR^
237 ;;EOF^OCXS(860.5)^1
238 ;;SOF^860.4 ORDER CHECK DATA FIELD
239 ;;KEY^860.4:^CONTRAST MEDIA ALLERGY FLAG
240 ;;R^"860.4:",.01,"E"
241 ;;D^CONTRAST MEDIA ALLERGY FLAG
242 ;;R^"860.4:",1,"E"
243 ;;D^ConMedAlgyFlag
244 ;;R^"860.4:",101,"E"
245 ;;D^BOOLEAN
246 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
247 ;;D^DATABASE LOOKUP
248 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
249 ;;D^DATABASE LOOKUP
250 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
251 ;;D^PATIENT.CONT_MED_ALGY
252 ;;EOR^
253 ;;KEY^860.4:^CONTRAST MEDIA CODE
254 ;;R^"860.4:",.01,"E"
255 ;;D^CONTRAST MEDIA CODE
256 ;;R^"860.4:",1,"E"
257 ;1;
258 ;
Note: See TracBrowser for help on using the repository browser.