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