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