ORY00707 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1007) ;NOV 5,2010 at 13:55
;;3.0;ORDER ENTRY/RESULTS REPORTING;**1007**;Dec 17,1997;Build 3
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY007ES
;
;
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^ALLERGIES UNASSESSIBLE
;;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:^DIET ORDER
;;R^"860.3:",.01,"E"
;;D^DIET 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^FH
;;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:^ALLERGIES UNASSESSIBLE
;;R^"860.2:",.01,"E"
;;D^ALLERGIES UNASSESSIBLE
;;R^"860.2:","860.21:1",.01,"E"
;;D^ALLERGIES UNASSESSIBLE
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^ALLERGIES UNASSESSIBLE
;;R^"860.2:","860.21:2",.01,"E"
;;D^PHARMACY ORDER
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^PHARMACY ORDER
;;R^"860.2:","860.21:3",.01,"E"
;;D^DIET ORDER
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^DIET ORDER
;;R^"860.2:","860.21:4",.01,"E"
;;D^RADIOLOGY ORDER
;;R^"860.2:","860.21:4",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:4",1,"E"
;;D^RADIOLOGY ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ALLERGIES UNASSESSIBLE AND (RADIOLOGY ORDER OR PHARMACY ORDER OR DIET ORDER)
;;R^"860.2:","860.22:1",2,"E"
;;D^ALLERGIES UNASSESSIBLE
;;R^"860.2:","860.22:1",6,"E"
;;D^Patient cannot be assessed for allergies
;;R^"860.2:","860.22:1",9,"E"
;;D^Q:'$$NEWRULE(DFN,$J,39,1,999,"Patient cannot be assessed for allergies.")
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
ORY00707 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1007) ;NOV 5,2010 at 13:55
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**1007**;Dec 17,1997;Build 3
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY007ES
+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^ALLERGIES UNASSESSIBLE
+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:^DIET ORDER
+15 ;;R^"860.3:",.01,"E"
+16 ;;D^DIET 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^EQ FREE TEXT
+25 ;;R^"860.3:","860.31:1",3,"E"
+26 ;;D^FH
+27 ;;EOR^
+28 ;;KEY^860.3:^PHARMACY ORDER
+29 ;;R^"860.3:",.01,"E"
+30 ;;D^PHARMACY 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^STARTS WITH
+39 ;;R^"860.3:","860.31:1",3,"E"
+40 ;;D^PS
+41 ;;EOR^
+42 ;;KEY^860.3:^RADIOLOGY ORDER
+43 ;;R^"860.3:",.01,"E"
+44 ;;D^RADIOLOGY ORDER
+45 ;;R^"860.3:",.02,"E"
+46 ;;D^CPRS ORDER PRESCAN
+47 ;;R^"860.3:","860.31:1",.01,"E"
+48 ;;D^1
+49 ;;R^"860.3:","860.31:1",1,"E"
+50 ;;D^FILLER
+51 ;;R^"860.3:","860.31:1",2,"E"
+52 ;;D^EQ FREE TEXT
+53 ;;R^"860.3:","860.31:1",3,"E"
+54 ;;D^RA
+55 ;;EOR^
+56 ;;EOF^OCXS(860.3)^1
+57 ;;SOF^860.2 ORDER CHECK RULE
+58 ;;KEY^860.2:^ALLERGIES UNASSESSIBLE
+59 ;;R^"860.2:",.01,"E"
+60 ;;D^ALLERGIES UNASSESSIBLE
+61 ;;R^"860.2:","860.21:1",.01,"E"
+62 ;;D^ALLERGIES UNASSESSIBLE
+63 ;;R^"860.2:","860.21:1",.02,"E"
+64 ;;D^SIMPLE DEFINITION
+65 ;;R^"860.2:","860.21:1",1,"E"
+66 ;;D^ALLERGIES UNASSESSIBLE
+67 ;;R^"860.2:","860.21:2",.01,"E"
+68 ;;D^PHARMACY ORDER
+69 ;;R^"860.2:","860.21:2",.02,"E"
+70 ;;D^SIMPLE DEFINITION
+71 ;;R^"860.2:","860.21:2",1,"E"
+72 ;;D^PHARMACY ORDER
+73 ;;R^"860.2:","860.21:3",.01,"E"
+74 ;;D^DIET ORDER
+75 ;;R^"860.2:","860.21:3",.02,"E"
+76 ;;D^SIMPLE DEFINITION
+77 ;;R^"860.2:","860.21:3",1,"E"
+78 ;;D^DIET ORDER
+79 ;;R^"860.2:","860.21:4",.01,"E"
+80 ;;D^RADIOLOGY ORDER
+81 ;;R^"860.2:","860.21:4",.02,"E"
+82 ;;D^SIMPLE DEFINITION
+83 ;;R^"860.2:","860.21:4",1,"E"
+84 ;;D^RADIOLOGY ORDER
+85 ;;R^"860.2:","860.22:1",.01,"E"
+86 ;;D^1
+87 ;;R^"860.2:","860.22:1",1,"E"
+88 ;;D^ALLERGIES UNASSESSIBLE AND (RADIOLOGY ORDER OR PHARMACY ORDER OR DIET ORDER)
+89 ;;R^"860.2:","860.22:1",2,"E"
+90 ;;D^ALLERGIES UNASSESSIBLE
+91 ;;R^"860.2:","860.22:1",6,"E"
+92 ;;D^Patient cannot be assessed for allergies
+93 ;;R^"860.2:","860.22:1",9,"E"
+94 ;;D^Q:'$$NEWRULE(DFN,$J,39,1,999,"Patient cannot be assessed for allergies.")
+95 ;;EOR^
+96 ;;EOF^OCXS(860.2)^1
+97 ;1;
+98 ;