ORY26707 ;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
;
;
;
Q
;
DATA ;
;
;;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:^ALLERGY CONTRAST MEDIA LOCATION
;;R^"860.4:",.01,"E"
;;D^ALLERGY CONTRAST MEDIA LOCATION
;;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.CON_MEDIA_LOCATION
;;EOR^
;;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"
;;D^CMC
;;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.CONTR_MED_CODE
;;EOR^
;;KEY^860.4:^CONTRAST MEDIA CODE TRANSLATION
;;R^"860.4:",.01,"E"
;;D^CONTRAST MEDIA CODE TRANSLATION
;;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.CON_MEDIA_TRANS
;;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:^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:^ORDERABLE ITEM IEN
;;R^"860.4:",.01,"E"
;;D^ORDERABLE ITEM IEN
;;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.ORDER_ITEM_IEN
;;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^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^CONTRAST MEDIA ALLERGY
;;R^"860.3:",.01,"E"
;;D^CONTRAST MEDIA ALLERGY
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^RA
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTRAST MEDIA CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^M,I,N,L,C,G,B
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CONTRAST MEDIA ALLERGY FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^ALLERGY - CONTRAST MEDIA REACTION
;;R^"860.2:",.01,"E"
;;D^ALLERGY - CONTRAST MEDIA REACTION
;;R^"860.2:","860.21:1",.01,"E"
;;D^ALLERGY
;;R^"860.2:","860.21:1",1,"E"
;;D^CONTRAST MEDIA ALLERGY
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ALLERGY
;;R^"860.2:","860.22:1",2,"E"
;;D^ALLERGY-CONTRAST MEDIA INTERACTION
;;R^"860.2:","860.22:1",6,"E"
;;D^Patient allergic to contrast media. (|ALLERGY CONTRAST MEDIA LOCATION|) This procedure uses: |CONTRAST MEDIA CODE TRANSLATION|
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORY26707 6217 printed Oct 16, 2024@18:40:40 Page 2
ORY26707 ;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 ;
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^CPRS ORDER PROTOCOL
+3 ;;EOR^
+4 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
+5 ;;R^"860.5:",.01,"E"
+6 ;;D^ORDER ENTRY ORDER PRESCAN
+7 ;;R^"860.5:",.02,"E"
+8 ;;D^CPRS ORDER PRESCAN
+9 ;;EOR^
+10 ;;EOF^OCXS(860.5)^1
+11 ;;SOF^860.4 ORDER CHECK DATA FIELD
+12 ;;KEY^860.4:^ALLERGY CONTRAST MEDIA LOCATION
+13 ;;R^"860.4:",.01,"E"
+14 ;;D^ALLERGY CONTRAST MEDIA LOCATION
+15 ;;R^"860.4:",101,"E"
+16 ;;D^FREE TEXT
+17 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+18 ;;D^DATABASE LOOKUP
+19 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+20 ;;D^DATABASE LOOKUP
+21 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+22 ;;D^PATIENT.CON_MEDIA_LOCATION
+23 ;;EOR^
+24 ;;KEY^860.4:^CONTRAST MEDIA ALLERGY FLAG
+25 ;;R^"860.4:",.01,"E"
+26 ;;D^CONTRAST MEDIA ALLERGY FLAG
+27 ;;R^"860.4:",1,"E"
+28 ;;D^ConMedAlgyFlag
+29 ;;R^"860.4:",101,"E"
+30 ;;D^BOOLEAN
+31 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+32 ;;D^DATABASE LOOKUP
+33 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+34 ;;D^DATABASE LOOKUP
+35 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+36 ;;D^PATIENT.CONT_MED_ALGY
+37 ;;EOR^
+38 ;;KEY^860.4:^CONTRAST MEDIA CODE
+39 ;;R^"860.4:",.01,"E"
+40 ;;D^CONTRAST MEDIA CODE
+41 ;;R^"860.4:",1,"E"
+42 ;;D^CMC
+43 ;;R^"860.4:",101,"E"
+44 ;;D^FREE TEXT
+45 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+46 ;;D^DATABASE LOOKUP
+47 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+48 ;;D^DATABASE LOOKUP
+49 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+50 ;;D^PATIENT.CONTR_MED_CODE
+51 ;;EOR^
+52 ;;KEY^860.4:^CONTRAST MEDIA CODE TRANSLATION
+53 ;;R^"860.4:",.01,"E"
+54 ;;D^CONTRAST MEDIA CODE TRANSLATION
+55 ;;R^"860.4:",101,"E"
+56 ;;D^FREE TEXT
+57 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+58 ;;D^DATABASE LOOKUP
+59 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+60 ;;D^DATABASE LOOKUP
+61 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+62 ;;D^PATIENT.CON_MEDIA_TRANS
+63 ;;EOR^
+64 ;;KEY^860.4:^FILLER
+65 ;;R^"860.4:",.01,"E"
+66 ;;D^FILLER
+67 ;;R^"860.4:",1,"E"
+68 ;;D^FILL
+69 ;;R^"860.4:",101,"E"
+70 ;;D^FREE TEXT
+71 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+72 ;;D^CPRS ORDER PRESCAN
+73 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+74 ;;D^ORDER ENTRY ORDER PRESCAN
+75 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+76 ;;D^PATIENT.OPS_FILLER
+77 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+78 ;;D^GENERIC HL7 MESSAGE ARRAY
+79 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+80 ;;D^HL7 COMMON ORDER SEGMENT
+81 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+82 ;;D^PATIENT.HL7_FILLER
+83 ;;EOR^
+84 ;;KEY^860.4:^ORDER MODE
+85 ;;R^"860.4:",.01,"E"
+86 ;;D^ORDER MODE
+87 ;;R^"860.4:",101,"E"
+88 ;;D^FREE TEXT
+89 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+90 ;;D^CPRS ORDER PRESCAN
+91 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+92 ;;D^ORDER ENTRY ORDER PRESCAN
+93 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+94 ;;D^PATIENT.OPS_ORD_MODE
+95 ;;EOR^
+96 ;;KEY^860.4:^ORDERABLE ITEM IEN
+97 ;;R^"860.4:",.01,"E"
+98 ;;D^ORDERABLE ITEM IEN
+99 ;;R^"860.4:",101,"E"
+100 ;;D^NUMERIC
+101 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+102 ;;D^CPRS ORDER PRESCAN
+103 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+104 ;;D^ORDER ENTRY ORDER PRESCAN
+105 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+106 ;;D^PATIENT.ORDER_ITEM_IEN
+107 ;;EOR^
+108 ;;KEY^860.4:^PATIENT IEN
+109 ;;R^"860.4:",.01,"E"
+110 ;;D^PATIENT IEN
+111 ;;R^"860.4:",101,"E"
+112 ;;D^NUMERIC
+113 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+114 ;;D^CPRS ORDER PROTOCOL
+115 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+116 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+117 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+118 ;;D^PATIENT.OERR_ORDER_PATIENT
+119 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+120 ;;D^DATABASE LOOKUP
+121 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+122 ;;D^DATABASE LOOKUP
+123 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+124 ;;D^PATIENT.IEN
+125 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+126 ;;D^GENERIC HL7 MESSAGE ARRAY
+127 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+128 ;;D^HL7 PATIENT ID SEGMENT
+129 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+130 ;;D^PATIENT.HL7_PATIENT_ID
+131 ;;EOR^
+132 ;;EOF^OCXS(860.4)^1
+133 ;;SOF^860.3 ORDER CHECK ELEMENT
+134 ;;KEY^860.3:^CONTRAST MEDIA ALLERGY
+135 ;;R^"860.3:",.01,"E"
+136 ;;D^CONTRAST MEDIA ALLERGY
+137 ;;R^"860.3:",.02,"E"
+138 ;;D^CPRS ORDER PRESCAN
+139 ;;R^"860.3:","860.31:1",.01,"E"
+140 ;;D^1
+141 ;;R^"860.3:","860.31:1",1,"E"
+142 ;;D^ORDER MODE
+143 ;;R^"860.3:","860.31:1",2,"E"
+144 ;;D^EQ FREE TEXT
+145 ;;R^"860.3:","860.31:1",3,"E"
+146 ;;D^SELECT
+147 ;;R^"860.3:","860.31:2",.01,"E"
+148 ;;D^2
+149 ;;R^"860.3:","860.31:2",1,"E"
+150 ;;D^FILLER
+151 ;;R^"860.3:","860.31:2",2,"E"
+152 ;;D^EQ FREE TEXT
+153 ;;R^"860.3:","860.31:2",3,"E"
+154 ;;D^RA
+155 ;;R^"860.3:","860.31:3",.01,"E"
+156 ;;D^3
+157 ;;R^"860.3:","860.31:3",1,"E"
+158 ;;D^CONTRAST MEDIA CODE
+159 ;;R^"860.3:","860.31:3",2,"E"
+160 ;;D^CONTAINS ELEMENT IN SET
+161 ;;R^"860.3:","860.31:3",3,"E"
+162 ;;D^M,I,N,L,C,G,B
+163 ;;R^"860.3:","860.31:4",.01,"E"
+164 ;;D^4
+165 ;;R^"860.3:","860.31:4",1,"E"
+166 ;;D^CONTRAST MEDIA ALLERGY FLAG
+167 ;;R^"860.3:","860.31:4",2,"E"
+168 ;;D^LOGICAL TRUE
+169 ;;EOR^
+170 ;;EOF^OCXS(860.3)^1
+171 ;;SOF^860.2 ORDER CHECK RULE
+172 ;;KEY^860.2:^ALLERGY - CONTRAST MEDIA REACTION
+173 ;;R^"860.2:",.01,"E"
+174 ;;D^ALLERGY - CONTRAST MEDIA REACTION
+175 ;;R^"860.2:","860.21:1",.01,"E"
+176 ;;D^ALLERGY
+177 ;;R^"860.2:","860.21:1",1,"E"
+178 ;;D^CONTRAST MEDIA ALLERGY
+179 ;;R^"860.2:","860.22:1",.01,"E"
+180 ;;D^1
+181 ;;R^"860.2:","860.22:1",1,"E"
+182 ;;D^ALLERGY
+183 ;;R^"860.2:","860.22:1",2,"E"
+184 ;;D^ALLERGY-CONTRAST MEDIA INTERACTION
+185 ;;R^"860.2:","860.22:1",6,"E"
+186 ;;D^Patient allergic to contrast media. (|ALLERGY CONTRAST MEDIA LOCATION|) This procedure uses: |CONTRAST MEDIA CODE TRANSLATION|
+187 ;;EOR^
+188 ;;EOF^OCXS(860.2)^1
+189 ;1;
+190 ;