source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXDI02J.m@ 1076

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

initial load of WorldVistAEHR

File size: 4.9 KB
RevLine 
[613]1OCXDI02J ;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 ^OCXDI02K
15 ;
16 Q
17 ;
18DATA ;
19 ;
20 ;;R^"860.8:",100,19
21 ;;D^ ; S OCXDATA("AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM)=""
22 ;;R^"860.8:",100,20
23 ;;D^ ; ;
24 ;;R^"860.8:",100,21
25 ;;D^ ; S OCXGR="^OCXD(860.7"
26 ;;R^"860.8:",100,22
27 ;;D^T+; D SETAP(OCXGR_")",0,"Patient",$P($G(^DPT(OCXDFN,0)),U,1),.OCXDATA,OCXDFN)
28 ;;R^"860.8:",100,23
29 ;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
30 ;;R^"860.8:",100,24
31 ;;D^ ; ;
32 ;;R^"860.8:",100,25
33 ;;D^ ; K OCXDATA
34 ;;R^"860.8:",100,26
35 ;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
36 ;;R^"860.8:",100,27
37 ;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
38 ;;R^"860.8:",100,28
39 ;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
40 ;;R^"860.8:",100,29
41 ;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
42 ;;R^"860.8:",100,30
43 ;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
44 ;;R^"860.8:",100,31
45 ;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
46 ;;R^"860.8:",100,32
47 ;;D^ ; ;
48 ;;R^"860.8:",100,33
49 ;;D^ ; K OCXDATA
50 ;;R^"860.8:",100,34
51 ;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
52 ;;R^"860.8:",100,35
53 ;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
54 ;;R^"860.8:",100,36
55 ;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
56 ;;R^"860.8:",100,37
57 ;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
58 ;;R^"860.8:",100,38
59 ;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
60 ;;R^"860.8:",100,39
61 ;;D^ ; ;
62 ;;R^"860.8:",100,40
63 ;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
64 ;;R^"860.8:",100,41
65 ;;D^ ; .;
66 ;;R^"860.8:",100,42
67 ;;D^ ; .N OCXGR1
68 ;;R^"860.8:",100,43
69 ;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
70 ;;R^"860.8:",100,44
71 ;;D^ ; .K OCXDATA
72 ;;R^"860.8:",100,45
73 ;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
74 ;;R^"860.8:",100,46
75 ;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
76 ;;R^"860.8:",100,47
77 ;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
78 ;;R^"860.8:",100,48
79 ;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
80 ;;R^"860.8:",100,49
81 ;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
82 ;;R^"860.8:",100,50
83 ;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
84 ;;R^"860.8:",100,51
85 ;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
86 ;;R^"860.8:",100,52
87 ;;D^ ; .;
88 ;;R^"860.8:",100,53
89 ;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
90 ;;R^"860.8:",100,54
91 ;;D^ ; ..N OCXGR2
92 ;;R^"860.8:",100,55
93 ;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
94 ;;R^"860.8:",100,56
95 ;;D^ ; ..K OCXDATA
96 ;;R^"860.8:",100,57
97 ;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
98 ;;R^"860.8:",100,58
99 ;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
100 ;;R^"860.8:",100,59
101 ;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
102 ;;R^"860.8:",100,60
103 ;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
104 ;;R^"860.8:",100,61
105 ;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
106 ;;R^"860.8:",100,62
107 ;;D^ ; ;
108 ;;R^"860.8:",100,63
109 ;;D^ ; Q 1
110 ;;R^"860.8:",100,64
111 ;;D^ ; ;
112 ;;R^"860.8:",100,65
113 ;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
114 ;;R^"860.8:",100,66
115 ;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
116 ;;R^"860.8:",100,67
117 ;;D^ ; S:(DD&'$D(@ROOT@(0))) @ROOT@(0)=U_DD_U
118 ;;R^"860.8:",100,68
119 ;;D^ ; S:'$D(@ROOT@(DA,0)) $P(@ROOT@(0),U,3)=$P(@ROOT@(0),U,3)+1,$P(@ROOT@(0),U,4)=DA
120 ;;R^"860.8:",100,69
121 ;;D^ ; M @ROOT=DATA
122 ;;R^"860.8:",100,70
123 ;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",ITEM,": ",ITEMNAME
124 ;;R^"860.8:",100,71
125 ;;D^ ; ;
126 ;;R^"860.8:",100,72
127 ;;D^ ; Q
128 ;;R^"860.8:",100,73
129 ;;D^ ; ;
130 ;;R^"860.8:",100,74
131 ;;D^ ; ;
132 ;;EOR^
133 ;;KEY^860.8:^SEND NOTIFICATIONS CALL TO TASKMAN
134 ;;R^"860.8:",.01,"E"
135 ;;D^SEND NOTIFICATIONS CALL TO TASKMAN
136 ;;R^"860.8:",.02,"E"
137 ;;D^QUENOTIF
138 ;;R^"860.8:",100,1
139 ;;D^ ;QUENOTIF(ORN,ORBDFN,ORNUM,ORBPMSG,ORBPDATA) ;
140 ;;R^"860.8:",100,2
141 ;;D^ ; ; Send Notifications call (^ORB3) to taskman.
142 ;;R^"860.8:",100,3
143 ;;D^ ; ;
144 ;;R^"860.8:",100,4
145 ;;D^ ; ;
146 ;;R^"860.8:",100,5
147 ;;D^ ; ;D EN($G(ORN),$G(ORBDFN),$G(ORNUM),$G(ORBADUZ),$G(ORBPMSG),.ORBPDATA) ;main entry point
148 ;;R^"860.8:",100,6
149 ;;D^ ; ;
150 ;;R^"860.8:",100,7
151 ;;D^ ; N ZTCPU,ZTDESC,ZTDTH,ZTIO,ZTPAR,ZTPRE,ZTPRI,ZTRTN,ZTSAVE,ZTSK,ZTUCI,ORBADUZ
152 ;;R^"860.8:",100,8
153 ;;D^ ; ;
154 ;;R^"860.8:",100,9
155 ;;D^ ; S ZTDTH=$H,ORBADUZ="",ZTIO="",ZTRTN="ZTSK^ORB3"
156 ;;R^"860.8:",100,10
157 ;;D^ ; S ZTDESC="OCX Order Checking queued Send Alert ("_(+ORN)_") "_$P($G(^ORD(100.9,+ORN,0)),U,1)_" "
158 ;;R^"860.8:",100,11
159 ;;D^ ; S ZTDESC=ZTDESC_"for ("_ORBDFN_") "_$P($G(^DPT(+ORBDFN,0)),U,1)
160 ;;R^"860.8:",100,12
161 ;;D^ ; K ZTSAVE,ZTCPU,ZTUCI,ZTPRI,ZTPAR,ZTPRE
162 ;;R^"860.8:",100,13
163 ;1;
164 ;
Note: See TracBrowser for help on using the repository browser.