ORY12807 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*128) ;JAN 3,2002 at 16:11
;;3.0;ORDER ENTRY/RESULTS REPORTING;**128**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY128ES
;
;
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^ALLERGY ASSESSMENT
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL FALSE
;;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
;;EOR^
;;KEY^860.3:^PHARMACY ORDER
;;R^"860.3:",.01,"E"
;;D^PHARMACY ORDER
;;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^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:1",3,"E"
;;D^PS
;;EOR^
;;KEY^860.3:^RADIOLOGY ORDER
;;R^"860.3:",.01,"E"
;;D^RADIOLOGY ORDER
;;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^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^RA
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^NO ALLERGY ASSESSMENT
;;R^"860.2:",.01,"E"
;;D^NO ALLERGY ASSESSMENT
;;R^"860.2:","860.21:1",.01,"E"
;;D^NO ALLERGY ASSESSMENT
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^NO ALLERGY ASSESSMENT
;;R^"860.2:","860.21:3",.01,"E"
;;D^PHARMACY ORDER
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^PHARMACY ORDER
;;R^"860.2:","860.21:4",.01,"E"
;;D^DIET ORDER
;;R^"860.2:","860.21:4",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:4",1,"E"
;;D^DIET ORDER
;;R^"860.2:","860.21:5",.01,"E"
;;D^RADIOLOGY ORDER
;;R^"860.2:","860.21:5",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:5",1,"E"
;;D^RADIOLOGY ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NO ALLERGY ASSESSMENT AND (RADIOLOGY ORDER OR PHARMACY ORDER OR DIET ORDER)
;;R^"860.2:","860.22:1",2,"E"
;;D^NO ALLERGY ASSESSMENT
;;R^"860.2:","860.22:1",6,"E"
;;D^Patient has no allergy assessment.
;;R^"860.2:","860.22:1",9,"E"
;;D^Q:'$$NEWRULE(DFN,$J,39,1,999,"Patient has no allergy assessment.")
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
ORY12807 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*128) ;JAN 3,2002 at 16:11
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**128**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY128ES
+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^ALLERGY ASSESSMENT
+3 ;;R^"860.3:","860.31:1",2,"E"
+4 ;;D^LOGICAL FALSE
+5 ;;R^"860.3:","860.31:2",.01,"E"
+6 ;;D^2
+7 ;;R^"860.3:","860.31:2",1,"E"
+8 ;;D^ORDER MODE
+9 ;;R^"860.3:","860.31:2",2,"E"
+10 ;;D^EQ FREE TEXT
+11 ;;R^"860.3:","860.31:2",3,"E"
+12 ;;D^SELECT
+13 ;;EOR^
+14 ;;KEY^860.3:^PHARMACY ORDER
+15 ;;R^"860.3:",.01,"E"
+16 ;;D^PHARMACY ORDER
+17 ;;R^"860.3:",.02,"E"
+18 ;;D^CPRS ORDER PRESCAN
+19 ;;R^"860.3:","860.31:1",.01,"E"
+20 ;;D^1
+21 ;;R^"860.3:","860.31:1",1,"E"
+22 ;;D^FILLER
+23 ;;R^"860.3:","860.31:1",2,"E"
+24 ;;D^STARTS WITH
+25 ;;R^"860.3:","860.31:1",3,"E"
+26 ;;D^PS
+27 ;;EOR^
+28 ;;KEY^860.3:^RADIOLOGY ORDER
+29 ;;R^"860.3:",.01,"E"
+30 ;;D^RADIOLOGY ORDER
+31 ;;R^"860.3:",.02,"E"
+32 ;;D^CPRS ORDER PRESCAN
+33 ;;R^"860.3:","860.31:1",.01,"E"
+34 ;;D^1
+35 ;;R^"860.3:","860.31:1",1,"E"
+36 ;;D^FILLER
+37 ;;R^"860.3:","860.31:1",2,"E"
+38 ;;D^EQ FREE TEXT
+39 ;;R^"860.3:","860.31:1",3,"E"
+40 ;;D^RA
+41 ;;EOR^
+42 ;;EOF^OCXS(860.3)^1
+43 ;;SOF^860.2 ORDER CHECK RULE
+44 ;;KEY^860.2:^NO ALLERGY ASSESSMENT
+45 ;;R^"860.2:",.01,"E"
+46 ;;D^NO ALLERGY ASSESSMENT
+47 ;;R^"860.2:","860.21:1",.01,"E"
+48 ;;D^NO ALLERGY ASSESSMENT
+49 ;;R^"860.2:","860.21:1",.02,"E"
+50 ;;D^SIMPLE DEFINITION
+51 ;;R^"860.2:","860.21:1",1,"E"
+52 ;;D^NO ALLERGY ASSESSMENT
+53 ;;R^"860.2:","860.21:3",.01,"E"
+54 ;;D^PHARMACY ORDER
+55 ;;R^"860.2:","860.21:3",.02,"E"
+56 ;;D^SIMPLE DEFINITION
+57 ;;R^"860.2:","860.21:3",1,"E"
+58 ;;D^PHARMACY ORDER
+59 ;;R^"860.2:","860.21:4",.01,"E"
+60 ;;D^DIET ORDER
+61 ;;R^"860.2:","860.21:4",.02,"E"
+62 ;;D^SIMPLE DEFINITION
+63 ;;R^"860.2:","860.21:4",1,"E"
+64 ;;D^DIET ORDER
+65 ;;R^"860.2:","860.21:5",.01,"E"
+66 ;;D^RADIOLOGY ORDER
+67 ;;R^"860.2:","860.21:5",.02,"E"
+68 ;;D^SIMPLE DEFINITION
+69 ;;R^"860.2:","860.21:5",1,"E"
+70 ;;D^RADIOLOGY ORDER
+71 ;;R^"860.2:","860.22:1",.01,"E"
+72 ;;D^1
+73 ;;R^"860.2:","860.22:1",1,"E"
+74 ;;D^NO ALLERGY ASSESSMENT AND (RADIOLOGY ORDER OR PHARMACY ORDER OR DIET ORDER)
+75 ;;R^"860.2:","860.22:1",2,"E"
+76 ;;D^NO ALLERGY ASSESSMENT
+77 ;;R^"860.2:","860.22:1",6,"E"
+78 ;;D^Patient has no allergy assessment.
+79 ;;R^"860.2:","860.22:1",9,"E"
+80 ;;D^Q:'$$NEWRULE(DFN,$J,39,1,999,"Patient has no allergy assessment.")
+81 ;;EOR^
+82 ;;EOF^OCXS(860.2)^1
+83 ;1;
+84 ;