ORY30607 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*306) ;MAR 13,2012 at 13:09
;;3.0;ORDER ENTRY/RESULTS REPORTING;**306**;Dec 17,1997;Build 43
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY306ES
;
;
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 ;
;
;;EOR^
;;KEY^860.3:^HL7 PHARMACY DCED ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 PHARMACY DCED ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;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^PS
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:2",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:2",3,"E"
;;D^OC,OD
;;EOR^
;;KEY^860.3:^HL7 PHARMACY HASH MISMATCH
;;R^"860.3:",.01,"E"
;;D^HL7 PHARMACY HASH MISMATCH
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;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^PS
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CONTROL REASON
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^16
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^AUTO DCED CONTROLLED SUBSTANCE ORDERS
;;R^"860.2:",.01,"E"
;;D^AUTO DCED CONTROLLED SUBSTANCE ORDERS
;;R^"860.2:","860.21:1",.01,"E"
;;D^PHARM DCED
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 PHARMACY DCED ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^PHARM HASH MISMATCH
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^HL7 PHARMACY HASH MISMATCH
;;R^"860.2:","860.21:3",.01,"E"
;;D^DEA CERT REVOKED
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^HL7 DEA CERT REVOKED
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^PHARM DCED AND PHARM HASH MISMATCH
;;R^"860.2:","860.22:1",3,"E"
;;D^DEA AUTO DC CS MED ORDER
;;R^"860.2:","860.22:1",5,"E"
;;D^Med order(s) DCed. Resubmit or contact Pharmacy.
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^PHARM DCED AND DEA CERT REVOKED
;;R^"860.2:","860.22:2",3,"E"
;;D^DEA CERTIFICATE REVOKED
;;R^"860.2:","860.22:2",5,"E"
;;D^Med orders(s) DCed. Cert revoked. Contact Pharm.
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORY30607 2819 printed Nov 22, 2024@17:50:55 Page 2
ORY30607 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*306) ;MAR 13,2012 at 13:09
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**306**;Dec 17,1997;Build 43
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY306ES
+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 ;;EOR^
+3 ;;KEY^860.3:^HL7 PHARMACY DCED ORDER
+4 ;;R^"860.3:",.01,"E"
+5 ;;D^HL7 PHARMACY DCED ORDER
+6 ;;R^"860.3:",.02,"E"
+7 ;;D^GENERIC HL7 MESSAGE ARRAY
+8 ;;R^"860.3:","860.31:1",.01,"E"
+9 ;;D^1
+10 ;;R^"860.3:","860.31:1",1,"E"
+11 ;;D^FILLER
+12 ;;R^"860.3:","860.31:1",2,"E"
+13 ;;D^EQ FREE TEXT
+14 ;;R^"860.3:","860.31:1",3,"E"
+15 ;;D^PS
+16 ;;R^"860.3:","860.31:2",.01,"E"
+17 ;;D^2
+18 ;;R^"860.3:","860.31:2",1,"E"
+19 ;;D^CONTROL CODE
+20 ;;R^"860.3:","860.31:2",2,"E"
+21 ;;D^EQUALS ELEMENT IN SET
+22 ;;R^"860.3:","860.31:2",3,"E"
+23 ;;D^OC,OD
+24 ;;EOR^
+25 ;;KEY^860.3:^HL7 PHARMACY HASH MISMATCH
+26 ;;R^"860.3:",.01,"E"
+27 ;;D^HL7 PHARMACY HASH MISMATCH
+28 ;;R^"860.3:",.02,"E"
+29 ;;D^GENERIC HL7 MESSAGE ARRAY
+30 ;;R^"860.3:","860.31:1",.01,"E"
+31 ;;D^1
+32 ;;R^"860.3:","860.31:1",1,"E"
+33 ;;D^FILLER
+34 ;;R^"860.3:","860.31:1",2,"E"
+35 ;;D^EQ FREE TEXT
+36 ;;R^"860.3:","860.31:1",3,"E"
+37 ;;D^PS
+38 ;;R^"860.3:","860.31:2",.01,"E"
+39 ;;D^2
+40 ;;R^"860.3:","860.31:2",1,"E"
+41 ;;D^CONTROL REASON
+42 ;;R^"860.3:","860.31:2",2,"E"
+43 ;;D^CONTAINS
+44 ;;R^"860.3:","860.31:2",3,"E"
+45 ;;D^16
+46 ;;EOR^
+47 ;;EOF^OCXS(860.3)^1
+48 ;;SOF^860.2 ORDER CHECK RULE
+49 ;;KEY^860.2:^AUTO DCED CONTROLLED SUBSTANCE ORDERS
+50 ;;R^"860.2:",.01,"E"
+51 ;;D^AUTO DCED CONTROLLED SUBSTANCE ORDERS
+52 ;;R^"860.2:","860.21:1",.01,"E"
+53 ;;D^PHARM DCED
+54 ;;R^"860.2:","860.21:1",.02,"E"
+55 ;;D^SIMPLE DEFINITION
+56 ;;R^"860.2:","860.21:1",1,"E"
+57 ;;D^HL7 PHARMACY DCED ORDER
+58 ;;R^"860.2:","860.21:2",.01,"E"
+59 ;;D^PHARM HASH MISMATCH
+60 ;;R^"860.2:","860.21:2",.02,"E"
+61 ;;D^SIMPLE DEFINITION
+62 ;;R^"860.2:","860.21:2",1,"E"
+63 ;;D^HL7 PHARMACY HASH MISMATCH
+64 ;;R^"860.2:","860.21:3",.01,"E"
+65 ;;D^DEA CERT REVOKED
+66 ;;R^"860.2:","860.21:3",.02,"E"
+67 ;;D^SIMPLE DEFINITION
+68 ;;R^"860.2:","860.21:3",1,"E"
+69 ;;D^HL7 DEA CERT REVOKED
+70 ;;R^"860.2:","860.22:1",.01,"E"
+71 ;;D^1
+72 ;;R^"860.2:","860.22:1",1,"E"
+73 ;;D^PHARM DCED AND PHARM HASH MISMATCH
+74 ;;R^"860.2:","860.22:1",3,"E"
+75 ;;D^DEA AUTO DC CS MED ORDER
+76 ;;R^"860.2:","860.22:1",5,"E"
+77 ;;D^Med order(s) DCed. Resubmit or contact Pharmacy.
+78 ;;R^"860.2:","860.22:2",.01,"E"
+79 ;;D^2
+80 ;;R^"860.2:","860.22:2",1,"E"
+81 ;;D^PHARM DCED AND DEA CERT REVOKED
+82 ;;R^"860.2:","860.22:2",3,"E"
+83 ;;D^DEA CERTIFICATE REVOKED
+84 ;;R^"860.2:","860.22:2",5,"E"
+85 ;;D^Med orders(s) DCed. Cert revoked. Contact Pharm.
+86 ;;EOR^
+87 ;;EOF^OCXS(860.2)^1
+88 ;1;
+89 ;