OCXDI039 ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXDIAG
;
;
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("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
;
G ^OCXDI03A
;
Q
;
DATA ;
;
;;D^ABNORMAL LAB RESULT (INFO)
;;R^"860.2:","860.22:2",5,"E"
;;D^Abnormal lab: |LAB TEST PRINT NAME| |LAB RESULT| |LAB COLLECTION D/T|
;;EOR^
;;KEY^860.2:^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.2:",.01,"E"
;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.2:","860.21:1",.01,"E"
;;D^ELECTRONIC SIGNATURE
;;R^"860.2:","860.21:1",1,"E"
;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ELECTRONIC SIGNATURE
;;R^"860.2:","860.22:1",3,"E"
;;D^ORDER REQUIRES ELEC SIGNATURE
;;R^"860.2:","860.22:1",5,"E"
;;D^Order requires electronic signature.
;;EOR^
;;KEY^860.2:^SITE FLAGGED ORDER
;;R^"860.2:",.01,"E"
;;D^SITE FLAGGED ORDER
;;R^"860.2:","860.21:1",.01,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NEW SITE FLAGGED ORDER
;;R^"860.2:","860.22:1",3,"E"
;;D^SITE-FLAGGED ORDER
;;R^"860.2:","860.22:1",5,"E"
;;D^Site-flagged order placed: |ORDERABLE ITEM NAME| |ORDER ST D/T|
;;EOR^
;;KEY^860.2:^SITE FLAGGED RESULT
;;R^"860.2:",.01,"E"
;;D^SITE FLAGGED RESULT
;;R^"860.2:","860.21:1",.01,"E"
;;D^SITE FLAGGED LAB RESULT
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^SITE FLAGGED FINAL LAB RESULT
;;R^"860.2:","860.21:2",.01,"E"
;;D^SITE FLAGGED IMAGING RESULT
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^SITE FLAGGED FINAL IMAGING RESULT
;;R^"860.2:","860.21:3",.01,"E"
;;D^SITE FLAGGED CONSULT RESULT
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^SITE FLAGGED FINAL CONSULT RESULT
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT
;;R^"860.2:","860.22:1",3,"E"
;;D^SITE-FLAGGED RESULTS
;;R^"860.2:","860.22:1",5,"E"
;;D^Site-flagged result available: |ORDERABLE ITEM NAME| |ORDER ST D/T|
;;EOR^
;;KEY^860.2:^BIOCHEM ABNORMALITIES/CONTRAST MEDIA CHECK
;;R^"860.2:",.01,"E"
;;D^BIOCHEM ABNORMALITIES/CONTRAST MEDIA CHECK
;;R^"860.2:","860.21:1",.01,"E"
;;D^RENAL-CONTR MED COMP
;;R^"860.2:","860.21:1",1,"E"
;;D^RENAL/CONTRAST MEDIA COMPLICATIONS
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^RENAL-CONTR MED COMP
;;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|
;;EOR^
;;KEY^860.2:^RECENT CHOLECYSTOGRAM ORDER
;;R^"860.2:",.01,"E"
;;D^RECENT CHOLECYSTOGRAM ORDER
;;R^"860.2:","860.21:1",.01,"E"
;;D^RECENT CHOLECGRM
;;R^"860.2:","860.21:1",1,"E"
;;D^PATIENT HAS RECENT CHOLECYSTOGRAM
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^RECENT CHOLECGRM
;;R^"860.2:","860.22:1",2,"E"
;;D^RECENT ORAL CHOLECYSTOGRAM
;;R^"860.2:","860.22:1",6,"E"
;;D^Recent Cholecystogram: |RECENT CHOLECYSTOGRAM TEXT| [|RECENT CHOLECYSTOGRAM ORDER STATUS|]
;;EOR^
;;KEY^860.2:^RENAL FUNCTIONS OVER AGE 65 CHECK
;;R^"860.2:",.01,"E"
;;D^RENAL FUNCTIONS OVER AGE 65 CHECK
;;R^"860.2:","860.21:1",.01,"E"
;;D^PHARM PAT OVER 65
;;R^"860.2:","860.21:1",1,"E"
;;D^PHARMACY PATIENT OVER 65
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^PHARM PAT OVER 65
;;R^"860.2:","860.22:1",2,"E"
;;D^RENAL FUNCTIONS OVER AGE 65
;;R^"860.2:","860.22:1",6,"E"
;;D^Patient >65. Renal Results: |FORMATTED RENAL LAB RESULTS|
;;EOR^
;;KEY^860.2:^CONCURRENT LAB ORDERS FOR ANGIOGRAM, CATH - PERIPHERAL
;;R^"860.2:",.01,"E"
;;D^CONCURRENT LAB ORDERS FOR ANGIOGRAM, CATH - PERIPHERAL
;;R^"860.2:","860.21:1",.01,"E"
;;D^ANGIOGRAM
;;R^"860.2:","860.21:1",1,"E"
;;D^SESSION ORDER FOR ANGIOGRAM
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ANGIOGRAM
;;R^"860.2:","860.22:1",2,"E"
;;D^MISSING LAB TESTS FOR ANGIOGRAM PROCEDURE
;;R^"860.2:","860.22:1",6,"E"
;;D^Missing Labs for Angiogram: |MISSING ANGIOGRAM, CATH PERIF LAB TESTS|
;;EOR^
;;KEY^860.2:^ALLERGY - CONTRAST MEDIA REACTION
;;R^"860.2:",.01,"E"
;;D^ALLERGY - CONTRAST MEDIA REACTION
;;R^"860.2:","860.21:1",.01,"E"
;;D^ALLERGY
;;R^"860.2:","860.21:1",1,"E"
;;D^CONTRAST MEDIA ALLERGY
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ALLERGY
;;R^"860.2:","860.22:1",2,"E"
;;D^ALLERGY-CONTRAST MEDIA INTERACTION
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI039 5215 printed Oct 16, 2024@18:24:58 Page 2
OCXDI039 ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXDIAG
+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("OCXDIAG",$JOB,$ORDER(^TMP("OCXDIAG",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
if QUIT
QUIT
+8 ;
+9 GOTO ^OCXDI03A
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^ABNORMAL LAB RESULT (INFO)
+3 ;;R^"860.2:","860.22:2",5,"E"
+4 ;;D^Abnormal lab: |LAB TEST PRINT NAME| |LAB RESULT| |LAB COLLECTION D/T|
+5 ;;EOR^
+6 ;;KEY^860.2:^ORDER REQUIRES ELECTRONIC SIGNATURE
+7 ;;R^"860.2:",.01,"E"
+8 ;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
+9 ;;R^"860.2:","860.21:1",.01,"E"
+10 ;;D^ELECTRONIC SIGNATURE
+11 ;;R^"860.2:","860.21:1",1,"E"
+12 ;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
+13 ;;R^"860.2:","860.22:1",.01,"E"
+14 ;;D^1
+15 ;;R^"860.2:","860.22:1",1,"E"
+16 ;;D^ELECTRONIC SIGNATURE
+17 ;;R^"860.2:","860.22:1",3,"E"
+18 ;;D^ORDER REQUIRES ELEC SIGNATURE
+19 ;;R^"860.2:","860.22:1",5,"E"
+20 ;;D^Order requires electronic signature.
+21 ;;EOR^
+22 ;;KEY^860.2:^SITE FLAGGED ORDER
+23 ;;R^"860.2:",.01,"E"
+24 ;;D^SITE FLAGGED ORDER
+25 ;;R^"860.2:","860.21:1",.01,"E"
+26 ;;D^NEW SITE FLAGGED ORDER
+27 ;;R^"860.2:","860.21:1",.02,"E"
+28 ;;D^SIMPLE DEFINITION
+29 ;;R^"860.2:","860.21:1",1,"E"
+30 ;;D^NEW SITE FLAGGED ORDER
+31 ;;R^"860.2:","860.22:1",.01,"E"
+32 ;;D^1
+33 ;;R^"860.2:","860.22:1",1,"E"
+34 ;;D^NEW SITE FLAGGED ORDER
+35 ;;R^"860.2:","860.22:1",3,"E"
+36 ;;D^SITE-FLAGGED ORDER
+37 ;;R^"860.2:","860.22:1",5,"E"
+38 ;;D^Site-flagged order placed: |ORDERABLE ITEM NAME| |ORDER ST D/T|
+39 ;;EOR^
+40 ;;KEY^860.2:^SITE FLAGGED RESULT
+41 ;;R^"860.2:",.01,"E"
+42 ;;D^SITE FLAGGED RESULT
+43 ;;R^"860.2:","860.21:1",.01,"E"
+44 ;;D^SITE FLAGGED LAB RESULT
+45 ;;R^"860.2:","860.21:1",.02,"E"
+46 ;;D^SIMPLE DEFINITION
+47 ;;R^"860.2:","860.21:1",1,"E"
+48 ;;D^SITE FLAGGED FINAL LAB RESULT
+49 ;;R^"860.2:","860.21:2",.01,"E"
+50 ;;D^SITE FLAGGED IMAGING RESULT
+51 ;;R^"860.2:","860.21:2",.02,"E"
+52 ;;D^SIMPLE DEFINITION
+53 ;;R^"860.2:","860.21:2",1,"E"
+54 ;;D^SITE FLAGGED FINAL IMAGING RESULT
+55 ;;R^"860.2:","860.21:3",.01,"E"
+56 ;;D^SITE FLAGGED CONSULT RESULT
+57 ;;R^"860.2:","860.21:3",.02,"E"
+58 ;;D^SIMPLE DEFINITION
+59 ;;R^"860.2:","860.21:3",1,"E"
+60 ;;D^SITE FLAGGED FINAL CONSULT RESULT
+61 ;;R^"860.2:","860.22:1",.01,"E"
+62 ;;D^1
+63 ;;R^"860.2:","860.22:1",1,"E"
+64 ;;D^SITE FLAGGED LAB RESULT OR SITE FLAGGED IMAGING RESULT OR SITE FLAGGED CONSULT RESULT
+65 ;;R^"860.2:","860.22:1",3,"E"
+66 ;;D^SITE-FLAGGED RESULTS
+67 ;;R^"860.2:","860.22:1",5,"E"
+68 ;;D^Site-flagged result available: |ORDERABLE ITEM NAME| |ORDER ST D/T|
+69 ;;EOR^
+70 ;;KEY^860.2:^BIOCHEM ABNORMALITIES/CONTRAST MEDIA CHECK
+71 ;;R^"860.2:",.01,"E"
+72 ;;D^BIOCHEM ABNORMALITIES/CONTRAST MEDIA CHECK
+73 ;;R^"860.2:","860.21:1",.01,"E"
+74 ;;D^RENAL-CONTR MED COMP
+75 ;;R^"860.2:","860.21:1",1,"E"
+76 ;;D^RENAL/CONTRAST MEDIA COMPLICATIONS
+77 ;;R^"860.2:","860.22:1",.01,"E"
+78 ;;D^1
+79 ;;R^"860.2:","860.22:1",1,"E"
+80 ;;D^RENAL-CONTR MED COMP
+81 ;;R^"860.2:","860.22:1",2,"E"
+82 ;;D^BIOCHEM ABNORMALITY FOR CONTRAST MEDIA
+83 ;;R^"860.2:","860.22:1",6,"E"
+84 ;;D^Procedure uses non-barium contrast media - abnormal biochem result: |ABNORMAL RENAL BIOCHEM RESULTS|
+85 ;;EOR^
+86 ;;KEY^860.2:^RECENT CHOLECYSTOGRAM ORDER
+87 ;;R^"860.2:",.01,"E"
+88 ;;D^RECENT CHOLECYSTOGRAM ORDER
+89 ;;R^"860.2:","860.21:1",.01,"E"
+90 ;;D^RECENT CHOLECGRM
+91 ;;R^"860.2:","860.21:1",1,"E"
+92 ;;D^PATIENT HAS RECENT CHOLECYSTOGRAM
+93 ;;R^"860.2:","860.22:1",.01,"E"
+94 ;;D^1
+95 ;;R^"860.2:","860.22:1",1,"E"
+96 ;;D^RECENT CHOLECGRM
+97 ;;R^"860.2:","860.22:1",2,"E"
+98 ;;D^RECENT ORAL CHOLECYSTOGRAM
+99 ;;R^"860.2:","860.22:1",6,"E"
+100 ;;D^Recent Cholecystogram: |RECENT CHOLECYSTOGRAM TEXT| [|RECENT CHOLECYSTOGRAM ORDER STATUS|]
+101 ;;EOR^
+102 ;;KEY^860.2:^RENAL FUNCTIONS OVER AGE 65 CHECK
+103 ;;R^"860.2:",.01,"E"
+104 ;;D^RENAL FUNCTIONS OVER AGE 65 CHECK
+105 ;;R^"860.2:","860.21:1",.01,"E"
+106 ;;D^PHARM PAT OVER 65
+107 ;;R^"860.2:","860.21:1",1,"E"
+108 ;;D^PHARMACY PATIENT OVER 65
+109 ;;R^"860.2:","860.22:1",.01,"E"
+110 ;;D^1
+111 ;;R^"860.2:","860.22:1",1,"E"
+112 ;;D^PHARM PAT OVER 65
+113 ;;R^"860.2:","860.22:1",2,"E"
+114 ;;D^RENAL FUNCTIONS OVER AGE 65
+115 ;;R^"860.2:","860.22:1",6,"E"
+116 ;;D^Patient >65. Renal Results: |FORMATTED RENAL LAB RESULTS|
+117 ;;EOR^
+118 ;;KEY^860.2:^CONCURRENT LAB ORDERS FOR ANGIOGRAM, CATH - PERIPHERAL
+119 ;;R^"860.2:",.01,"E"
+120 ;;D^CONCURRENT LAB ORDERS FOR ANGIOGRAM, CATH - PERIPHERAL
+121 ;;R^"860.2:","860.21:1",.01,"E"
+122 ;;D^ANGIOGRAM
+123 ;;R^"860.2:","860.21:1",1,"E"
+124 ;;D^SESSION ORDER FOR ANGIOGRAM
+125 ;;R^"860.2:","860.22:1",.01,"E"
+126 ;;D^1
+127 ;;R^"860.2:","860.22:1",1,"E"
+128 ;;D^ANGIOGRAM
+129 ;;R^"860.2:","860.22:1",2,"E"
+130 ;;D^MISSING LAB TESTS FOR ANGIOGRAM PROCEDURE
+131 ;;R^"860.2:","860.22:1",6,"E"
+132 ;;D^Missing Labs for Angiogram: |MISSING ANGIOGRAM, CATH PERIF LAB TESTS|
+133 ;;EOR^
+134 ;;KEY^860.2:^ALLERGY - CONTRAST MEDIA REACTION
+135 ;;R^"860.2:",.01,"E"
+136 ;;D^ALLERGY - CONTRAST MEDIA REACTION
+137 ;;R^"860.2:","860.21:1",.01,"E"
+138 ;;D^ALLERGY
+139 ;;R^"860.2:","860.21:1",1,"E"
+140 ;;D^CONTRAST MEDIA ALLERGY
+141 ;;R^"860.2:","860.22:1",.01,"E"
+142 ;;D^1
+143 ;;R^"860.2:","860.22:1",1,"E"
+144 ;;D^ALLERGY
+145 ;;R^"860.2:","860.22:1",2,"E"
+146 ;;D^ALLERGY-CONTRAST MEDIA INTERACTION
+147 ;1;
+148 ;