OCXRU00E ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;MAY 9,2000 at 13:44
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,74**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXRULE
;
;
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.2:","860.21:1",1,"E"
;;D^INPATIENT FOOD-DRUG REACTION
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^INPATIENT FOOD DRUG REACTION
;;R^"860.2:","860.22:1",3,"E"
;;D^FOOD/DRUG INTERACTION
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] |PHARMACY LOCAL ORDERABLE ITEM TEXT| ordered - adjust diet accordingly.
;;EOR^
;;KEY^860.2:^NEW ORDER PLACED
;;R^"860.2:",.01,"E"
;;D^NEW ORDER PLACED
;;R^"860.2:","860.21:1",.01,"E"
;;D^NEW
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 NEW OERR ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^DCED
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^HL7 DCED OERR ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NEW
;;R^"860.2:","860.22:1",3,"E"
;;D^NEW ORDER
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] New order(s) placed.
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^DCED
;;R^"860.2:","860.22:2",3,"E"
;;D^DC ORDER
;;R^"860.2:","860.22:2",5,"E"
;;D^[|PT LOC|] New DC order(s) placed.
;;EOR^
;;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",3,"E"
;;D^FLAGGED OI ORDER - INPT
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] Order placed: |OI NAME| |ORDER ST D/T|.
;;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",3,"E"
;;D^FLAGGED OI ORDER - OUTPT
;;R^"860.2:","860.22:2",5,"E"
;;D^[|PT LOC|] Order placed: |OI NAME| |ORDER ST D/T|.
;;EOR^
;;KEY^860.2:^SITE FLAGGED RESULT
;;R^"860.2:",.01,"E"
;;D^SITE FLAGGED RESULT
;;R^"860.2:","860.21:1",.01,"E"
;;D^SITE FLAGGED LAB RESULT
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^SITE FLAGGED FINAL LAB RESULT
;;R^"860.2:","860.21:2",.01,"E"
;;D^SITE FLAGGED IMAGING RESULT
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^SITE FLAGGED FINAL IMAGING RESULT
;;R^"860.2:","860.21:3",.01,"E"
;;D^SITE FLAGGED CONSULT RESULT
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^SITE FLAGGED FINAL CONSULT RESULT
;;R^"860.2:","860.21:4",.01,"E"
;;D^INPATIENT
;;R^"860.2:","860.21:4",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:4",1,"E"
;;D^INPATIENT
;;R^"860.2:","860.21:5",.01,"E"
;;D^OUTPATIENT
;;R^"860.2:","860.21:5",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:5",1,"E"
;;D^OUTPATIENT
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^INPATIENT AND (SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT)
;;R^"860.2:","860.22:1",3,"E"
;;D^FLAGGED OI RESULTS - INPT
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] Result available: |OI NAME| |ORDER ST D/T|
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^OUTPATIENT AND (SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT)
;;R^"860.2:","860.22:2",3,"E"
;;D^FLAGGED OI RESULTS - OUTPT
;;R^"860.2:","860.22:2",5,"E"
;;D^[|PT LOC|] Result available: |OI NAME| |ORDER ST D/T|
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
OCXRU00E ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;MAY 9,2000 at 13:44
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,74**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXRULE
+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.2:","860.21:1",1,"E"
+3 ;;D^INPATIENT FOOD-DRUG REACTION
+4 ;;R^"860.2:","860.22:1",.01,"E"
+5 ;;D^1
+6 ;;R^"860.2:","860.22:1",1,"E"
+7 ;;D^INPATIENT FOOD DRUG REACTION
+8 ;;R^"860.2:","860.22:1",3,"E"
+9 ;;D^FOOD/DRUG INTERACTION
+10 ;;R^"860.2:","860.22:1",5,"E"
+11 ;;D^[|PT LOC|] |PHARMACY LOCAL ORDERABLE ITEM TEXT| ordered - adjust diet accordingly.
+12 ;;EOR^
+13 ;;KEY^860.2:^NEW ORDER PLACED
+14 ;;R^"860.2:",.01,"E"
+15 ;;D^NEW ORDER PLACED
+16 ;;R^"860.2:","860.21:1",.01,"E"
+17 ;;D^NEW
+18 ;;R^"860.2:","860.21:1",1,"E"
+19 ;;D^HL7 NEW OERR ORDER
+20 ;;R^"860.2:","860.21:2",.01,"E"
+21 ;;D^DCED
+22 ;;R^"860.2:","860.21:2",.02,"E"
+23 ;;D^SIMPLE DEFINITION
+24 ;;R^"860.2:","860.21:2",1,"E"
+25 ;;D^HL7 DCED OERR ORDER
+26 ;;R^"860.2:","860.22:1",.01,"E"
+27 ;;D^1
+28 ;;R^"860.2:","860.22:1",1,"E"
+29 ;;D^NEW
+30 ;;R^"860.2:","860.22:1",3,"E"
+31 ;;D^NEW ORDER
+32 ;;R^"860.2:","860.22:1",5,"E"
+33 ;;D^[|PT LOC|] New order(s) placed.
+34 ;;R^"860.2:","860.22:2",.01,"E"
+35 ;;D^2
+36 ;;R^"860.2:","860.22:2",1,"E"
+37 ;;D^DCED
+38 ;;R^"860.2:","860.22:2",3,"E"
+39 ;;D^DC ORDER
+40 ;;R^"860.2:","860.22:2",5,"E"
+41 ;;D^[|PT LOC|] New DC order(s) placed.
+42 ;;EOR^
+43 ;;KEY^860.2:^SITE FLAGGED ORDER
+44 ;;R^"860.2:",.01,"E"
+45 ;;D^SITE FLAGGED ORDER
+46 ;;R^"860.2:","860.21:1",.01,"E"
+47 ;;D^NEW SITE FLAGGED ORDER
+48 ;;R^"860.2:","860.21:1",.02,"E"
+49 ;;D^SIMPLE DEFINITION
+50 ;;R^"860.2:","860.21:1",1,"E"
+51 ;;D^NEW SITE FLAGGED ORDER
+52 ;;R^"860.2:","860.21:2",.01,"E"
+53 ;;D^INPATIENT
+54 ;;R^"860.2:","860.21:2",.02,"E"
+55 ;;D^SIMPLE DEFINITION
+56 ;;R^"860.2:","860.21:2",1,"E"
+57 ;;D^INPATIENT
+58 ;;R^"860.2:","860.21:3",.01,"E"
+59 ;;D^OUTPATIENT
+60 ;;R^"860.2:","860.21:3",.02,"E"
+61 ;;D^SIMPLE DEFINITION
+62 ;;R^"860.2:","860.21:3",1,"E"
+63 ;;D^OUTPATIENT
+64 ;;R^"860.2:","860.22:1",.01,"E"
+65 ;;D^1
+66 ;;R^"860.2:","860.22:1",1,"E"
+67 ;;D^NEW SITE FLAGGED ORDER AND INPATIENT
+68 ;;R^"860.2:","860.22:1",3,"E"
+69 ;;D^FLAGGED OI ORDER - INPT
+70 ;;R^"860.2:","860.22:1",5,"E"
+71 ;;D^[|PT LOC|] Order placed: |OI NAME| |ORDER ST D/T|.
+72 ;;R^"860.2:","860.22:2",.01,"E"
+73 ;;D^2
+74 ;;R^"860.2:","860.22:2",1,"E"
+75 ;;D^NEW SITE FLAGGED ORDER AND OUTPATIENT
+76 ;;R^"860.2:","860.22:2",3,"E"
+77 ;;D^FLAGGED OI ORDER - OUTPT
+78 ;;R^"860.2:","860.22:2",5,"E"
+79 ;;D^[|PT LOC|] Order placed: |OI NAME| |ORDER ST D/T|.
+80 ;;EOR^
+81 ;;KEY^860.2:^SITE FLAGGED RESULT
+82 ;;R^"860.2:",.01,"E"
+83 ;;D^SITE FLAGGED RESULT
+84 ;;R^"860.2:","860.21:1",.01,"E"
+85 ;;D^SITE FLAGGED LAB RESULT
+86 ;;R^"860.2:","860.21:1",.02,"E"
+87 ;;D^SIMPLE DEFINITION
+88 ;;R^"860.2:","860.21:1",1,"E"
+89 ;;D^SITE FLAGGED FINAL LAB RESULT
+90 ;;R^"860.2:","860.21:2",.01,"E"
+91 ;;D^SITE FLAGGED IMAGING RESULT
+92 ;;R^"860.2:","860.21:2",.02,"E"
+93 ;;D^SIMPLE DEFINITION
+94 ;;R^"860.2:","860.21:2",1,"E"
+95 ;;D^SITE FLAGGED FINAL IMAGING RESULT
+96 ;;R^"860.2:","860.21:3",.01,"E"
+97 ;;D^SITE FLAGGED CONSULT RESULT
+98 ;;R^"860.2:","860.21:3",.02,"E"
+99 ;;D^SIMPLE DEFINITION
+100 ;;R^"860.2:","860.21:3",1,"E"
+101 ;;D^SITE FLAGGED FINAL CONSULT RESULT
+102 ;;R^"860.2:","860.21:4",.01,"E"
+103 ;;D^INPATIENT
+104 ;;R^"860.2:","860.21:4",.02,"E"
+105 ;;D^SIMPLE DEFINITION
+106 ;;R^"860.2:","860.21:4",1,"E"
+107 ;;D^INPATIENT
+108 ;;R^"860.2:","860.21:5",.01,"E"
+109 ;;D^OUTPATIENT
+110 ;;R^"860.2:","860.21:5",.02,"E"
+111 ;;D^SIMPLE DEFINITION
+112 ;;R^"860.2:","860.21:5",1,"E"
+113 ;;D^OUTPATIENT
+114 ;;R^"860.2:","860.22:1",.01,"E"
+115 ;;D^1
+116 ;;R^"860.2:","860.22:1",1,"E"
+117 ;;D^INPATIENT AND (SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT)
+118 ;;R^"860.2:","860.22:1",3,"E"
+119 ;;D^FLAGGED OI RESULTS - INPT
+120 ;;R^"860.2:","860.22:1",5,"E"
+121 ;;D^[|PT LOC|] Result available: |OI NAME| |ORDER ST D/T|
+122 ;;R^"860.2:","860.22:2",.01,"E"
+123 ;;D^2
+124 ;;R^"860.2:","860.22:2",1,"E"
+125 ;;D^OUTPATIENT AND (SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT)
+126 ;;R^"860.2:","860.22:2",3,"E"
+127 ;;D^FLAGGED OI RESULTS - OUTPT
+128 ;;R^"860.2:","860.22:2",5,"E"
+129 ;;D^[|PT LOC|] Result available: |OI NAME| |ORDER ST D/T|
+130 ;;EOR^
+131 ;;EOF^OCXS(860.2)^1
+132 ;1;
+133 ;