source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXDI02L.m@ 1226

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

initial load of WorldVistAEHR

File size: 5.1 KB
Line 
1OCXDI02L ;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 ^OCXDI02M
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;R^"860.8:",100,24
21 ;;D^ ; ..I CDT'<BDT S CREARSLT=1
22 ;;R^"860.8:",100,25
23 ;;D^ ; Q:+$G(CREARSLT)<1 "0^"
24 ;;R^"860.8:",100,26
25 ;;D^ ; Q $P(ORZ,U)_U_$P(ORZ,U,3)_" "_$P(ORZ,U,4)_" "_$P(ORZ,U,5)_" ("_$P(ORZ,U,6)_") "_$$FMTE^XLFDT(CDT,"2P")_U_$P(ORZ,U,3)
26 ;;EOR^
27 ;;KEY^860.8:^RECENT BARIUM ORDER STATUS
28 ;;R^"860.8:",.01,"E"
29 ;;D^RECENT BARIUM ORDER STATUS
30 ;;R^"860.8:",.02,"E"
31 ;;D^RECBARST
32 ;;R^"860.8:",100,1
33 ;;D^;RECBARST(DFN,HOURS) ;
34 ;;R^"860.8:",100,2
35 ;;D^; ;
36 ;;R^"860.8:",100,3
37 ;;D^; Q:'$G(DFN) 0 Q:'$G(HOURS) 0
38 ;;R^"860.8:",100,4
39 ;;D^; N ORDER S ORDER=$P($$RECENTBA^ORKRA(DFN,HOURS),U) Q:'$L(ORDER) 0
40 ;;R^"860.8:",100,5
41 ;;D^; N STATUS S STATUS=$P($$STATUS^ORQOR2(ORDER),U,2) Q:'$L(STATUS) 0
42 ;;R^"860.8:",100,6
43 ;;D^; Q 1_U_STATUS
44 ;;EOR^
45 ;;KEY^860.8:^RECENT CHOLECYSTOGRAM ORDER STATUS
46 ;;R^"860.8:",.01,"E"
47 ;;D^RECENT CHOLECYSTOGRAM ORDER STATUS
48 ;;R^"860.8:",.02,"E"
49 ;;D^RECCHST
50 ;;R^"860.8:",100,1
51 ;;D^;RECCHST(DFN,DAYS) ;
52 ;;R^"860.8:",100,2
53 ;;D^; ;
54 ;;R^"860.8:",100,3
55 ;;D^; Q:'$G(DFN) 0 Q:'$G(DAYS) 0
56 ;;R^"860.8:",100,4
57 ;;D^; N ORDER S ORDER=$P($$RECENTCH^ORKRA(DFN,DAYS),U) Q:'$L(ORDER) 0
58 ;;R^"860.8:",100,5
59 ;;D^; N STATUS S STATUS=$P($$STATUS^ORQOR2(ORDER),U,2) Q:'$L(STATUS) 0
60 ;;R^"860.8:",100,6
61 ;;D^; Q 1_U_STATUS
62 ;;EOR^
63 ;;EOF^OCXS(860.8)^1
64 ;;SOF^860.6 ORDER CHECK DATA CONTEXT
65 ;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
66 ;;R^"860.6:",.01,"E"
67 ;;D^GENERIC HL7 MESSAGE ARRAY
68 ;;R^"860.6:",.02,"E"
69 ;;D^HL7
70 ;;R^"860.6:",1,"E"
71 ;;D^DATA DRIVEN
72 ;;EOR^
73 ;;KEY^860.6:^CPRS ORDER PROTOCOL
74 ;;R^"860.6:",.01,"E"
75 ;;D^CPRS ORDER PROTOCOL
76 ;;R^"860.6:",.02,"E"
77 ;;D^OERR
78 ;;R^"860.6:",1,"E"
79 ;;D^DATA DRIVEN
80 ;;EOR^
81 ;;KEY^860.6:^DGPM PATIENT MOVEMENT PROTOCOL
82 ;;R^"860.6:",.01,"E"
83 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
84 ;;R^"860.6:",.02,"E"
85 ;;D^DGPM
86 ;;R^"860.6:",1,"E"
87 ;;D^DATA DRIVEN
88 ;;EOR^
89 ;;KEY^860.6:^DATABASE LOOKUP
90 ;;R^"860.6:",.01,"E"
91 ;;D^DATABASE LOOKUP
92 ;;R^"860.6:",.02,"E"
93 ;;D^DL
94 ;;R^"860.6:",1,"E"
95 ;;D^PACKAGE LOOKUP
96 ;;EOR^
97 ;;KEY^860.6:^CPRS ORDER PRESCAN
98 ;;R^"860.6:",.01,"E"
99 ;;D^CPRS ORDER PRESCAN
100 ;;R^"860.6:",.02,"E"
101 ;;D^OEPS
102 ;;R^"860.6:",1,"E"
103 ;;D^DATA DRIVEN
104 ;;EOR^
105 ;;KEY^860.6:^TIMED ORDER CHECK
106 ;;R^"860.6:",.01,"E"
107 ;;D^TIMED ORDER CHECK
108 ;;R^"860.6:",.02,"E"
109 ;;D^TIME
110 ;;R^"860.6:",1,"E"
111 ;;D^TIMED EVENT
112 ;;EOR^
113 ;;KEY^860.6:^GENERIC QUERY
114 ;;R^"860.6:",.01,"E"
115 ;;D^GENERIC QUERY
116 ;;R^"860.6:",.02,"E"
117 ;;D^QUERY
118 ;;R^"860.6:",1,"E"
119 ;;D^DATA DRIVEN
120 ;;EOR^
121 ;;EOF^OCXS(860.6)^1
122 ;;SOF^860.5 ORDER CHECK DATA SOURCE
123 ;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
124 ;;R^"860.5:",.01,"E"
125 ;;D^HL7 COMMON ORDER SEGMENT
126 ;;R^"860.5:",.02,"E"
127 ;;D^GENERIC HL7 MESSAGE ARRAY
128 ;;EOR^
129 ;;KEY^860.5:^HL7 OBSERVATION/RESULT SEGMENT
130 ;;R^"860.5:",.01,"E"
131 ;;D^HL7 OBSERVATION/RESULT SEGMENT
132 ;;R^"860.5:",.02,"E"
133 ;;D^GENERIC HL7 MESSAGE ARRAY
134 ;;EOR^
135 ;;KEY^860.5:^HL7 NOTES AND COMMENTS SECTION
136 ;;R^"860.5:",.01,"E"
137 ;;D^HL7 NOTES AND COMMENTS SECTION
138 ;;R^"860.5:",.02,"E"
139 ;;D^GENERIC HL7 MESSAGE ARRAY
140 ;;EOR^
141 ;;KEY^860.5:^DGPM MOVEMENT EVENTS PROTOCOL
142 ;;R^"860.5:",.01,"E"
143 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
144 ;;R^"860.5:",.02,"E"
145 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
146 ;;EOR^
147 ;;KEY^860.5:^HL7 OBSERVATION REQUEST SEGMENT
148 ;;R^"860.5:",.01,"E"
149 ;;D^HL7 OBSERVATION REQUEST SEGMENT
150 ;;R^"860.5:",.02,"E"
151 ;;D^GENERIC HL7 MESSAGE ARRAY
152 ;;EOR^
153 ;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
154 ;;R^"860.5:",.01,"E"
155 ;;D^OERR ORDER EVENT FLAG PROTOCOL
156 ;;R^"860.5:",.02,"E"
157 ;;D^CPRS ORDER PROTOCOL
158 ;;EOR^
159 ;;KEY^860.5:^DATABASE LOOKUP
160 ;;R^"860.5:",.01,"E"
161 ;;D^DATABASE LOOKUP
162 ;;R^"860.5:",.02,"E"
163 ;;D^DATABASE LOOKUP
164 ;;EOR^
165 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
166 ;;R^"860.5:",.01,"E"
167 ;;D^ORDER ENTRY ORDER PRESCAN
168 ;;R^"860.5:",.02,"E"
169 ;;D^CPRS ORDER PRESCAN
170 ;;EOR^
171 ;;KEY^860.5:^HL7 DIETARY SEGMENT
172 ;;R^"860.5:",.01,"E"
173 ;;D^HL7 DIETARY SEGMENT
174 ;;R^"860.5:",.02,"E"
175 ;;D^GENERIC HL7 MESSAGE ARRAY
176 ;;EOR^
177 ;;KEY^860.5:^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
178 ;;R^"860.5:",.01,"E"
179 ;;D^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
180 ;;R^"860.5:",.02,"E"
181 ;;D^GENERIC HL7 MESSAGE ARRAY
182 ;;EOR^
183 ;;KEY^860.5:^HL7 MESSAGE HEADER
184 ;;R^"860.5:",.01,"E"
185 ;;D^HL7 MESSAGE HEADER
186 ;;R^"860.5:",.02,"E"
187 ;;D^GENERIC HL7 MESSAGE ARRAY
188 ;;EOR^
189 ;;KEY^860.5:^HL7 PATIENT ID SEGMENT
190 ;;R^"860.5:",.01,"E"
191 ;;D^HL7 PATIENT ID SEGMENT
192 ;;R^"860.5:",.02,"E"
193 ;;D^GENERIC HL7 MESSAGE ARRAY
194 ;;EOR^
195 ;;KEY^860.5:^TIMED EVENT ORDER CHECK
196 ;;R^"860.5:",.01,"E"
197 ;;D^TIMED EVENT ORDER CHECK
198 ;;R^"860.5:",.02,"E"
199 ;;D^TIMED ORDER CHECK
200 ;;EOR^
201 ;;KEY^860.5:^GENERIC QUERY RESULTS
202 ;;R^"860.5:",.01,"E"
203 ;;D^GENERIC QUERY RESULTS
204 ;;R^"860.5:",.02,"E"
205 ;;D^GENERIC QUERY
206 ;;EOR^
207 ;;EOF^OCXS(860.5)^1
208 ;;SOF^860.4 ORDER CHECK DATA FIELD
209 ;;KEY^860.4:^CONTROL CODE
210 ;;R^"860.4:",.01,"E"
211 ;;D^CONTROL CODE
212 ;;R^"860.4:",101,"E"
213 ;1;
214 ;
Note: See TracBrowser for help on using the repository browser.