OCXDI02J ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXDIAG
;
;
K REMOTE,LOCAL,OPCODE,REF
F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT I $L(TEXT) D Q:QUIT
.S ^TMP("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
;
G ^OCXDI02K
;
Q
;
DATA ;
;
;;R^"860.8:",100,19
;;D^ ; S OCXDATA("AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM)=""
;;R^"860.8:",100,20
;;D^ ; ;
;;R^"860.8:",100,21
;;D^ ; S OCXGR="^OCXD(860.7"
;;R^"860.8:",100,22
;;D^T+; D SETAP(OCXGR_")",0,"Patient",$P($G(^DPT(OCXDFN,0)),U,1),.OCXDATA,OCXDFN)
;;R^"860.8:",100,23
;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
;;R^"860.8:",100,24
;;D^ ; ;
;;R^"860.8:",100,25
;;D^ ; K OCXDATA
;;R^"860.8:",100,26
;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
;;R^"860.8:",100,27
;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
;;R^"860.8:",100,28
;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
;;R^"860.8:",100,29
;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
;;R^"860.8:",100,30
;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
;;R^"860.8:",100,31
;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
;;R^"860.8:",100,32
;;D^ ; ;
;;R^"860.8:",100,33
;;D^ ; K OCXDATA
;;R^"860.8:",100,34
;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
;;R^"860.8:",100,35
;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
;;R^"860.8:",100,36
;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
;;R^"860.8:",100,37
;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
;;R^"860.8:",100,38
;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
;;R^"860.8:",100,39
;;D^ ; ;
;;R^"860.8:",100,40
;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
;;R^"860.8:",100,41
;;D^ ; .;
;;R^"860.8:",100,42
;;D^ ; .N OCXGR1
;;R^"860.8:",100,43
;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
;;R^"860.8:",100,44
;;D^ ; .K OCXDATA
;;R^"860.8:",100,45
;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
;;R^"860.8:",100,46
;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
;;R^"860.8:",100,47
;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
;;R^"860.8:",100,48
;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
;;R^"860.8:",100,49
;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
;;R^"860.8:",100,50
;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
;;R^"860.8:",100,51
;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
;;R^"860.8:",100,52
;;D^ ; .;
;;R^"860.8:",100,53
;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
;;R^"860.8:",100,54
;;D^ ; ..N OCXGR2
;;R^"860.8:",100,55
;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
;;R^"860.8:",100,56
;;D^ ; ..K OCXDATA
;;R^"860.8:",100,57
;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
;;R^"860.8:",100,58
;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
;;R^"860.8:",100,59
;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
;;R^"860.8:",100,60
;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
;;R^"860.8:",100,61
;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
;;R^"860.8:",100,62
;;D^ ; ;
;;R^"860.8:",100,63
;;D^ ; Q 1
;;R^"860.8:",100,64
;;D^ ; ;
;;R^"860.8:",100,65
;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
;;R^"860.8:",100,66
;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
;;R^"860.8:",100,67
;;D^ ; S:(DD&'$D(@ROOT@(0))) @ROOT@(0)=U_DD_U
;;R^"860.8:",100,68
;;D^ ; S:'$D(@ROOT@(DA,0)) $P(@ROOT@(0),U,3)=$P(@ROOT@(0),U,3)+1,$P(@ROOT@(0),U,4)=DA
;;R^"860.8:",100,69
;;D^ ; M @ROOT=DATA
;;R^"860.8:",100,70
;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",ITEM,": ",ITEMNAME
;;R^"860.8:",100,71
;;D^ ; ;
;;R^"860.8:",100,72
;;D^ ; Q
;;R^"860.8:",100,73
;;D^ ; ;
;;R^"860.8:",100,74
;;D^ ; ;
;;EOR^
;;KEY^860.8:^SEND NOTIFICATIONS CALL TO TASKMAN
;;R^"860.8:",.01,"E"
;;D^SEND NOTIFICATIONS CALL TO TASKMAN
;;R^"860.8:",.02,"E"
;;D^QUENOTIF
;;R^"860.8:",100,1
;;D^ ;QUENOTIF(ORN,ORBDFN,ORNUM,ORBPMSG,ORBPDATA) ;
;;R^"860.8:",100,2
;;D^ ; ; Send Notifications call (^ORB3) to taskman.
;;R^"860.8:",100,3
;;D^ ; ;
;;R^"860.8:",100,4
;;D^ ; ;
;;R^"860.8:",100,5
;;D^ ; ;D EN($G(ORN),$G(ORBDFN),$G(ORNUM),$G(ORBADUZ),$G(ORBPMSG),.ORBPDATA) ;main entry point
;;R^"860.8:",100,6
;;D^ ; ;
;;R^"860.8:",100,7
;;D^ ; N ZTCPU,ZTDESC,ZTDTH,ZTIO,ZTPAR,ZTPRE,ZTPRI,ZTRTN,ZTSAVE,ZTSK,ZTUCI,ORBADUZ
;;R^"860.8:",100,8
;;D^ ; ;
;;R^"860.8:",100,9
;;D^ ; S ZTDTH=$H,ORBADUZ="",ZTIO="",ZTRTN="ZTSK^ORB3"
;;R^"860.8:",100,10
;;D^ ; S ZTDESC="OCX Order Checking queued Send Alert ("_(+ORN)_") "_$P($G(^ORD(100.9,+ORN,0)),U,1)_" "
;;R^"860.8:",100,11
;;D^ ; S ZTDESC=ZTDESC_"for ("_ORBDFN_") "_$P($G(^DPT(+ORBDFN,0)),U,1)
;;R^"860.8:",100,12
;;D^ ; K ZTSAVE,ZTCPU,ZTUCI,ZTPRI,ZTPAR,ZTPRE
;;R^"860.8:",100,13
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI02J 5186 printed Nov 22, 2024@17:33:57 Page 2
OCXDI02J ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXDIAG
+3 ;
+4 ;
+5 KILL REMOTE,LOCAL,OPCODE,REF
+6 FOR LINE=1:1:500
SET TEXT=$PIECE($TEXT(DATA+LINE),";",2,999)
if TEXT
QUIT
IF $LENGTH(TEXT)
Begin DoDot:1
+7 SET ^TMP("OCXDIAG",$JOB,$ORDER(^TMP("OCXDIAG",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
if QUIT
QUIT
+8 ;
+9 GOTO ^OCXDI02K
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.8:",100,19
+3 ;;D^ ; S OCXDATA("AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM)=""
+4 ;;R^"860.8:",100,20
+5 ;;D^ ; ;
+6 ;;R^"860.8:",100,21
+7 ;;D^ ; S OCXGR="^OCXD(860.7"
+8 ;;R^"860.8:",100,22
+9 ;;D^T+; D SETAP(OCXGR_")",0,"Patient",$P($G(^DPT(OCXDFN,0)),U,1),.OCXDATA,OCXDFN)
+10 ;;R^"860.8:",100,23
+11 ;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
+12 ;;R^"860.8:",100,24
+13 ;;D^ ; ;
+14 ;;R^"860.8:",100,25
+15 ;;D^ ; K OCXDATA
+16 ;;R^"860.8:",100,26
+17 ;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
+18 ;;R^"860.8:",100,27
+19 ;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
+20 ;;R^"860.8:",100,28
+21 ;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
+22 ;;R^"860.8:",100,29
+23 ;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
+24 ;;R^"860.8:",100,30
+25 ;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
+26 ;;R^"860.8:",100,31
+27 ;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
+28 ;;R^"860.8:",100,32
+29 ;;D^ ; ;
+30 ;;R^"860.8:",100,33
+31 ;;D^ ; K OCXDATA
+32 ;;R^"860.8:",100,34
+33 ;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
+34 ;;R^"860.8:",100,35
+35 ;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
+36 ;;R^"860.8:",100,36
+37 ;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
+38 ;;R^"860.8:",100,37
+39 ;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
+40 ;;R^"860.8:",100,38
+41 ;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
+42 ;;R^"860.8:",100,39
+43 ;;D^ ; ;
+44 ;;R^"860.8:",100,40
+45 ;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
+46 ;;R^"860.8:",100,41
+47 ;;D^ ; .;
+48 ;;R^"860.8:",100,42
+49 ;;D^ ; .N OCXGR1
+50 ;;R^"860.8:",100,43
+51 ;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
+52 ;;R^"860.8:",100,44
+53 ;;D^ ; .K OCXDATA
+54 ;;R^"860.8:",100,45
+55 ;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
+56 ;;R^"860.8:",100,46
+57 ;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
+58 ;;R^"860.8:",100,47
+59 ;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
+60 ;;R^"860.8:",100,48
+61 ;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
+62 ;;R^"860.8:",100,49
+63 ;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
+64 ;;R^"860.8:",100,50
+65 ;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
+66 ;;R^"860.8:",100,51
+67 ;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
+68 ;;R^"860.8:",100,52
+69 ;;D^ ; .;
+70 ;;R^"860.8:",100,53
+71 ;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
+72 ;;R^"860.8:",100,54
+73 ;;D^ ; ..N OCXGR2
+74 ;;R^"860.8:",100,55
+75 ;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
+76 ;;R^"860.8:",100,56
+77 ;;D^ ; ..K OCXDATA
+78 ;;R^"860.8:",100,57
+79 ;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
+80 ;;R^"860.8:",100,58
+81 ;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
+82 ;;R^"860.8:",100,59
+83 ;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
+84 ;;R^"860.8:",100,60
+85 ;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
+86 ;;R^"860.8:",100,61
+87 ;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
+88 ;;R^"860.8:",100,62
+89 ;;D^ ; ;
+90 ;;R^"860.8:",100,63
+91 ;;D^ ; Q 1
+92 ;;R^"860.8:",100,64
+93 ;;D^ ; ;
+94 ;;R^"860.8:",100,65
+95 ;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
+96 ;;R^"860.8:",100,66
+97 ;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
+98 ;;R^"860.8:",100,67
+99 ;;D^ ; S:(DD&'$D(@ROOT@(0))) @ROOT@(0)=U_DD_U
+100 ;;R^"860.8:",100,68
+101 ;;D^ ; S:'$D(@ROOT@(DA,0)) $P(@ROOT@(0),U,3)=$P(@ROOT@(0),U,3)+1,$P(@ROOT@(0),U,4)=DA
+102 ;;R^"860.8:",100,69
+103 ;;D^ ; M @ROOT=DATA
+104 ;;R^"860.8:",100,70
+105 ;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",ITEM,": ",ITEMNAME
+106 ;;R^"860.8:",100,71
+107 ;;D^ ; ;
+108 ;;R^"860.8:",100,72
+109 ;;D^ ; Q
+110 ;;R^"860.8:",100,73
+111 ;;D^ ; ;
+112 ;;R^"860.8:",100,74
+113 ;;D^ ; ;
+114 ;;EOR^
+115 ;;KEY^860.8:^SEND NOTIFICATIONS CALL TO TASKMAN
+116 ;;R^"860.8:",.01,"E"
+117 ;;D^SEND NOTIFICATIONS CALL TO TASKMAN
+118 ;;R^"860.8:",.02,"E"
+119 ;;D^QUENOTIF
+120 ;;R^"860.8:",100,1
+121 ;;D^ ;QUENOTIF(ORN,ORBDFN,ORNUM,ORBPMSG,ORBPDATA) ;
+122 ;;R^"860.8:",100,2
+123 ;;D^ ; ; Send Notifications call (^ORB3) to taskman.
+124 ;;R^"860.8:",100,3
+125 ;;D^ ; ;
+126 ;;R^"860.8:",100,4
+127 ;;D^ ; ;
+128 ;;R^"860.8:",100,5
+129 ;;D^ ; ;D EN($G(ORN),$G(ORBDFN),$G(ORNUM),$G(ORBADUZ),$G(ORBPMSG),.ORBPDATA) ;main entry point
+130 ;;R^"860.8:",100,6
+131 ;;D^ ; ;
+132 ;;R^"860.8:",100,7
+133 ;;D^ ; N ZTCPU,ZTDESC,ZTDTH,ZTIO,ZTPAR,ZTPRE,ZTPRI,ZTRTN,ZTSAVE,ZTSK,ZTUCI,ORBADUZ
+134 ;;R^"860.8:",100,8
+135 ;;D^ ; ;
+136 ;;R^"860.8:",100,9
+137 ;;D^ ; S ZTDTH=$H,ORBADUZ="",ZTIO="",ZTRTN="ZTSK^ORB3"
+138 ;;R^"860.8:",100,10
+139 ;;D^ ; S ZTDESC="OCX Order Checking queued Send Alert ("_(+ORN)_") "_$P($G(^ORD(100.9,+ORN,0)),U,1)_" "
+140 ;;R^"860.8:",100,11
+141 ;;D^ ; S ZTDESC=ZTDESC_"for ("_ORBDFN_") "_$P($G(^DPT(+ORBDFN,0)),U,1)
+142 ;;R^"860.8:",100,12
+143 ;;D^ ; K ZTSAVE,ZTCPU,ZTUCI,ZTPRI,ZTPAR,ZTPRE
+144 ;;R^"860.8:",100,13
+145 ;1;
+146 ;