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