OCXDI038 ;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 ^OCXDI039
;
Q
;
DATA ;
;
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:7",1,"E"
;;D^CONSULT FINAL RESULTS
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ORDER FLAGGED FOR RESULTS AND (LAB RESULT OR IMAGING RESULT OR CONSULT RESULT)
;;R^"860.2:","860.22:1",3,"E"
;;D^ORDERER-FLAGGED RESULTS
;;R^"860.2:","860.22:1",5,"E"
;;D^Requested results available: |ORDERABLE ITEM NAME|
;;EOR^
;;KEY^860.2:^STAT ORDER PLACED
;;R^"860.2:",.01,"E"
;;D^STAT ORDER PLACED
;;R^"860.2:","860.21:3",.01,"E"
;;D^NEW OBR STAT
;;R^"860.2:","860.21:3",1,"E"
;;D^NEW OBR STAT ORDER
;;R^"860.2:","860.21:4",.01,"E"
;;D^NEW ORC STAT
;;R^"860.2:","860.21:4",1,"E"
;;D^NEW ORC STAT ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NEW OBR STAT OR NEW ORC STAT
;;R^"860.2:","860.22:1",3,"E"
;;D^STAT ORDER
;;R^"860.2:","860.22:1",5,"E"
;;D^STAT order: |ORDERABLE ITEM NAME|
;;EOR^
;;KEY^860.2:^PATIENT TRANSFERRED FROM PSYCHIATRY TO ANOTHER UNIT
;;R^"860.2:",.01,"E"
;;D^PATIENT TRANSFERRED FROM PSYCHIATRY TO ANOTHER UNIT
;;R^"860.2:","860.21:1",.01,"E"
;;D^FROM PSYCH WARD
;;R^"860.2:","860.21:1",1,"E"
;;D^PATIENT TRANSFERRED FROM PSYCH WARD
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^FROM PSYCH WARD
;;R^"860.2:","860.22:1",3,"E"
;;D^TRANSFER FROM PSYCHIATRY
;;R^"860.2:","860.22:1",5,"E"
;;D^Transfer from Psych ward: |PATIENT MOVEMENT WARD PREVIOUS| to ward: |PATIENT MOVEMENT WARD CURRENT|
;;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^Glucophage - 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^Glucophage - no serum creatinine within past |RECENT GLUCOPHAGE CREATININE DAYS| days.
;;EOR^
;;KEY^860.2:^LAB ORDER CANCELLED
;;R^"860.2:",.01,"E"
;;D^LAB ORDER CANCELLED
;;R^"860.2:","860.21:6",.01,"E"
;;D^CANCEL
;;R^"860.2:","860.21:6",1,"E"
;;D^HL7 LAB ORDER CANCELLED
;;R^"860.2:","860.21:7",.01,"E"
;;D^REQCANCEL
;;R^"860.2:","860.21:7",1,"E"
;;D^HL7 LAB REQUEST CANCELLED
;;R^"860.2:","860.21:8",.01,"E"
;;D^CANCELED BY NON-ORIG ORDERER
;;R^"860.2:","860.21:8",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:8",1,"E"
;;D^CANCELED BY NON-ORIG ORDERING PROVIDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^(CANCEL OR REQCANCEL) AND CANCELED BY NON-ORIG ORDERER
;;R^"860.2:","860.22:1",3,"E"
;;D^LAB ORDER CANCELED
;;R^"860.2:","860.22:1",5,"E"
;;D^Lab order canceled: |ORDER TEXT (51 CHARS)|
;;EOR^
;;KEY^860.2:^NEW ORDER PLACED
;;R^"860.2:",.01,"E"
;;D^NEW ORDER PLACED
;;R^"860.2:","860.21:1",.01,"E"
;;D^NEW
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 NEW OERR ORDER
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^NEW
;;R^"860.2:","860.22:1",3,"E"
;;D^NEW ORDER
;;R^"860.2:","860.22:1",5,"E"
;;D^New order(s) placed.
;;EOR^
;;KEY^860.2:^ABNORMAL LAB RESULTS
;;R^"860.2:",.01,"E"
;;D^ABNORMAL LAB RESULTS
;;R^"860.2:","860.21:1",.01,"E"
;;D^ABNORMAL LAB ORDER
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 LAB ORDER RESULTS ABNORMAL
;;R^"860.2:","860.21:2",.01,"E"
;;D^ABNORMAL LAB TEST
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^HL7 LAB TEST RESULTS ABNORMAL
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ABNORMAL LAB ORDER
;;R^"860.2:","860.22:1",3,"E"
;;D^ABNORMAL LAB RESULTS (ACTION)
;;R^"860.2:","860.22:1",5,"E"
;;D^Abnormal labs - [|ORDERABLE ITEM NAME|]
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^ABNORMAL LAB TEST
;;R^"860.2:","860.22:2",3,"E"
;1;
;
OCXDI038 ;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 ^OCXDI039
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^SIMPLE DEFINITION
+3 ;;R^"860.2:","860.21:7",1,"E"
+4 ;;D^CONSULT FINAL RESULTS
+5 ;;R^"860.2:","860.22:1",.01,"E"
+6 ;;D^1
+7 ;;R^"860.2:","860.22:1",1,"E"
+8 ;;D^ORDER FLAGGED FOR RESULTS AND (LAB RESULT OR IMAGING RESULT OR CONSULT RESULT)
+9 ;;R^"860.2:","860.22:1",3,"E"
+10 ;;D^ORDERER-FLAGGED RESULTS
+11 ;;R^"860.2:","860.22:1",5,"E"
+12 ;;D^Requested results available: |ORDERABLE ITEM NAME|
+13 ;;EOR^
+14 ;;KEY^860.2:^STAT ORDER PLACED
+15 ;;R^"860.2:",.01,"E"
+16 ;;D^STAT ORDER PLACED
+17 ;;R^"860.2:","860.21:3",.01,"E"
+18 ;;D^NEW OBR STAT
+19 ;;R^"860.2:","860.21:3",1,"E"
+20 ;;D^NEW OBR STAT ORDER
+21 ;;R^"860.2:","860.21:4",.01,"E"
+22 ;;D^NEW ORC STAT
+23 ;;R^"860.2:","860.21:4",1,"E"
+24 ;;D^NEW ORC STAT ORDER
+25 ;;R^"860.2:","860.22:1",.01,"E"
+26 ;;D^1
+27 ;;R^"860.2:","860.22:1",1,"E"
+28 ;;D^NEW OBR STAT OR NEW ORC STAT
+29 ;;R^"860.2:","860.22:1",3,"E"
+30 ;;D^STAT ORDER
+31 ;;R^"860.2:","860.22:1",5,"E"
+32 ;;D^STAT order: |ORDERABLE ITEM NAME|
+33 ;;EOR^
+34 ;;KEY^860.2:^PATIENT TRANSFERRED FROM PSYCHIATRY TO ANOTHER UNIT
+35 ;;R^"860.2:",.01,"E"
+36 ;;D^PATIENT TRANSFERRED FROM PSYCHIATRY TO ANOTHER UNIT
+37 ;;R^"860.2:","860.21:1",.01,"E"
+38 ;;D^FROM PSYCH WARD
+39 ;;R^"860.2:","860.21:1",1,"E"
+40 ;;D^PATIENT TRANSFERRED FROM PSYCH WARD
+41 ;;R^"860.2:","860.22:1",.01,"E"
+42 ;;D^1
+43 ;;R^"860.2:","860.22:1",1,"E"
+44 ;;D^FROM PSYCH WARD
+45 ;;R^"860.2:","860.22:1",3,"E"
+46 ;;D^TRANSFER FROM PSYCHIATRY
+47 ;;R^"860.2:","860.22:1",5,"E"
+48 ;;D^Transfer from Psych ward: |PATIENT MOVEMENT WARD PREVIOUS| to ward: |PATIENT MOVEMENT WARD CURRENT|
+49 ;;EOR^
+50 ;;KEY^860.2:^GLUCOPHAGE - LAB RESULTS
+51 ;;R^"860.2:",.01,"E"
+52 ;;D^GLUCOPHAGE - LAB RESULTS
+53 ;;R^"860.2:","860.21:1",.01,"E"
+54 ;;D^GLUCOPHAGE ORDER
+55 ;;R^"860.2:","860.21:1",.02,"E"
+56 ;;D^SIMPLE DEFINITION
+57 ;;R^"860.2:","860.21:1",1,"E"
+58 ;;D^GLUCOPHAGE ORDER
+59 ;;R^"860.2:","860.21:2",.01,"E"
+60 ;;D^GLUCOPHAGE CREATININE > 1.5
+61 ;;R^"860.2:","860.21:2",.02,"E"
+62 ;;D^SIMPLE DEFINITION
+63 ;;R^"860.2:","860.21:2",1,"E"
+64 ;;D^GLUCOPHAGE CREATININE > 1.5
+65 ;;R^"860.2:","860.21:3",.01,"E"
+66 ;;D^NO GLUCOPHAGE CREATININE
+67 ;;R^"860.2:","860.21:3",.02,"E"
+68 ;;D^SIMPLE DEFINITION
+69 ;;R^"860.2:","860.21:3",1,"E"
+70 ;;D^NO GLUCOPHAGE CREATININE
+71 ;;R^"860.2:","860.22:1",.01,"E"
+72 ;;D^1
+73 ;;R^"860.2:","860.22:1",1,"E"
+74 ;;D^GLUCOPHAGE ORDER AND GLUCOPHAGE CREATININE > 1.5
+75 ;;R^"860.2:","860.22:1",2,"E"
+76 ;;D^GLUCOPHAGE-LAB RESULTS
+77 ;;R^"860.2:","860.22:1",6,"E"
+78 ;;D^Glucophage - Creatinine results: |RECENT GLUCOPHAGE CREATININE TEXT|
+79 ;;R^"860.2:","860.22:2",.01,"E"
+80 ;;D^2
+81 ;;R^"860.2:","860.22:2",1,"E"
+82 ;;D^GLUCOPHAGE ORDER AND NO GLUCOPHAGE CREATININE
+83 ;;R^"860.2:","860.22:2",2,"E"
+84 ;;D^GLUCOPHAGE-LAB RESULTS
+85 ;;R^"860.2:","860.22:2",6,"E"
+86 ;;D^Glucophage - no serum creatinine within past |RECENT GLUCOPHAGE CREATININE DAYS| days.
+87 ;;EOR^
+88 ;;KEY^860.2:^LAB ORDER CANCELLED
+89 ;;R^"860.2:",.01,"E"
+90 ;;D^LAB ORDER CANCELLED
+91 ;;R^"860.2:","860.21:6",.01,"E"
+92 ;;D^CANCEL
+93 ;;R^"860.2:","860.21:6",1,"E"
+94 ;;D^HL7 LAB ORDER CANCELLED
+95 ;;R^"860.2:","860.21:7",.01,"E"
+96 ;;D^REQCANCEL
+97 ;;R^"860.2:","860.21:7",1,"E"
+98 ;;D^HL7 LAB REQUEST CANCELLED
+99 ;;R^"860.2:","860.21:8",.01,"E"
+100 ;;D^CANCELED BY NON-ORIG ORDERER
+101 ;;R^"860.2:","860.21:8",.02,"E"
+102 ;;D^SIMPLE DEFINITION
+103 ;;R^"860.2:","860.21:8",1,"E"
+104 ;;D^CANCELED BY NON-ORIG ORDERING PROVIDER
+105 ;;R^"860.2:","860.22:1",.01,"E"
+106 ;;D^1
+107 ;;R^"860.2:","860.22:1",1,"E"
+108 ;;D^(CANCEL OR REQCANCEL) AND CANCELED BY NON-ORIG ORDERER
+109 ;;R^"860.2:","860.22:1",3,"E"
+110 ;;D^LAB ORDER CANCELED
+111 ;;R^"860.2:","860.22:1",5,"E"
+112 ;;D^Lab order canceled: |ORDER TEXT (51 CHARS)|
+113 ;;EOR^
+114 ;;KEY^860.2:^NEW ORDER PLACED
+115 ;;R^"860.2:",.01,"E"
+116 ;;D^NEW ORDER PLACED
+117 ;;R^"860.2:","860.21:1",.01,"E"
+118 ;;D^NEW
+119 ;;R^"860.2:","860.21:1",1,"E"
+120 ;;D^HL7 NEW OERR ORDER
+121 ;;R^"860.2:","860.22:1",.01,"E"
+122 ;;D^1
+123 ;;R^"860.2:","860.22:1",1,"E"
+124 ;;D^NEW
+125 ;;R^"860.2:","860.22:1",3,"E"
+126 ;;D^NEW ORDER
+127 ;;R^"860.2:","860.22:1",5,"E"
+128 ;;D^New order(s) placed.
+129 ;;EOR^
+130 ;;KEY^860.2:^ABNORMAL LAB RESULTS
+131 ;;R^"860.2:",.01,"E"
+132 ;;D^ABNORMAL LAB RESULTS
+133 ;;R^"860.2:","860.21:1",.01,"E"
+134 ;;D^ABNORMAL LAB ORDER
+135 ;;R^"860.2:","860.21:1",.02,"E"
+136 ;;D^SIMPLE DEFINITION
+137 ;;R^"860.2:","860.21:1",1,"E"
+138 ;;D^HL7 LAB ORDER RESULTS ABNORMAL
+139 ;;R^"860.2:","860.21:2",.01,"E"
+140 ;;D^ABNORMAL LAB TEST
+141 ;;R^"860.2:","860.21:2",.02,"E"
+142 ;;D^SIMPLE DEFINITION
+143 ;;R^"860.2:","860.21:2",1,"E"
+144 ;;D^HL7 LAB TEST RESULTS ABNORMAL
+145 ;;R^"860.2:","860.22:1",.01,"E"
+146 ;;D^1
+147 ;;R^"860.2:","860.22:1",1,"E"
+148 ;;D^ABNORMAL LAB ORDER
+149 ;;R^"860.2:","860.22:1",3,"E"
+150 ;;D^ABNORMAL LAB RESULTS (ACTION)
+151 ;;R^"860.2:","860.22:1",5,"E"
+152 ;;D^Abnormal labs - [|ORDERABLE ITEM NAME|]
+153 ;;R^"860.2:","860.22:2",.01,"E"
+154 ;;D^2
+155 ;;R^"860.2:","860.22:2",1,"E"
+156 ;;D^ABNORMAL LAB TEST
+157 ;;R^"860.2:","860.22:2",3,"E"
+158 ;1;
+159 ;