OCXDI02V ;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 ^OCXDI02W
;
Q
;
DATA ;
;
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.3:","860.31:5",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:5",3,"E"
;;D^F
;;EOR^
;;KEY^860.3:^HL7 NEW OERR ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 NEW OERR 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^CONTROL CODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:1",3,"E"
;;D^NW,SN,XR
;;EOR^
;;KEY^860.3:^HL7 OBR STAT ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 OBR STAT ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^ORDER PRIORITY (OBR)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^S
;;EOR^
;;KEY^860.3:^HL7 LAB ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 LAB 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^LR
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^RESULT STATUS (OBX)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^F
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^ABNORMAL FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:3",3,"E"
;;D^L
;;EOR^
;;KEY^860.3:^HL7 RESULTS ABNORMAL HIGH
;;R^"860.3:",.01,"E"
;;D^HL7 RESULTS ABNORMAL HIGH
;;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^ABNORMAL FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^H
;;EOR^
;;KEY^860.3:^HL7 RESULTS ABNORMAL LOW
;;R^"860.3:",.01,"E"
;;D^HL7 RESULTS ABNORMAL LOW
;;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^ABNORMAL FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^L
;;EOR^
;;KEY^860.3:^HL7 RESULTS CRITICAL HIGH
;;R^"860.3:",.01,"E"
;;D^HL7 RESULTS CRITICAL HIGH
;;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^ABNORMAL FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^HH
;;EOR^
;;KEY^860.3:^HL7 RESULTS CRITICAL LOW
;;R^"860.3:",.01,"E"
;;D^HL7 RESULTS CRITICAL LOW
;;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^ABNORMAL FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^LL
;;EOR^
;;KEY^860.3:^HL7 CAPTURE REASON NULL
;;R^"860.3:",.01,"E"
;;D^HL7 CAPTURE REASON NULL
;;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^COMMENT
;;R^"860.3:","860.31:1",2,"E"
;;D^LENGTH IS LESS THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^1
;;EOR^
;;KEY^860.3:^HL7 EXAM ID NULL
;;R^"860.3:",.01,"E"
;;D^HL7 EXAM ID NULL
;;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^EXAM/ORDER ID
;;R^"860.3:","860.31:1",2,"E"
;;D^LENGTH IS LESS THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^1
;;EOR^
;;KEY^860.3:^HL7 ORDER WITHIN LAST 2 WEEKS
;;R^"860.3:",.01,"E"
;;D^HL7 ORDER WITHIN LAST 2 WEEKS
;;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^ORDER ST D/T
;;R^"860.3:","860.31:1",2,"E"
;;D^AFTER
;;R^"860.3:","860.31:1",3,"E"
;;D^TODAY-14
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^ORDER ST D/T
;;R^"860.3:","860.31:2",2,"E"
;;D^DATE BEFORE
;;R^"860.3:","860.31:2",3,"E"
;;D^YESTERDAY
;;EOR^
;;KEY^860.3:^HL7 OERR ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 OERR 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^OR
;;EOR^
;;KEY^860.3:^HL7 LAB TEST NAME EQUALS GLUCOSE
;;R^"860.3:",.01,"E"
;;D^HL7 LAB TEST NAME EQUALS GLUCOSE
;;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^LAB TEST NAME
;;EOR^
;;KEY^860.3:^HL7 RESULT STATUS
;;R^"860.3:",.01,"E"
;;D^HL7 RESULT STATUS
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.3:^HL7 ORDER-CANCELLED
;;R^"860.3:",.01,"E"
;;D^HL7 ORDER-CANCELLED
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;1;
;
OCXDI02V ;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 ^OCXDI02W
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^5
+3 ;;R^"860.3:","860.31:5",1,"E"
+4 ;;D^REQUEST STATUS (OBR)
+5 ;;R^"860.3:","860.31:5",2,"E"
+6 ;;D^EQ FREE TEXT
+7 ;;R^"860.3:","860.31:5",3,"E"
+8 ;;D^F
+9 ;;EOR^
+10 ;;KEY^860.3:^HL7 NEW OERR ORDER
+11 ;;R^"860.3:",.01,"E"
+12 ;;D^HL7 NEW OERR ORDER
+13 ;;R^"860.3:",.02,"E"
+14 ;;D^GENERIC HL7 MESSAGE ARRAY
+15 ;;R^"860.3:","860.31:1",.01,"E"
+16 ;;D^1
+17 ;;R^"860.3:","860.31:1",1,"E"
+18 ;;D^CONTROL CODE
+19 ;;R^"860.3:","860.31:1",2,"E"
+20 ;;D^EQUALS ELEMENT IN SET
+21 ;;R^"860.3:","860.31:1",3,"E"
+22 ;;D^NW,SN,XR
+23 ;;EOR^
+24 ;;KEY^860.3:^HL7 OBR STAT ORDER
+25 ;;R^"860.3:",.01,"E"
+26 ;;D^HL7 OBR STAT ORDER
+27 ;;R^"860.3:",.02,"E"
+28 ;;D^GENERIC HL7 MESSAGE ARRAY
+29 ;;R^"860.3:","860.31:2",.01,"E"
+30 ;;D^2
+31 ;;R^"860.3:","860.31:2",1,"E"
+32 ;;D^ORDER PRIORITY (OBR)
+33 ;;R^"860.3:","860.31:2",2,"E"
+34 ;;D^EQ FREE TEXT
+35 ;;R^"860.3:","860.31:2",3,"E"
+36 ;;D^S
+37 ;;EOR^
+38 ;;KEY^860.3:^HL7 LAB ORDER
+39 ;;R^"860.3:",.01,"E"
+40 ;;D^HL7 LAB ORDER
+41 ;;R^"860.3:",.02,"E"
+42 ;;D^GENERIC HL7 MESSAGE ARRAY
+43 ;;R^"860.3:","860.31:1",.01,"E"
+44 ;;D^1
+45 ;;R^"860.3:","860.31:1",1,"E"
+46 ;;D^FILLER
+47 ;;R^"860.3:","860.31:1",2,"E"
+48 ;;D^EQ FREE TEXT
+49 ;;R^"860.3:","860.31:1",3,"E"
+50 ;;D^LR
+51 ;;R^"860.3:","860.31:2",.01,"E"
+52 ;;D^2
+53 ;;R^"860.3:","860.31:2",1,"E"
+54 ;;D^RESULT STATUS (OBX)
+55 ;;R^"860.3:","860.31:2",2,"E"
+56 ;;D^EQ FREE TEXT
+57 ;;R^"860.3:","860.31:2",3,"E"
+58 ;;D^F
+59 ;;R^"860.3:","860.31:3",.01,"E"
+60 ;;D^3
+61 ;;R^"860.3:","860.31:3",1,"E"
+62 ;;D^ABNORMAL FLAG
+63 ;;R^"860.3:","860.31:3",2,"E"
+64 ;;D^EQ FREE TEXT
+65 ;;R^"860.3:","860.31:3",3,"E"
+66 ;;D^L
+67 ;;EOR^
+68 ;;KEY^860.3:^HL7 RESULTS ABNORMAL HIGH
+69 ;;R^"860.3:",.01,"E"
+70 ;;D^HL7 RESULTS ABNORMAL HIGH
+71 ;;R^"860.3:",.02,"E"
+72 ;;D^GENERIC HL7 MESSAGE ARRAY
+73 ;;R^"860.3:","860.31:1",.01,"E"
+74 ;;D^1
+75 ;;R^"860.3:","860.31:1",1,"E"
+76 ;;D^ABNORMAL FLAG
+77 ;;R^"860.3:","860.31:1",2,"E"
+78 ;;D^EQ FREE TEXT
+79 ;;R^"860.3:","860.31:1",3,"E"
+80 ;;D^H
+81 ;;EOR^
+82 ;;KEY^860.3:^HL7 RESULTS ABNORMAL LOW
+83 ;;R^"860.3:",.01,"E"
+84 ;;D^HL7 RESULTS ABNORMAL LOW
+85 ;;R^"860.3:",.02,"E"
+86 ;;D^GENERIC HL7 MESSAGE ARRAY
+87 ;;R^"860.3:","860.31:1",.01,"E"
+88 ;;D^1
+89 ;;R^"860.3:","860.31:1",1,"E"
+90 ;;D^ABNORMAL FLAG
+91 ;;R^"860.3:","860.31:1",2,"E"
+92 ;;D^EQ FREE TEXT
+93 ;;R^"860.3:","860.31:1",3,"E"
+94 ;;D^L
+95 ;;EOR^
+96 ;;KEY^860.3:^HL7 RESULTS CRITICAL HIGH
+97 ;;R^"860.3:",.01,"E"
+98 ;;D^HL7 RESULTS CRITICAL HIGH
+99 ;;R^"860.3:",.02,"E"
+100 ;;D^GENERIC HL7 MESSAGE ARRAY
+101 ;;R^"860.3:","860.31:1",.01,"E"
+102 ;;D^1
+103 ;;R^"860.3:","860.31:1",1,"E"
+104 ;;D^ABNORMAL FLAG
+105 ;;R^"860.3:","860.31:1",2,"E"
+106 ;;D^EQ FREE TEXT
+107 ;;R^"860.3:","860.31:1",3,"E"
+108 ;;D^HH
+109 ;;EOR^
+110 ;;KEY^860.3:^HL7 RESULTS CRITICAL LOW
+111 ;;R^"860.3:",.01,"E"
+112 ;;D^HL7 RESULTS CRITICAL LOW
+113 ;;R^"860.3:",.02,"E"
+114 ;;D^GENERIC HL7 MESSAGE ARRAY
+115 ;;R^"860.3:","860.31:1",.01,"E"
+116 ;;D^1
+117 ;;R^"860.3:","860.31:1",1,"E"
+118 ;;D^ABNORMAL FLAG
+119 ;;R^"860.3:","860.31:1",2,"E"
+120 ;;D^EQ FREE TEXT
+121 ;;R^"860.3:","860.31:1",3,"E"
+122 ;;D^LL
+123 ;;EOR^
+124 ;;KEY^860.3:^HL7 CAPTURE REASON NULL
+125 ;;R^"860.3:",.01,"E"
+126 ;;D^HL7 CAPTURE REASON NULL
+127 ;;R^"860.3:",.02,"E"
+128 ;;D^GENERIC HL7 MESSAGE ARRAY
+129 ;;R^"860.3:","860.31:1",.01,"E"
+130 ;;D^1
+131 ;;R^"860.3:","860.31:1",1,"E"
+132 ;;D^COMMENT
+133 ;;R^"860.3:","860.31:1",2,"E"
+134 ;;D^LENGTH IS LESS THAN
+135 ;;R^"860.3:","860.31:1",3,"E"
+136 ;;D^1
+137 ;;EOR^
+138 ;;KEY^860.3:^HL7 EXAM ID NULL
+139 ;;R^"860.3:",.01,"E"
+140 ;;D^HL7 EXAM ID NULL
+141 ;;R^"860.3:",.02,"E"
+142 ;;D^GENERIC HL7 MESSAGE ARRAY
+143 ;;R^"860.3:","860.31:1",.01,"E"
+144 ;;D^1
+145 ;;R^"860.3:","860.31:1",1,"E"
+146 ;;D^EXAM/ORDER ID
+147 ;;R^"860.3:","860.31:1",2,"E"
+148 ;;D^LENGTH IS LESS THAN
+149 ;;R^"860.3:","860.31:1",3,"E"
+150 ;;D^1
+151 ;;EOR^
+152 ;;KEY^860.3:^HL7 ORDER WITHIN LAST 2 WEEKS
+153 ;;R^"860.3:",.01,"E"
+154 ;;D^HL7 ORDER WITHIN LAST 2 WEEKS
+155 ;;R^"860.3:",.02,"E"
+156 ;;D^GENERIC HL7 MESSAGE ARRAY
+157 ;;R^"860.3:","860.31:1",.01,"E"
+158 ;;D^1
+159 ;;R^"860.3:","860.31:1",1,"E"
+160 ;;D^ORDER ST D/T
+161 ;;R^"860.3:","860.31:1",2,"E"
+162 ;;D^AFTER
+163 ;;R^"860.3:","860.31:1",3,"E"
+164 ;;D^TODAY-14
+165 ;;R^"860.3:","860.31:2",.01,"E"
+166 ;;D^2
+167 ;;R^"860.3:","860.31:2",1,"E"
+168 ;;D^ORDER ST D/T
+169 ;;R^"860.3:","860.31:2",2,"E"
+170 ;;D^DATE BEFORE
+171 ;;R^"860.3:","860.31:2",3,"E"
+172 ;;D^YESTERDAY
+173 ;;EOR^
+174 ;;KEY^860.3:^HL7 OERR ORDER
+175 ;;R^"860.3:",.01,"E"
+176 ;;D^HL7 OERR ORDER
+177 ;;R^"860.3:",.02,"E"
+178 ;;D^GENERIC HL7 MESSAGE ARRAY
+179 ;;R^"860.3:","860.31:1",.01,"E"
+180 ;;D^1
+181 ;;R^"860.3:","860.31:1",1,"E"
+182 ;;D^FILLER
+183 ;;R^"860.3:","860.31:1",2,"E"
+184 ;;D^EQ FREE TEXT
+185 ;;R^"860.3:","860.31:1",3,"E"
+186 ;;D^OR
+187 ;;EOR^
+188 ;;KEY^860.3:^HL7 LAB TEST NAME EQUALS GLUCOSE
+189 ;;R^"860.3:",.01,"E"
+190 ;;D^HL7 LAB TEST NAME EQUALS GLUCOSE
+191 ;;R^"860.3:",.02,"E"
+192 ;;D^GENERIC HL7 MESSAGE ARRAY
+193 ;;R^"860.3:","860.31:1",.01,"E"
+194 ;;D^1
+195 ;;R^"860.3:","860.31:1",1,"E"
+196 ;;D^LAB TEST NAME
+197 ;;EOR^
+198 ;;KEY^860.3:^HL7 RESULT STATUS
+199 ;;R^"860.3:",.01,"E"
+200 ;;D^HL7 RESULT STATUS
+201 ;;R^"860.3:",.02,"E"
+202 ;;D^GENERIC HL7 MESSAGE ARRAY
+203 ;;EOR^
+204 ;;KEY^860.3:^HL7 ORDER-CANCELLED
+205 ;;R^"860.3:",.01,"E"
+206 ;;D^HL7 ORDER-CANCELLED
+207 ;;R^"860.3:",.02,"E"
+208 ;;D^GENERIC HL7 MESSAGE ARRAY
+209 ;;R^"860.3:","860.31:1",.01,"E"
+210 ;1;
+211 ;