ORY01105 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1011) ;APR 8,2013 at 18:46
;;3.0;ORDER ENTRY/RESULTS REPORTING;**1011**;Dec 17,1997;Build 242
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY011ES
;
;
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("OCXRULE",$J,$O(^TMP("OCXRULE",$J,"A"),-1)+1)=TEXT
;
G ^ORY01106
;
Q
;
DATA ;
;
;;R^"860.8:",100,6
;;D^ ; Q +CKSUM
;;R^"860.8:",100,7
;;D^ ; ;
;;EOR^
;;KEY^860.8:^GET DATA FROM THE ACTIVE DATA FILE
;;R^"860.8:",.01,"E"
;;D^GET DATA FROM THE ACTIVE DATA FILE
;;R^"860.8:",.02,"E"
;;D^GETDATA
;;R^"860.8:",100,1
;;D^ ;GETDATA(DFN,OCXL,OCXDFI) ; This Local Extrinsic Function returns runtime data
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^ ; N OCXE,VAL,PC S VAL=""
;;R^"860.8:",100,4
;;D^ ; F PC=1:1:$L(OCXL,U) S OCXE=$P(OCXL,U,PC) I OCXE S VAL=$G(^TMP("OCXCHK",$J,DFN,OCXE,OCXDFI)) Q:$L(VAL)
;;R^"860.8:",100,5
;;D^ ; Q VAL
;;R^"860.8:",100,6
;;D^ ; ;
;;EOR^
;;KEY^860.8:^IN LIST OPERATOR
;;R^"860.8:",.01,"E"
;;D^IN LIST OPERATOR
;;R^"860.8:",.02,"E"
;;D^LIST
;;R^"860.8:",100,1
;;D^ ;LIST(DATA,LIST) ; IS THE DATA FIELD IN THE LIST
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^T+; W:$G(OCXTRACE) !,"%%%%",?20," $$LIST(""",DATA,""",""",LIST,""")"
;;R^"860.8:",100,4
;;D^ ; S:'($E(LIST,1)=",") LIST=","_LIST S:'($E(LIST,$L(LIST))=",") LIST=LIST_"," S DATA=","_DATA_","
;;R^"860.8:",100,5
;;D^ ; Q (LIST[DATA)
;;R^"860.8:",100,6
;;D^ ; ;
;;EOR^
;;KEY^860.8:^LOCAL TERM LOOKUP
;;R^"860.8:",.01,"E"
;;D^LOCAL TERM LOOKUP
;;R^"860.8:",.02,"E"
;;D^TERMLKUP
;;R^"860.8:",1,1
;;D^
;;R^"860.8:",1,2
;;D^ This function allows a local site to define to Order Checking
;;R^"860.8:",1,3
;;D^ a term specific to that site. (ie. Lab Test Name, Radiology
;;R^"860.8:",1,4
;;D^ procedure name, etc.)
;;R^"860.8:",1,5
;;D^
;;R^"860.8:",100,1
;;D^ ;TERMLKUP(OCXTERM,OCXFILE) ;
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^ ; Q
;;R^"860.8:",100,4
;;D^ ; ;
;;EOR^
;;KEY^860.8:^NEW RULE MESSAGE
;;R^"860.8:",.01,"E"
;;D^NEW RULE MESSAGE
;;R^"860.8:",.02,"E"
;;D^NEWRULE
;;R^"860.8:",100,1
;;D^ ;NEWRULE(OCXDFN,OCXORD,OCXRUL,OCXREL,OCXNOTF,OCXMESS) ; Has this rule already been triggered for this order number
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^L+; S OCXERR=$$TIMELOG("M","NEWRULE("_(+$G(OCXDFN))_","_(+$G(OCXORD))_","_(+$G(OCXRUL))_","_(+$G(OCXREL))_","_(+$G(OCXNOTF))_","_$G(OCXMESS)_")")
;;R^"860.8:",100,4
;;D^ ; ;
;;R^"860.8:",100,5
;;D^ ; Q:'$G(OCXDFN) 0 Q:'$G(OCXRUL) 0
;;R^"860.8:",100,6
;;D^ ; Q:'$G(OCXREL) 0 Q:'$G(OCXNOTF) 0 Q:'$L($G(OCXMESS)) 0
;;R^"860.8:",100,7
;;D^ ; S OCXORD=+$G(OCXORD),OCXDFN=+OCXDFN
;;R^"860.8:",100,8
;;D^ ; ;
;;R^"860.8:",100,9
;;D^ ; N OCXNDX,OCXDATA,OCXDFI,OCXELE,OCXGR,OCXTIME,OCXCKSUM,OCXTSP,OCXTSPL
;;R^"860.8:",100,10
;;D^ ; ;
;;R^"860.8:",100,11
;;D^ ; S OCXTIME=(+$H)
;;R^"860.8:",100,12
;;D^ ; S OCXCKSUM=$$CKSUM(OCXMESS)
;;R^"860.8:",100,13
;;D^ ; ;
;;R^"860.8:",100,14
;;D^ ; S OCXTSP=($H*86400)+$P($H,",",2)
;;R^"860.8:",100,15
;;D^ ; S OCXTSPL=($G(^OCXD(860.7,"AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM))+$G(OCXTSPI,300))
;;R^"860.8:",100,16
;;D^ ; ;
;;R^"860.8:",100,17
;;D^ ; Q:(OCXTSPL>OCXTSP) 0
;;R^"860.8:",100,18
;;D^ ; ;
;;R^"860.8:",100,19
;;D^ ; K OCXDATA
;;R^"860.8:",100,20
;;D^ ; S OCXDATA(OCXDFN,0)=OCXDFN
;;R^"860.8:",100,21
;;D^ ; S OCXDATA("B",OCXDFN,OCXDFN)=""
;;R^"860.8:",100,22
;;D^ ; S OCXDATA("AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM)=OCXTSP
;;R^"860.8:",100,23
;;D^ ; ;
;;R^"860.8:",100,24
;;D^ ; S OCXGR="^OCXD(860.7"
;;R^"860.8:",100,25
;;D^T+; D SETAP(OCXGR_")",0,"Patient",$P($G(^DPT(OCXDFN,0)),U,1),.OCXDATA,OCXDFN)
;;R^"860.8:",100,26
;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
;;R^"860.8:",100,27
;;D^ ; ;
;;R^"860.8:",100,28
;;D^ ; K OCXDATA
;;R^"860.8:",100,29
;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
;;R^"860.8:",100,30
;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
;;R^"860.8:",100,31
;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
;;R^"860.8:",100,32
;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
;;R^"860.8:",100,33
;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
;;R^"860.8:",100,34
;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
;;R^"860.8:",100,35
;;D^ ; ;
;;R^"860.8:",100,36
;;D^ ; K OCXDATA
;;R^"860.8:",100,37
;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
;;R^"860.8:",100,38
;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
;;R^"860.8:",100,39
;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
;;R^"860.8:",100,40
;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
;;R^"860.8:",100,41
;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
;;R^"860.8:",100,42
;;D^ ; ;
;;R^"860.8:",100,43
;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
;;R^"860.8:",100,44
;;D^ ; .;
;;R^"860.8:",100,45
;;D^ ; .N OCXGR1
;;R^"860.8:",100,46
;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
;;R^"860.8:",100,47
;;D^ ; .K OCXDATA
;;R^"860.8:",100,48
;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
;;R^"860.8:",100,49
;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
;;R^"860.8:",100,50
;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
;;R^"860.8:",100,51
;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
;;R^"860.8:",100,52
;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
;;R^"860.8:",100,53
;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
;;R^"860.8:",100,54
;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
;;R^"860.8:",100,55
;;D^ ; .;
;;R^"860.8:",100,56
;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
;;R^"860.8:",100,57
;;D^ ; ..N OCXGR2
;;R^"860.8:",100,58
;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
;;R^"860.8:",100,59
;;D^ ; ..K OCXDATA
;;R^"860.8:",100,60
;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
;;R^"860.8:",100,61
;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
;;R^"860.8:",100,62
;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
;;R^"860.8:",100,63
;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
;;R^"860.8:",100,64
;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
;;R^"860.8:",100,65
;;D^ ; ;
;;R^"860.8:",100,66
;;D^ ; Q 1
;;R^"860.8:",100,67
;;D^ ; ;
;;R^"860.8:",100,68
;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
;;R^"860.8:",100,69
;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
;;R^"860.8:",100,70
;;D^ ; M @ROOT=DATA
;;R^"860.8:",100,71
;;D^ ; I +$G(DD) S @ROOT@(0)="^"_($G(DD))_"^"_($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
;;R^"860.8:",100,72
;;D^ ; I '$G(DD) S $P(@ROOT@(0),U,3,4)=($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
;;R^"860.8:",100,73
;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",$G(ITEM),": ",$G(ITEMNAME)
;;R^"860.8:",100,74
;;D^ ; ;
;;R^"860.8:",100,75
;;D^ ; Q
;;R^"860.8:",100,76
;;D^ ; ;
;;R^"860.8:",100,77
;;D^ ; ;
;;EOR^
;;KEY^860.8:^RETURN POINTED TO VALUE
;;R^"860.8:",.01,"E"
;;D^RETURN POINTED TO VALUE
;;R^"860.8:",.02,"E"
;;D^POINTER
;;R^"860.8:",1,1
;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
;1;
;
ORY01105 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1011) ;APR 8,2013 at 18:46
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**1011**;Dec 17,1997;Build 242
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY011ES
+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("OCXRULE",$JOB,$ORDER(^TMP("OCXRULE",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
IF QUIT
QUIT
+8 ;
+9 GOTO ^ORY01106
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.8:",100,6
+3 ;;D^ ; Q +CKSUM
+4 ;;R^"860.8:",100,7
+5 ;;D^ ; ;
+6 ;;EOR^
+7 ;;KEY^860.8:^GET DATA FROM THE ACTIVE DATA FILE
+8 ;;R^"860.8:",.01,"E"
+9 ;;D^GET DATA FROM THE ACTIVE DATA FILE
+10 ;;R^"860.8:",.02,"E"
+11 ;;D^GETDATA
+12 ;;R^"860.8:",100,1
+13 ;;D^ ;GETDATA(DFN,OCXL,OCXDFI) ; This Local Extrinsic Function returns runtime data
+14 ;;R^"860.8:",100,2
+15 ;;D^ ; ;
+16 ;;R^"860.8:",100,3
+17 ;;D^ ; N OCXE,VAL,PC S VAL=""
+18 ;;R^"860.8:",100,4
+19 ;;D^ ; F PC=1:1:$L(OCXL,U) S OCXE=$P(OCXL,U,PC) I OCXE S VAL=$G(^TMP("OCXCHK",$J,DFN,OCXE,OCXDFI)) Q:$L(VAL)
+20 ;;R^"860.8:",100,5
+21 ;;D^ ; Q VAL
+22 ;;R^"860.8:",100,6
+23 ;;D^ ; ;
+24 ;;EOR^
+25 ;;KEY^860.8:^IN LIST OPERATOR
+26 ;;R^"860.8:",.01,"E"
+27 ;;D^IN LIST OPERATOR
+28 ;;R^"860.8:",.02,"E"
+29 ;;D^LIST
+30 ;;R^"860.8:",100,1
+31 ;;D^ ;LIST(DATA,LIST) ; IS THE DATA FIELD IN THE LIST
+32 ;;R^"860.8:",100,2
+33 ;;D^ ; ;
+34 ;;R^"860.8:",100,3
+35 ;;D^T+; W:$G(OCXTRACE) !,"%%%%",?20," $$LIST(""",DATA,""",""",LIST,""")"
+36 ;;R^"860.8:",100,4
+37 ;;D^ ; S:'($E(LIST,1)=",") LIST=","_LIST S:'($E(LIST,$L(LIST))=",") LIST=LIST_"," S DATA=","_DATA_","
+38 ;;R^"860.8:",100,5
+39 ;;D^ ; Q (LIST[DATA)
+40 ;;R^"860.8:",100,6
+41 ;;D^ ; ;
+42 ;;EOR^
+43 ;;KEY^860.8:^LOCAL TERM LOOKUP
+44 ;;R^"860.8:",.01,"E"
+45 ;;D^LOCAL TERM LOOKUP
+46 ;;R^"860.8:",.02,"E"
+47 ;;D^TERMLKUP
+48 ;;R^"860.8:",1,1
+49 ;;D^
+50 ;;R^"860.8:",1,2
+51 ;;D^ This function allows a local site to define to Order Checking
+52 ;;R^"860.8:",1,3
+53 ;;D^ a term specific to that site. (ie. Lab Test Name, Radiology
+54 ;;R^"860.8:",1,4
+55 ;;D^ procedure name, etc.)
+56 ;;R^"860.8:",1,5
+57 ;;D^
+58 ;;R^"860.8:",100,1
+59 ;;D^ ;TERMLKUP(OCXTERM,OCXFILE) ;
+60 ;;R^"860.8:",100,2
+61 ;;D^ ; ;
+62 ;;R^"860.8:",100,3
+63 ;;D^ ; Q
+64 ;;R^"860.8:",100,4
+65 ;;D^ ; ;
+66 ;;EOR^
+67 ;;KEY^860.8:^NEW RULE MESSAGE
+68 ;;R^"860.8:",.01,"E"
+69 ;;D^NEW RULE MESSAGE
+70 ;;R^"860.8:",.02,"E"
+71 ;;D^NEWRULE
+72 ;;R^"860.8:",100,1
+73 ;;D^ ;NEWRULE(OCXDFN,OCXORD,OCXRUL,OCXREL,OCXNOTF,OCXMESS) ; Has this rule already been triggered for this order number
+74 ;;R^"860.8:",100,2
+75 ;;D^ ; ;
+76 ;;R^"860.8:",100,3
+77 ;;D^L+; S OCXERR=$$TIMELOG("M","NEWRULE("_(+$G(OCXDFN))_","_(+$G(OCXORD))_","_(+$G(OCXRUL))_","_(+$G(OCXREL))_","_(+$G(OCXNOTF))_","_$G(OCXMESS)_")")
+78 ;;R^"860.8:",100,4
+79 ;;D^ ; ;
+80 ;;R^"860.8:",100,5
+81 ;;D^ ; Q:'$G(OCXDFN) 0 Q:'$G(OCXRUL) 0
+82 ;;R^"860.8:",100,6
+83 ;;D^ ; Q:'$G(OCXREL) 0 Q:'$G(OCXNOTF) 0 Q:'$L($G(OCXMESS)) 0
+84 ;;R^"860.8:",100,7
+85 ;;D^ ; S OCXORD=+$G(OCXORD),OCXDFN=+OCXDFN
+86 ;;R^"860.8:",100,8
+87 ;;D^ ; ;
+88 ;;R^"860.8:",100,9
+89 ;;D^ ; N OCXNDX,OCXDATA,OCXDFI,OCXELE,OCXGR,OCXTIME,OCXCKSUM,OCXTSP,OCXTSPL
+90 ;;R^"860.8:",100,10
+91 ;;D^ ; ;
+92 ;;R^"860.8:",100,11
+93 ;;D^ ; S OCXTIME=(+$H)
+94 ;;R^"860.8:",100,12
+95 ;;D^ ; S OCXCKSUM=$$CKSUM(OCXMESS)
+96 ;;R^"860.8:",100,13
+97 ;;D^ ; ;
+98 ;;R^"860.8:",100,14
+99 ;;D^ ; S OCXTSP=($H*86400)+$P($H,",",2)
+100 ;;R^"860.8:",100,15
+101 ;;D^ ; S OCXTSPL=($G(^OCXD(860.7,"AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM))+$G(OCXTSPI,300))
+102 ;;R^"860.8:",100,16
+103 ;;D^ ; ;
+104 ;;R^"860.8:",100,17
+105 ;;D^ ; Q:(OCXTSPL>OCXTSP) 0
+106 ;;R^"860.8:",100,18
+107 ;;D^ ; ;
+108 ;;R^"860.8:",100,19
+109 ;;D^ ; K OCXDATA
+110 ;;R^"860.8:",100,20
+111 ;;D^ ; S OCXDATA(OCXDFN,0)=OCXDFN
+112 ;;R^"860.8:",100,21
+113 ;;D^ ; S OCXDATA("B",OCXDFN,OCXDFN)=""
+114 ;;R^"860.8:",100,22
+115 ;;D^ ; S OCXDATA("AT",OCXTIME,OCXDFN,OCXRUL,+OCXORD,OCXCKSUM)=OCXTSP
+116 ;;R^"860.8:",100,23
+117 ;;D^ ; ;
+118 ;;R^"860.8:",100,24
+119 ;;D^ ; S OCXGR="^OCXD(860.7"
+120 ;;R^"860.8:",100,25
+121 ;;D^T+; D SETAP(OCXGR_")",0,"Patient",$P($G(^DPT(OCXDFN,0)),U,1),.OCXDATA,OCXDFN)
+122 ;;R^"860.8:",100,26
+123 ;;D^T-; D SETAP(OCXGR_")",0,.OCXDATA,OCXDFN)
+124 ;;R^"860.8:",100,27
+125 ;;D^ ; ;
+126 ;;R^"860.8:",100,28
+127 ;;D^ ; K OCXDATA
+128 ;;R^"860.8:",100,29
+129 ;;D^ ; S OCXDATA(OCXRUL,0)=OCXRUL_U_(OCXTIME)_U_(+OCXORD)
+130 ;;R^"860.8:",100,30
+131 ;;D^ ; S OCXDATA(OCXRUL,"M")=OCXMESS
+132 ;;R^"860.8:",100,31
+133 ;;D^ ; S OCXDATA("B",OCXRUL,OCXRUL)=""
+134 ;;R^"860.8:",100,32
+135 ;;D^ ; S OCXGR=OCXGR_","_OCXDFN_",1"
+136 ;;R^"860.8:",100,33
+137 ;;D^T+; D SETAP(OCXGR_")","860.71P","Rule",$P($G(^OCXS(860.2,OCXRUL,0)),U,1),.OCXDATA,OCXRUL)
+138 ;;R^"860.8:",100,34
+139 ;;D^T-; D SETAP(OCXGR_")","860.71P",.OCXDATA,OCXRUL)
+140 ;;R^"860.8:",100,35
+141 ;;D^ ; ;
+142 ;;R^"860.8:",100,36
+143 ;;D^ ; K OCXDATA
+144 ;;R^"860.8:",100,37
+145 ;;D^ ; S OCXDATA(OCXREL,0)=OCXREL
+146 ;;R^"860.8:",100,38
+147 ;;D^ ; S OCXDATA("B",OCXREL,OCXREL)=""
+148 ;;R^"860.8:",100,39
+149 ;;D^ ; S OCXGR=OCXGR_","_OCXRUL_",1"
+150 ;;R^"860.8:",100,40
+151 ;;D^T+; D SETAP(OCXGR_")","860.712","Relation",OCXREL,.OCXDATA,OCXREL)
+152 ;;R^"860.8:",100,41
+153 ;;D^T-; D SETAP(OCXGR_")","860.712",.OCXDATA,OCXREL)
+154 ;;R^"860.8:",100,42
+155 ;;D^ ; ;
+156 ;;R^"860.8:",100,43
+157 ;;D^ ; S OCXELE=0 F S OCXELE=$O(^OCXS(860.2,OCXRUL,"C","C",OCXELE)) Q:'OCXELE D
+158 ;;R^"860.8:",100,44
+159 ;;D^ ; .;
+160 ;;R^"860.8:",100,45
+161 ;;D^ ; .N OCXGR1
+162 ;;R^"860.8:",100,46
+163 ;;D^ ; .S OCXGR1=OCXGR_","_OCXREL_",1"
+164 ;;R^"860.8:",100,47
+165 ;;D^ ; .K OCXDATA
+166 ;;R^"860.8:",100,48
+167 ;;D^ ; .S OCXDATA(OCXELE,0)=OCXELE
+168 ;;R^"860.8:",100,49
+169 ;;D^ ; .S OCXDATA(OCXELE,"TIME")=OCXTIME
+170 ;;R^"860.8:",100,50
+171 ;;D^ ; .S OCXDATA(OCXELE,"LOG")=$G(OCXOLOG)
+172 ;;R^"860.8:",100,51
+173 ;;D^ ; .S OCXDATA("B",OCXELE,OCXELE)=""
+174 ;;R^"860.8:",100,52
+175 ;;D^ ; .K ^OCXD(860.7,OCXDFN,1,OCXRUL,1,OCXREL,1,OCXELE)
+176 ;;R^"860.8:",100,53
+177 ;;D^T+; .D SETAP(OCXGR1_")","860.7122P","Element",$P($G(^OCXS(860.3,OCXELE,0)),U,1),.OCXDATA,OCXELE)
+178 ;;R^"860.8:",100,54
+179 ;;D^T-; .D SETAP(OCXGR1_")","860.7122P",.OCXDATA,OCXELE)
+180 ;;R^"860.8:",100,55
+181 ;;D^ ; .;
+182 ;;R^"860.8:",100,56
+183 ;;D^ ; .S OCXDFI=0 F S OCXDFI=$O(^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)) Q:'OCXDFI D
+184 ;;R^"860.8:",100,57
+185 ;;D^ ; ..N OCXGR2
+186 ;;R^"860.8:",100,58
+187 ;;D^ ; ..S OCXGR2=OCXGR1_","_OCXELE_",1"
+188 ;;R^"860.8:",100,59
+189 ;;D^ ; ..K OCXDATA
+190 ;;R^"860.8:",100,60
+191 ;;D^ ; ..S OCXDATA(OCXDFI,0)=OCXDFI
+192 ;;R^"860.8:",100,61
+193 ;;D^ ; ..S OCXDATA(OCXDFI,"VAL")=^TMP("OCXCHK",$J,OCXDFN,OCXELE,OCXDFI)
+194 ;;R^"860.8:",100,62
+195 ;;D^ ; ..S OCXDATA("B",OCXDFI,OCXDFI)=""
+196 ;;R^"860.8:",100,63
+197 ;;D^T+; ..D SETAP(OCXGR2_")","860.71223P","Data Field",$P($G(^OCXS(860.4,OCXDFI,0)),U,1),.OCXDATA,OCXDFI)
+198 ;;R^"860.8:",100,64
+199 ;;D^T-; ..D SETAP(OCXGR2_")","860.71223P",.OCXDATA,OCXDFI)
+200 ;;R^"860.8:",100,65
+201 ;;D^ ; ;
+202 ;;R^"860.8:",100,66
+203 ;;D^ ; Q 1
+204 ;;R^"860.8:",100,67
+205 ;;D^ ; ;
+206 ;;R^"860.8:",100,68
+207 ;;D^T+;SETAP(ROOT,DD,ITEM,ITEMNAME,DATA,DA) ; Set Rule Event data
+208 ;;R^"860.8:",100,69
+209 ;;D^T-;SETAP(ROOT,DD,DATA,DA) ; Set Rule Event data
+210 ;;R^"860.8:",100,70
+211 ;;D^ ; M @ROOT=DATA
+212 ;;R^"860.8:",100,71
+213 ;;D^ ; I +$G(DD) S @ROOT@(0)="^"_($G(DD))_"^"_($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
+214 ;;R^"860.8:",100,72
+215 ;;D^ ; I '$G(DD) S $P(@ROOT@(0),U,3,4)=($P($G(@ROOT@(0)),U,3)+1)_"^"_$G(DA)
+216 ;;R^"860.8:",100,73
+217 ;;D^T+; W:$G(OCXTRACE) !,"File Active Data ",$G(ITEM),": ",$G(ITEMNAME)
+218 ;;R^"860.8:",100,74
+219 ;;D^ ; ;
+220 ;;R^"860.8:",100,75
+221 ;;D^ ; Q
+222 ;;R^"860.8:",100,76
+223 ;;D^ ; ;
+224 ;;R^"860.8:",100,77
+225 ;;D^ ; ;
+226 ;;EOR^
+227 ;;KEY^860.8:^RETURN POINTED TO VALUE
+228 ;;R^"860.8:",.01,"E"
+229 ;;D^RETURN POINTED TO VALUE
+230 ;;R^"860.8:",.02,"E"
+231 ;;D^POINTER
+232 ;;R^"860.8:",1,1
+233 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
+234 ;1;
+235 ;