ORY42307 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*423) ;JUN 29,2016 at 06:15
;;3.0;ORDER ENTRY/RESULTS REPORTING;**423**;Dec 17,1997;Build 19
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY423ES
;
;
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
;
;
;
Q
;
DATA ;
;
;;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:^CONTROL CODE
;;R^"860.4:",.01,"E"
;;D^CONTROL CODE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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_CONTROL_CODE
;;EOR^
;;KEY^860.4:^INPT/OUTPT
;;R^"860.4:",.01,"E"
;;D^INPT/OUTPT
;;R^"860.4:",1,"E"
;;D^IPT/OPT
;;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.INPT/OUTPT
;;EOR^
;;KEY^860.4:^ORDER NUMBER
;;R^"860.4:",.01,"E"
;;D^ORDER NUMBER
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;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_ORDER NUMBER
;;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 NUMBER
;;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 ORDER NUMBER
;;EOR^
;;KEY^860.4:^ORDER TYPE
;;R^"860.4:",.01,"E"
;;D^ORDER TYPE
;;R^"860.4:",1,"E"
;;D^ORDTYPE
;;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^ORDER TYPE
;;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:^SITE FLAGGED ORDER
;;R^"860.4:",.01,"E"
;;D^SITE FLAGGED ORDER
;;R^"860.4:",1,"E"
;;D^SITEORD
;;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.SITE_FLAGGED_ORDER
;;EOR^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^INPATIENT
;;R^"860.3:",.01,"E"
;;D^INPATIENT
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER TYPE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^"I"
;;EOR^
;;KEY^860.3:^NEW SITE FLAGGED ORDER
;;R^"860.3:",.01,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^SITE FLAGGED ORDER
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:2",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:2",3,"E"
;;D^NW,SN,XO
;;EOR^
;;KEY^860.3:^OUTPATIENT
;;R^"860.3:",.01,"E"
;;D^OUTPATIENT
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER TYPE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^"O"
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^SITE FLAGGED ORDER
;;R^"860.2:",.01,"E"
;;D^SITE FLAGGED ORDER
;;R^"860.2:","860.21:1",.01,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^INPATIENT
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^INPATIENT
;;R^"860.2:","860.21:3",.01,"E"
;;D^OUTPATIENT
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^OUTPATIENT
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NEW SITE FLAGGED ORDER AND INPATIENT
;;R^"860.2:","860.22:1",9,"E"
;;D^D FIREFLOI^ORB3F1(|ORDER NUMBER|,|PT LOC|,|ORDER ST D/T|,|INPT/OUTPT|)
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^NEW SITE FLAGGED ORDER AND OUTPATIENT
;;R^"860.2:","860.22:2",9,"E"
;;D^D FIREFLOI^ORB3F1(|ORDER NUMBER|,|PT LOC|,|ORDER ST D/T|,|INPT/OUTPT|)
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORY42307 6273 printed Nov 22, 2024@17:51:55 Page 2
ORY42307 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*423) ;JUN 29,2016 at 06:15
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**423**;Dec 17,1997;Build 19
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY423ES
+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 ;
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.5:",.02,"E"
+3 ;;D^CPRS ORDER PRESCAN
+4 ;;EOR^
+5 ;;EOF^OCXS(860.5)^1
+6 ;;SOF^860.4 ORDER CHECK DATA FIELD
+7 ;;KEY^860.4:^CONTROL CODE
+8 ;;R^"860.4:",.01,"E"
+9 ;;D^CONTROL CODE
+10 ;;R^"860.4:",101,"E"
+11 ;;D^FREE TEXT
+12 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+13 ;;D^GENERIC HL7 MESSAGE ARRAY
+14 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+15 ;;D^HL7 COMMON ORDER SEGMENT
+16 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+17 ;;D^PATIENT.HL7_CONTROL_CODE
+18 ;;EOR^
+19 ;;KEY^860.4:^INPT/OUTPT
+20 ;;R^"860.4:",.01,"E"
+21 ;;D^INPT/OUTPT
+22 ;;R^"860.4:",1,"E"
+23 ;;D^IPT/OPT
+24 ;;R^"860.4:",101,"E"
+25 ;;D^FREE TEXT
+26 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+27 ;;D^DATABASE LOOKUP
+28 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+29 ;;D^DATABASE LOOKUP
+30 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+31 ;;D^PATIENT.INPT/OUTPT
+32 ;;EOR^
+33 ;;KEY^860.4:^ORDER NUMBER
+34 ;;R^"860.4:",.01,"E"
+35 ;;D^ORDER NUMBER
+36 ;;R^"860.4:",101,"E"
+37 ;;D^NUMERIC
+38 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+39 ;;D^CPRS ORDER PRESCAN
+40 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+41 ;;D^ORDER ENTRY ORDER PRESCAN
+42 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+43 ;;D^PATIENT.OPS_ORDER NUMBER
+44 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+45 ;;D^CPRS ORDER PROTOCOL
+46 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+47 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+48 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+49 ;;D^PATIENT.OERR ORDER NUMBER
+50 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+51 ;;D^GENERIC HL7 MESSAGE ARRAY
+52 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+53 ;;D^HL7 COMMON ORDER SEGMENT
+54 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+55 ;;D^PATIENT.HL7 ORDER NUMBER
+56 ;;EOR^
+57 ;;KEY^860.4:^ORDER TYPE
+58 ;;R^"860.4:",.01,"E"
+59 ;;D^ORDER TYPE
+60 ;;R^"860.4:",1,"E"
+61 ;;D^ORDTYPE
+62 ;;R^"860.4:",101,"E"
+63 ;;D^FREE TEXT
+64 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+65 ;;D^DATABASE LOOKUP
+66 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+67 ;;D^DATABASE LOOKUP
+68 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+69 ;;D^ORDER TYPE
+70 ;;EOR^
+71 ;;KEY^860.4:^PATIENT IEN
+72 ;;R^"860.4:",.01,"E"
+73 ;;D^PATIENT IEN
+74 ;;R^"860.4:",101,"E"
+75 ;;D^NUMERIC
+76 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+77 ;;D^CPRS ORDER PROTOCOL
+78 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+79 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+80 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+81 ;;D^PATIENT.OERR_ORDER_PATIENT
+82 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+83 ;;D^DATABASE LOOKUP
+84 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+85 ;;D^DATABASE LOOKUP
+86 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+87 ;;D^PATIENT.IEN
+88 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+89 ;;D^GENERIC HL7 MESSAGE ARRAY
+90 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+91 ;;D^HL7 PATIENT ID SEGMENT
+92 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+93 ;;D^PATIENT.HL7_PATIENT_ID
+94 ;;EOR^
+95 ;;KEY^860.4:^SITE FLAGGED ORDER
+96 ;;R^"860.4:",.01,"E"
+97 ;;D^SITE FLAGGED ORDER
+98 ;;R^"860.4:",1,"E"
+99 ;;D^SITEORD
+100 ;;R^"860.4:",101,"E"
+101 ;;D^BOOLEAN
+102 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+103 ;;D^DATABASE LOOKUP
+104 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+105 ;;D^DATABASE LOOKUP
+106 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+107 ;;D^PATIENT.SITE_FLAGGED_ORDER
+108 ;;EOR^
+109 ;;EOF^OCXS(860.4)^1
+110 ;;SOF^860.3 ORDER CHECK ELEMENT
+111 ;;KEY^860.3:^INPATIENT
+112 ;;R^"860.3:",.01,"E"
+113 ;;D^INPATIENT
+114 ;;R^"860.3:",.02,"E"
+115 ;;D^GENERIC HL7 MESSAGE ARRAY
+116 ;;R^"860.3:","860.31:1",.01,"E"
+117 ;;D^1
+118 ;;R^"860.3:","860.31:1",1,"E"
+119 ;;D^ORDER TYPE
+120 ;;R^"860.3:","860.31:1",2,"E"
+121 ;;D^EQ FREE TEXT
+122 ;;R^"860.3:","860.31:1",3,"E"
+123 ;;D^"I"
+124 ;;EOR^
+125 ;;KEY^860.3:^NEW SITE FLAGGED ORDER
+126 ;;R^"860.3:",.01,"E"
+127 ;;D^NEW SITE FLAGGED ORDER
+128 ;;R^"860.3:",.02,"E"
+129 ;;D^GENERIC HL7 MESSAGE ARRAY
+130 ;;R^"860.3:","860.31:1",.01,"E"
+131 ;;D^1
+132 ;;R^"860.3:","860.31:1",1,"E"
+133 ;;D^SITE FLAGGED ORDER
+134 ;;R^"860.3:","860.31:1",2,"E"
+135 ;;D^LOGICAL TRUE
+136 ;;R^"860.3:","860.31:2",.01,"E"
+137 ;;D^2
+138 ;;R^"860.3:","860.31:2",1,"E"
+139 ;;D^CONTROL CODE
+140 ;;R^"860.3:","860.31:2",2,"E"
+141 ;;D^EQUALS ELEMENT IN SET
+142 ;;R^"860.3:","860.31:2",3,"E"
+143 ;;D^NW,SN,XO
+144 ;;EOR^
+145 ;;KEY^860.3:^OUTPATIENT
+146 ;;R^"860.3:",.01,"E"
+147 ;;D^OUTPATIENT
+148 ;;R^"860.3:",.02,"E"
+149 ;;D^GENERIC HL7 MESSAGE ARRAY
+150 ;;R^"860.3:","860.31:1",.01,"E"
+151 ;;D^1
+152 ;;R^"860.3:","860.31:1",1,"E"
+153 ;;D^ORDER TYPE
+154 ;;R^"860.3:","860.31:1",2,"E"
+155 ;;D^EQ FREE TEXT
+156 ;;R^"860.3:","860.31:1",3,"E"
+157 ;;D^"O"
+158 ;;EOR^
+159 ;;EOF^OCXS(860.3)^1
+160 ;;SOF^860.2 ORDER CHECK RULE
+161 ;;KEY^860.2:^SITE FLAGGED ORDER
+162 ;;R^"860.2:",.01,"E"
+163 ;;D^SITE FLAGGED ORDER
+164 ;;R^"860.2:","860.21:1",.01,"E"
+165 ;;D^NEW SITE FLAGGED ORDER
+166 ;;R^"860.2:","860.21:1",.02,"E"
+167 ;;D^SIMPLE DEFINITION
+168 ;;R^"860.2:","860.21:1",1,"E"
+169 ;;D^NEW SITE FLAGGED ORDER
+170 ;;R^"860.2:","860.21:2",.01,"E"
+171 ;;D^INPATIENT
+172 ;;R^"860.2:","860.21:2",.02,"E"
+173 ;;D^SIMPLE DEFINITION
+174 ;;R^"860.2:","860.21:2",1,"E"
+175 ;;D^INPATIENT
+176 ;;R^"860.2:","860.21:3",.01,"E"
+177 ;;D^OUTPATIENT
+178 ;;R^"860.2:","860.21:3",.02,"E"
+179 ;;D^SIMPLE DEFINITION
+180 ;;R^"860.2:","860.21:3",1,"E"
+181 ;;D^OUTPATIENT
+182 ;;R^"860.2:","860.22:1",.01,"E"
+183 ;;D^1
+184 ;;R^"860.2:","860.22:1",1,"E"
+185 ;;D^NEW SITE FLAGGED ORDER AND INPATIENT
+186 ;;R^"860.2:","860.22:1",9,"E"
+187 ;;D^D FIREFLOI^ORB3F1(|ORDER NUMBER|,|PT LOC|,|ORDER ST D/T|,|INPT/OUTPT|)
+188 ;;R^"860.2:","860.22:2",.01,"E"
+189 ;;D^2
+190 ;;R^"860.2:","860.22:2",1,"E"
+191 ;;D^NEW SITE FLAGGED ORDER AND OUTPATIENT
+192 ;;R^"860.2:","860.22:2",9,"E"
+193 ;;D^D FIREFLOI^ORB3F1(|ORDER NUMBER|,|PT LOC|,|ORDER ST D/T|,|INPT/OUTPT|)
+194 ;;EOR^
+195 ;;EOF^OCXS(860.2)^1
+196 ;1;
+197 ;