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