ORY12707 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*127) ;SEP 17,2002 at 13:48
;;3.0;ORDER ENTRY/RESULTS REPORTING;**127**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY127ES
;
;
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 ^ORY12708
;
Q
;
DATA ;
;
;;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:^DUPLICATE OPIOID MEDICATIONS FLAG
;;R^"860.4:",.01,"E"
;;D^DUPLICATE OPIOID MEDICATIONS FLAG
;;R^"860.4:",1,"E"
;;D^DUP OPIOIDS FLAG
;;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.DUP OPIOID MEDS
;;EOR^
;;KEY^860.4:^DUPLICATE OPIOID MEDICATIONS TEXT
;;R^"860.4:",.01,"E"
;;D^DUPLICATE OPIOID MEDICATIONS TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.DUP OPIOID MEDS TEXT
;;EOR^
;;KEY^860.4:^FILLER
;;R^"860.4:",.01,"E"
;;D^FILLER
;;R^"860.4:",1,"E"
;;D^FILL
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
;;D^PATIENT.OPS_FILLER
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
;;D^PATIENT.HL7_FILLER
;;EOR^
;;KEY^860.4:^OI NATIONAL ID
;;R^"860.4:",.01,"E"
;;D^OI NATIONAL ID
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
;;D^PATIENT.OPS_NAT_ID
;;EOR^
;;KEY^860.4:^ORDER MODE
;;R^"860.4:",.01,"E"
;;D^ORDER MODE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
;;D^PATIENT.OPS_ORD_MODE
;;EOR^
;;KEY^860.4:^PATIENT IEN
;;R^"860.4:",.01,"E"
;;D^PATIENT IEN
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
;;D^PATIENT.OERR_ORDER_PATIENT
;;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.IEN
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
;;D^HL7 PATIENT ID SEGMENT
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
;;D^PATIENT.HL7_PATIENT_ID
;;EOR^
;;KEY^860.4:^VA DRUG CLASS
;;R^"860.4:",.01,"E"
;;D^VA DRUG CLASS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.DRUG_CLASS
;;EOR^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^DUP OPIOID MEDS
;;R^"860.3:",.01,"E"
;;D^DUP OPIOID MEDS
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^DUPLICATE OPIOID MEDICATIONS FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^OPIOID MED ORDER
;;R^"860.3:",.01,"E"
;;D^OPIOID MED ORDER
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:3",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:3",3,"E"
;;D^PS
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^VA DRUG CLASS
;;R^"860.3:","860.31:4",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:4",3,"E"
;;D^OPIOID ANALGESICS,OPIOID ANTAGONIST ANALGESICS
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^OPIOID MEDICATIONS
;;R^"860.2:",.01,"E"
;;D^OPIOID MEDICATIONS
;;R^"860.2:","860.21:1",.01,"E"
;;D^OPIOID MED ORDER
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^OPIOID MED ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^DUP OPIOID MEDS
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^DUP OPIOID MEDS
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^OPIOID MED ORDER AND DUP OPIOID MEDS
;;R^"860.2:","860.22:1",2,"E"
;;D^DUPLICATE OPIOID MEDICATIONS
;1;
;
ORY12707 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*127) ;SEP 17,2002 at 13:48
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**127**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY127ES
+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 ^ORY12708
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^STRING CONTAINS ONE OF A LIST OF VALUES
+3 ;;R^"860.8:",.02,"E"
+4 ;;D^CLIST
+5 ;;R^"860.8:",100,1
+6 ;;D^ ;CLIST(DATA,LIST) ; DOES THE DATA FIELD CONTAIN AN ELEMENT IN THE LIST
+7 ;;R^"860.8:",100,2
+8 ;;D^ ; ;
+9 ;;R^"860.8:",100,3
+10 ;;D^T+; W:$G(OCXTRACE) !!,"$$CLIST(",DATA,",""",LIST,""")"
+11 ;;R^"860.8:",100,4
+12 ;;D^ ; N PC F PC=1:1:$L(LIST,","),0 I PC,$L($P(LIST,",",PC)),(DATA[$P(LIST,",",PC)) Q
+13 ;;R^"860.8:",100,5
+14 ;;D^ ; Q ''PC
+15 ;;EOR^
+16 ;;EOF^OCXS(860.8)^1
+17 ;;SOF^860.6 ORDER CHECK DATA CONTEXT
+18 ;;KEY^860.6:^CPRS ORDER PRESCAN
+19 ;;R^"860.6:",.01,"E"
+20 ;;D^CPRS ORDER PRESCAN
+21 ;;R^"860.6:",.02,"E"
+22 ;;D^OEPS
+23 ;;R^"860.6:",1,"E"
+24 ;;D^DATA DRIVEN
+25 ;;EOR^
+26 ;;KEY^860.6:^CPRS ORDER PROTOCOL
+27 ;;R^"860.6:",.01,"E"
+28 ;;D^CPRS ORDER PROTOCOL
+29 ;;R^"860.6:",.02,"E"
+30 ;;D^OERR
+31 ;;R^"860.6:",1,"E"
+32 ;;D^DATA DRIVEN
+33 ;;EOR^
+34 ;;KEY^860.6:^DATABASE LOOKUP
+35 ;;R^"860.6:",.01,"E"
+36 ;;D^DATABASE LOOKUP
+37 ;;R^"860.6:",.02,"E"
+38 ;;D^DL
+39 ;;R^"860.6:",1,"E"
+40 ;;D^PACKAGE LOOKUP
+41 ;;EOR^
+42 ;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
+43 ;;R^"860.6:",.01,"E"
+44 ;;D^GENERIC HL7 MESSAGE ARRAY
+45 ;;R^"860.6:",.02,"E"
+46 ;;D^HL7
+47 ;;R^"860.6:",1,"E"
+48 ;;D^DATA DRIVEN
+49 ;;EOR^
+50 ;;EOF^OCXS(860.6)^1
+51 ;;SOF^860.5 ORDER CHECK DATA SOURCE
+52 ;;KEY^860.5:^DATABASE LOOKUP
+53 ;;R^"860.5:",.01,"E"
+54 ;;D^DATABASE LOOKUP
+55 ;;R^"860.5:",.02,"E"
+56 ;;D^DATABASE LOOKUP
+57 ;;EOR^
+58 ;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
+59 ;;R^"860.5:",.01,"E"
+60 ;;D^HL7 COMMON ORDER SEGMENT
+61 ;;R^"860.5:",.02,"E"
+62 ;;D^GENERIC HL7 MESSAGE ARRAY
+63 ;;EOR^
+64 ;;KEY^860.5:^HL7 PATIENT ID SEGMENT
+65 ;;R^"860.5:",.01,"E"
+66 ;;D^HL7 PATIENT ID SEGMENT
+67 ;;R^"860.5:",.02,"E"
+68 ;;D^GENERIC HL7 MESSAGE ARRAY
+69 ;;EOR^
+70 ;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
+71 ;;R^"860.5:",.01,"E"
+72 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+73 ;;R^"860.5:",.02,"E"
+74 ;;D^CPRS ORDER PROTOCOL
+75 ;;EOR^
+76 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
+77 ;;R^"860.5:",.01,"E"
+78 ;;D^ORDER ENTRY ORDER PRESCAN
+79 ;;R^"860.5:",.02,"E"
+80 ;;D^CPRS ORDER PRESCAN
+81 ;;EOR^
+82 ;;EOF^OCXS(860.5)^1
+83 ;;SOF^860.4 ORDER CHECK DATA FIELD
+84 ;;KEY^860.4:^DUPLICATE OPIOID MEDICATIONS FLAG
+85 ;;R^"860.4:",.01,"E"
+86 ;;D^DUPLICATE OPIOID MEDICATIONS FLAG
+87 ;;R^"860.4:",1,"E"
+88 ;;D^DUP OPIOIDS FLAG
+89 ;;R^"860.4:",101,"E"
+90 ;;D^BOOLEAN
+91 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+92 ;;D^DATABASE LOOKUP
+93 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+94 ;;D^DATABASE LOOKUP
+95 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+96 ;;D^PATIENT.DUP OPIOID MEDS
+97 ;;EOR^
+98 ;;KEY^860.4:^DUPLICATE OPIOID MEDICATIONS TEXT
+99 ;;R^"860.4:",.01,"E"
+100 ;;D^DUPLICATE OPIOID MEDICATIONS TEXT
+101 ;;R^"860.4:",101,"E"
+102 ;;D^FREE TEXT
+103 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+104 ;;D^DATABASE LOOKUP
+105 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+106 ;;D^DATABASE LOOKUP
+107 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+108 ;;D^PATIENT.DUP OPIOID MEDS TEXT
+109 ;;EOR^
+110 ;;KEY^860.4:^FILLER
+111 ;;R^"860.4:",.01,"E"
+112 ;;D^FILLER
+113 ;;R^"860.4:",1,"E"
+114 ;;D^FILL
+115 ;;R^"860.4:",101,"E"
+116 ;;D^FREE TEXT
+117 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+118 ;;D^CPRS ORDER PRESCAN
+119 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+120 ;;D^ORDER ENTRY ORDER PRESCAN
+121 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+122 ;;D^PATIENT.OPS_FILLER
+123 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+124 ;;D^GENERIC HL7 MESSAGE ARRAY
+125 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+126 ;;D^HL7 COMMON ORDER SEGMENT
+127 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+128 ;;D^PATIENT.HL7_FILLER
+129 ;;EOR^
+130 ;;KEY^860.4:^OI NATIONAL ID
+131 ;;R^"860.4:",.01,"E"
+132 ;;D^OI NATIONAL ID
+133 ;;R^"860.4:",101,"E"
+134 ;;D^FREE TEXT
+135 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+136 ;;D^CPRS ORDER PRESCAN
+137 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+138 ;;D^ORDER ENTRY ORDER PRESCAN
+139 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+140 ;;D^PATIENT.OPS_NAT_ID
+141 ;;EOR^
+142 ;;KEY^860.4:^ORDER MODE
+143 ;;R^"860.4:",.01,"E"
+144 ;;D^ORDER MODE
+145 ;;R^"860.4:",101,"E"
+146 ;;D^FREE TEXT
+147 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+148 ;;D^CPRS ORDER PRESCAN
+149 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+150 ;;D^ORDER ENTRY ORDER PRESCAN
+151 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+152 ;;D^PATIENT.OPS_ORD_MODE
+153 ;;EOR^
+154 ;;KEY^860.4:^PATIENT IEN
+155 ;;R^"860.4:",.01,"E"
+156 ;;D^PATIENT IEN
+157 ;;R^"860.4:",101,"E"
+158 ;;D^NUMERIC
+159 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+160 ;;D^CPRS ORDER PROTOCOL
+161 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+162 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+163 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+164 ;;D^PATIENT.OERR_ORDER_PATIENT
+165 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+166 ;;D^DATABASE LOOKUP
+167 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+168 ;;D^DATABASE LOOKUP
+169 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+170 ;;D^PATIENT.IEN
+171 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+172 ;;D^GENERIC HL7 MESSAGE ARRAY
+173 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+174 ;;D^HL7 PATIENT ID SEGMENT
+175 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+176 ;;D^PATIENT.HL7_PATIENT_ID
+177 ;;EOR^
+178 ;;KEY^860.4:^VA DRUG CLASS
+179 ;;R^"860.4:",.01,"E"
+180 ;;D^VA DRUG CLASS
+181 ;;R^"860.4:",101,"E"
+182 ;;D^FREE TEXT
+183 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+184 ;;D^DATABASE LOOKUP
+185 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+186 ;;D^DATABASE LOOKUP
+187 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+188 ;;D^PATIENT.DRUG_CLASS
+189 ;;EOR^
+190 ;;EOF^OCXS(860.4)^1
+191 ;;SOF^860.3 ORDER CHECK ELEMENT
+192 ;;KEY^860.3:^DUP OPIOID MEDS
+193 ;;R^"860.3:",.01,"E"
+194 ;;D^DUP OPIOID MEDS
+195 ;;R^"860.3:",.02,"E"
+196 ;;D^DATABASE LOOKUP
+197 ;;R^"860.3:","860.31:1",.01,"E"
+198 ;;D^1
+199 ;;R^"860.3:","860.31:1",1,"E"
+200 ;;D^DUPLICATE OPIOID MEDICATIONS FLAG
+201 ;;R^"860.3:","860.31:1",2,"E"
+202 ;;D^LOGICAL TRUE
+203 ;;EOR^
+204 ;;KEY^860.3:^OPIOID MED ORDER
+205 ;;R^"860.3:",.01,"E"
+206 ;;D^OPIOID MED ORDER
+207 ;;R^"860.3:",.02,"E"
+208 ;;D^CPRS ORDER PRESCAN
+209 ;;R^"860.3:","860.31:2",.01,"E"
+210 ;;D^2
+211 ;;R^"860.3:","860.31:2",1,"E"
+212 ;;D^ORDER MODE
+213 ;;R^"860.3:","860.31:2",2,"E"
+214 ;;D^EQ FREE TEXT
+215 ;;R^"860.3:","860.31:2",3,"E"
+216 ;;D^SELECT
+217 ;;R^"860.3:","860.31:3",.01,"E"
+218 ;;D^3
+219 ;;R^"860.3:","860.31:3",1,"E"
+220 ;;D^FILLER
+221 ;;R^"860.3:","860.31:3",2,"E"
+222 ;;D^STARTS WITH
+223 ;;R^"860.3:","860.31:3",3,"E"
+224 ;;D^PS
+225 ;;R^"860.3:","860.31:4",.01,"E"
+226 ;;D^4
+227 ;;R^"860.3:","860.31:4",1,"E"
+228 ;;D^VA DRUG CLASS
+229 ;;R^"860.3:","860.31:4",2,"E"
+230 ;;D^EQUALS ELEMENT IN SET
+231 ;;R^"860.3:","860.31:4",3,"E"
+232 ;;D^OPIOID ANALGESICS,OPIOID ANTAGONIST ANALGESICS
+233 ;;EOR^
+234 ;;EOF^OCXS(860.3)^1
+235 ;;SOF^860.2 ORDER CHECK RULE
+236 ;;KEY^860.2:^OPIOID MEDICATIONS
+237 ;;R^"860.2:",.01,"E"
+238 ;;D^OPIOID MEDICATIONS
+239 ;;R^"860.2:","860.21:1",.01,"E"
+240 ;;D^OPIOID MED ORDER
+241 ;;R^"860.2:","860.21:1",.02,"E"
+242 ;;D^SIMPLE DEFINITION
+243 ;;R^"860.2:","860.21:1",1,"E"
+244 ;;D^OPIOID MED ORDER
+245 ;;R^"860.2:","860.21:2",.01,"E"
+246 ;;D^DUP OPIOID MEDS
+247 ;;R^"860.2:","860.21:2",.02,"E"
+248 ;;D^SIMPLE DEFINITION
+249 ;;R^"860.2:","860.21:2",1,"E"
+250 ;;D^DUP OPIOID MEDS
+251 ;;R^"860.2:","860.22:1",.01,"E"
+252 ;;D^1
+253 ;;R^"860.2:","860.22:1",1,"E"
+254 ;;D^OPIOID MED ORDER AND DUP OPIOID MEDS
+255 ;;R^"860.2:","860.22:1",2,"E"
+256 ;;D^DUPLICATE OPIOID MEDICATIONS
+257 ;1;
+258 ;