ORY2210C ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*221) ;AUG 30,2005 at 11:41
;;3.0;ORDER ENTRY/RESULTS REPORTING;**221**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY221ES
;
;
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:2",.01,"E"
;;D^PATIENT TAKING GLUCOPHAGE
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^PATIENT WITH GLUCOPHAGE MED
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^IF PROC USES NON-BARIUM MEDIA AND PATIENT TAKING GLUCOPHAGE
;;R^"860.2:","860.22:1",2,"E"
;;D^GLUCOPHAGE-CONTRAST MEDIA
;;R^"860.2:","860.22:1",6,"E"
;;D^Procedure uses intravenous contrast media and patient is taking metformin.
;;EOR^
;;KEY^860.2:^GLUCOPHAGE - LAB RESULTS
;;R^"860.2:",.01,"E"
;;D^GLUCOPHAGE - LAB RESULTS
;;R^"860.2:","860.21:1",.01,"E"
;;D^GLUCOPHAGE ORDER
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^GLUCOPHAGE ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^GLUCOPHAGE CREATININE > 1.5
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^GLUCOPHAGE CREATININE > 1.5
;;R^"860.2:","860.21:3",.01,"E"
;;D^NO GLUCOPHAGE CREATININE
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^NO GLUCOPHAGE CREATININE
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^GLUCOPHAGE ORDER AND GLUCOPHAGE CREATININE > 1.5
;;R^"860.2:","860.22:1",2,"E"
;;D^GLUCOPHAGE-LAB RESULTS
;;R^"860.2:","860.22:1",6,"E"
;;D^Metformin - Creatinine results: |RECENT GLUCOPHAGE CREATININE TEXT|
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^GLUCOPHAGE ORDER AND NO GLUCOPHAGE CREATININE
;;R^"860.2:","860.22:2",2,"E"
;;D^GLUCOPHAGE-LAB RESULTS
;;R^"860.2:","860.22:2",6,"E"
;;D^Metformin - no serum creatinine within past |RECENT GLUCOPHAGE CREATININE DAYS| days.
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
ORY2210C ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*221) ;AUG 30,2005 at 11:41
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**221**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY221ES
+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:2",.01,"E"
+3 ;;D^PATIENT TAKING GLUCOPHAGE
+4 ;;R^"860.2:","860.21:2",.02,"E"
+5 ;;D^SIMPLE DEFINITION
+6 ;;R^"860.2:","860.21:2",1,"E"
+7 ;;D^PATIENT WITH GLUCOPHAGE MED
+8 ;;R^"860.2:","860.22:1",.01,"E"
+9 ;;D^1
+10 ;;R^"860.2:","860.22:1",1,"E"
+11 ;;D^IF PROC USES NON-BARIUM MEDIA AND PATIENT TAKING GLUCOPHAGE
+12 ;;R^"860.2:","860.22:1",2,"E"
+13 ;;D^GLUCOPHAGE-CONTRAST MEDIA
+14 ;;R^"860.2:","860.22:1",6,"E"
+15 ;;D^Procedure uses intravenous contrast media and patient is taking metformin.
+16 ;;EOR^
+17 ;;KEY^860.2:^GLUCOPHAGE - LAB RESULTS
+18 ;;R^"860.2:",.01,"E"
+19 ;;D^GLUCOPHAGE - LAB RESULTS
+20 ;;R^"860.2:","860.21:1",.01,"E"
+21 ;;D^GLUCOPHAGE ORDER
+22 ;;R^"860.2:","860.21:1",.02,"E"
+23 ;;D^SIMPLE DEFINITION
+24 ;;R^"860.2:","860.21:1",1,"E"
+25 ;;D^GLUCOPHAGE ORDER
+26 ;;R^"860.2:","860.21:2",.01,"E"
+27 ;;D^GLUCOPHAGE CREATININE > 1.5
+28 ;;R^"860.2:","860.21:2",.02,"E"
+29 ;;D^SIMPLE DEFINITION
+30 ;;R^"860.2:","860.21:2",1,"E"
+31 ;;D^GLUCOPHAGE CREATININE > 1.5
+32 ;;R^"860.2:","860.21:3",.01,"E"
+33 ;;D^NO GLUCOPHAGE CREATININE
+34 ;;R^"860.2:","860.21:3",.02,"E"
+35 ;;D^SIMPLE DEFINITION
+36 ;;R^"860.2:","860.21:3",1,"E"
+37 ;;D^NO GLUCOPHAGE CREATININE
+38 ;;R^"860.2:","860.22:1",.01,"E"
+39 ;;D^1
+40 ;;R^"860.2:","860.22:1",1,"E"
+41 ;;D^GLUCOPHAGE ORDER AND GLUCOPHAGE CREATININE > 1.5
+42 ;;R^"860.2:","860.22:1",2,"E"
+43 ;;D^GLUCOPHAGE-LAB RESULTS
+44 ;;R^"860.2:","860.22:1",6,"E"
+45 ;;D^Metformin - Creatinine results: |RECENT GLUCOPHAGE CREATININE TEXT|
+46 ;;R^"860.2:","860.22:2",.01,"E"
+47 ;;D^2
+48 ;;R^"860.2:","860.22:2",1,"E"
+49 ;;D^GLUCOPHAGE ORDER AND NO GLUCOPHAGE CREATININE
+50 ;;R^"860.2:","860.22:2",2,"E"
+51 ;;D^GLUCOPHAGE-LAB RESULTS
+52 ;;R^"860.2:","860.22:2",6,"E"
+53 ;;D^Metformin - no serum creatinine within past |RECENT GLUCOPHAGE CREATININE DAYS| days.
+54 ;;EOR^
+55 ;;EOF^OCXS(860.2)^1
+56 ;1;
+57 ;