ORY1050C ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY105ES
;
;
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",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^CONTRAST MEDIA ORDER
;;R^"860.2:","860.21:2",.01,"E"
;;D^ABNORMAL RENAL RESULTS
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^ABNORMAL RENAL RESULTS
;;R^"860.2:","860.21:3",.01,"E"
;;D^NO CREAT RESULTS W/IN X DAYS
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^NO CREAT RESULTS W/IN X DAYS
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^CONTRAST MEDIA ORDER AND ABNORMAL RENAL RESULTS
;;R^"860.2:","860.22:1",2,"E"
;;D^BIOCHEM ABNORMALITY FOR CONTRAST MEDIA
;;R^"860.2:","860.22:1",6,"E"
;;D^Procedure uses non-barium contrast media - abnormal biochem result: |ABNORMAL RENAL BIOCHEM RESULTS|
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^CONTRAST MEDIA ORDER AND NO CREAT RESULTS W/IN X DAYS
;;R^"860.2:","860.22:2",2,"E"
;;D^BIOCHEM ABNORMALITY FOR CONTRAST MEDIA
;;R^"860.2:","860.22:2",6,"E"
;;D^Procedure uses non-barium contrast media - no creatinine results within |CM-CREAT DAYS| days
;;EOR^
;;KEY^860.2:^LAB THRESHOLD
;;R^"860.2:",.01,"E"
;;D^LAB THRESHOLD
;;R^"860.2:","860.21:1",.01,"E"
;;D^HL7 LAB RESULTS
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 FINAL LAB RESULT
;;R^"860.2:","860.21:2",.01,"E"
;;D^GREATER THAN THRESHOLD VALUE
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^GREATER THAN LAB THRESHOLD
;;R^"860.2:","860.21:3",.01,"E"
;;D^LESS THAN THRESHOLD VALUE
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^LESS THAN LAB THRESHOLD
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^IF HL7 LAB RESULTS AND (GREATER THAN THRESHOLD VALUE OR LESS THAN THRESHOLD VALUE)
;;R^"860.2:","860.22:1",3,"E"
;;D^LAB THRESHOLD EXCEEDED
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] Lab threshold exceeded - [|OI NAME|]
;;R^"860.2:","860.22:1",9,"E"
;;D^S OCXTMP=$$LABTHRSR(.OCXDUZ,|LAB TEST ID|,|LAB SPEC ID|,|LAB RESULT|,|PATIENT IEN|)
;;EOR^
;;KEY^860.2:^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.2:",.01,"E"
;;D^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.2:","860.21:2",.01,"E"
;;D^ORDER FLAGGED
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^ORDER FLAGGED
;;R^"860.2:","860.21:3",.01,"E"
;;D^ORDER UNFLAGGED
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^ORDER UNFLAGGED
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ORDER FLAGGED
;;R^"860.2:","860.22:1",3,"E"
;;D^FLAG ORDER FOR CLARIFICATION
;;R^"860.2:","860.22:1",5,"E"
;;D^Order(s) needing clarification: Flagged |CURRENT DATE/TIME|.
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^ORDER UNFLAGGED
;;R^"860.2:","860.22:2",9,"E"
;;D^D UNFLAG^ORB3FUP1(|PATIENT IEN|)
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
ORY1050C ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY105ES
+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",.02,"E"
+3 ;;D^SIMPLE DEFINITION
+4 ;;R^"860.2:","860.21:1",1,"E"
+5 ;;D^CONTRAST MEDIA ORDER
+6 ;;R^"860.2:","860.21:2",.01,"E"
+7 ;;D^ABNORMAL RENAL RESULTS
+8 ;;R^"860.2:","860.21:2",.02,"E"
+9 ;;D^SIMPLE DEFINITION
+10 ;;R^"860.2:","860.21:2",1,"E"
+11 ;;D^ABNORMAL RENAL RESULTS
+12 ;;R^"860.2:","860.21:3",.01,"E"
+13 ;;D^NO CREAT RESULTS W/IN X DAYS
+14 ;;R^"860.2:","860.21:3",.02,"E"
+15 ;;D^SIMPLE DEFINITION
+16 ;;R^"860.2:","860.21:3",1,"E"
+17 ;;D^NO CREAT RESULTS W/IN X DAYS
+18 ;;R^"860.2:","860.22:1",.01,"E"
+19 ;;D^1
+20 ;;R^"860.2:","860.22:1",1,"E"
+21 ;;D^CONTRAST MEDIA ORDER AND ABNORMAL RENAL RESULTS
+22 ;;R^"860.2:","860.22:1",2,"E"
+23 ;;D^BIOCHEM ABNORMALITY FOR CONTRAST MEDIA
+24 ;;R^"860.2:","860.22:1",6,"E"
+25 ;;D^Procedure uses non-barium contrast media - abnormal biochem result: |ABNORMAL RENAL BIOCHEM RESULTS|
+26 ;;R^"860.2:","860.22:2",.01,"E"
+27 ;;D^2
+28 ;;R^"860.2:","860.22:2",1,"E"
+29 ;;D^CONTRAST MEDIA ORDER AND NO CREAT RESULTS W/IN X DAYS
+30 ;;R^"860.2:","860.22:2",2,"E"
+31 ;;D^BIOCHEM ABNORMALITY FOR CONTRAST MEDIA
+32 ;;R^"860.2:","860.22:2",6,"E"
+33 ;;D^Procedure uses non-barium contrast media - no creatinine results within |CM-CREAT DAYS| days
+34 ;;EOR^
+35 ;;KEY^860.2:^LAB THRESHOLD
+36 ;;R^"860.2:",.01,"E"
+37 ;;D^LAB THRESHOLD
+38 ;;R^"860.2:","860.21:1",.01,"E"
+39 ;;D^HL7 LAB RESULTS
+40 ;;R^"860.2:","860.21:1",.02,"E"
+41 ;;D^SIMPLE DEFINITION
+42 ;;R^"860.2:","860.21:1",1,"E"
+43 ;;D^HL7 FINAL LAB RESULT
+44 ;;R^"860.2:","860.21:2",.01,"E"
+45 ;;D^GREATER THAN THRESHOLD VALUE
+46 ;;R^"860.2:","860.21:2",.02,"E"
+47 ;;D^SIMPLE DEFINITION
+48 ;;R^"860.2:","860.21:2",1,"E"
+49 ;;D^GREATER THAN LAB THRESHOLD
+50 ;;R^"860.2:","860.21:3",.01,"E"
+51 ;;D^LESS THAN THRESHOLD VALUE
+52 ;;R^"860.2:","860.21:3",.02,"E"
+53 ;;D^SIMPLE DEFINITION
+54 ;;R^"860.2:","860.21:3",1,"E"
+55 ;;D^LESS THAN LAB THRESHOLD
+56 ;;R^"860.2:","860.22:1",.01,"E"
+57 ;;D^1
+58 ;;R^"860.2:","860.22:1",1,"E"
+59 ;;D^IF HL7 LAB RESULTS AND (GREATER THAN THRESHOLD VALUE OR LESS THAN THRESHOLD VALUE)
+60 ;;R^"860.2:","860.22:1",3,"E"
+61 ;;D^LAB THRESHOLD EXCEEDED
+62 ;;R^"860.2:","860.22:1",5,"E"
+63 ;;D^[|PT LOC|] Lab threshold exceeded - [|OI NAME|]
+64 ;;R^"860.2:","860.22:1",9,"E"
+65 ;;D^S OCXTMP=$$LABTHRSR(.OCXDUZ,|LAB TEST ID|,|LAB SPEC ID|,|LAB RESULT|,|PATIENT IEN|)
+66 ;;EOR^
+67 ;;KEY^860.2:^ORDER FLAGGED FOR CLARIFICATION
+68 ;;R^"860.2:",.01,"E"
+69 ;;D^ORDER FLAGGED FOR CLARIFICATION
+70 ;;R^"860.2:","860.21:2",.01,"E"
+71 ;;D^ORDER FLAGGED
+72 ;;R^"860.2:","860.21:2",.02,"E"
+73 ;;D^SIMPLE DEFINITION
+74 ;;R^"860.2:","860.21:2",1,"E"
+75 ;;D^ORDER FLAGGED
+76 ;;R^"860.2:","860.21:3",.01,"E"
+77 ;;D^ORDER UNFLAGGED
+78 ;;R^"860.2:","860.21:3",.02,"E"
+79 ;;D^SIMPLE DEFINITION
+80 ;;R^"860.2:","860.21:3",1,"E"
+81 ;;D^ORDER UNFLAGGED
+82 ;;R^"860.2:","860.22:1",.01,"E"
+83 ;;D^1
+84 ;;R^"860.2:","860.22:1",1,"E"
+85 ;;D^ORDER FLAGGED
+86 ;;R^"860.2:","860.22:1",3,"E"
+87 ;;D^FLAG ORDER FOR CLARIFICATION
+88 ;;R^"860.2:","860.22:1",5,"E"
+89 ;;D^Order(s) needing clarification: Flagged |CURRENT DATE/TIME|.
+90 ;;R^"860.2:","860.22:2",.01,"E"
+91 ;;D^2
+92 ;;R^"860.2:","860.22:2",1,"E"
+93 ;;D^ORDER UNFLAGGED
+94 ;;R^"860.2:","860.22:2",9,"E"
+95 ;;D^D UNFLAG^ORB3FUP1(|PATIENT IEN|)
+96 ;;EOR^
+97 ;;EOF^OCXS(860.2)^1
+98 ;1;
+99 ;