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