OCXDI031 ;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 ^OCXDI032
;
Q
;
DATA ;
;
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^OI LOCAL TEXT
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:3",3,"E"
;;D^CLOZAPINE
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^WBC W/IN 7 DAYS FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^FRESH FROZEN PLASMA LABS
;;R^"860.3:",.01,"E"
;;D^FRESH FROZEN PLASMA LABS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^LR
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^OI LOCAL TEXT
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:3",3,"E"
;;D^FRESH FROZEN PLASMA
;;EOR^
;;KEY^860.3:^AMINOGLYCOSIDE ORDER SESSION
;;R^"860.3:",.01,"E"
;;D^AMINOGLYCOSIDE ORDER SESSION
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SESSION
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^VA DRUG CLASS
;;R^"860.3:","860.31:3",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:3",3,"E"
;;D^AMINOGLYCOSIDES
;;EOR^
;;KEY^860.3:^PATIENT OVER CT OR MRI DEVICE LIMITATIONS
;;R^"860.3:",.01,"E"
;;D^PATIENT OVER CT OR MRI DEVICE LIMITATIONS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^RA
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^PATIENT TOO BIG FOR SCANNER FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CREATININE CLEARANCE ESTIMATE
;;R^"860.3:",.01,"E"
;;D^CREATININE CLEARANCE ESTIMATE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^DISPLAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CREATININE CLEARANCE (ESTIM) VALUE
;;R^"860.3:","860.31:3",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:3",3,"E"
;;D^50
;;EOR^
;;KEY^860.3:^LAB STAT ORDER FINISHED
;;R^"860.3:",.01,"E"
;;D^LAB STAT ORDER FINISHED
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.3:^STAT IMAGING RESULT
;;R^"860.3:",.01,"E"
;;D^STAT 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^ORDER PRIORITY (ORC)
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^S
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^REQUEST STATUS (OBR)
;;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^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:^STAT LAB RESULT
;;R^"860.3:",.01,"E"
;;D^STAT LAB RESULT
;;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^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"
;1;
;
OCXDI031 ;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 ^OCXDI032
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.3:",.02,"E"
+3 ;;D^CPRS ORDER PRESCAN
+4 ;;R^"860.3:","860.31:1",.01,"E"
+5 ;;D^1
+6 ;;R^"860.3:","860.31:1",1,"E"
+7 ;;D^ORDER MODE
+8 ;;R^"860.3:","860.31:1",2,"E"
+9 ;;D^EQ FREE TEXT
+10 ;;R^"860.3:","860.31:1",3,"E"
+11 ;;D^SELECT
+12 ;;R^"860.3:","860.31:2",.01,"E"
+13 ;;D^2
+14 ;;R^"860.3:","860.31:2",1,"E"
+15 ;;D^FILLER
+16 ;;R^"860.3:","860.31:2",2,"E"
+17 ;;D^STARTS WITH
+18 ;;R^"860.3:","860.31:2",3,"E"
+19 ;;D^PS
+20 ;;R^"860.3:","860.31:3",.01,"E"
+21 ;;D^3
+22 ;;R^"860.3:","860.31:3",1,"E"
+23 ;;D^OI LOCAL TEXT
+24 ;;R^"860.3:","860.31:3",2,"E"
+25 ;;D^CONTAINS
+26 ;;R^"860.3:","860.31:3",3,"E"
+27 ;;D^CLOZAPINE
+28 ;;R^"860.3:","860.31:4",.01,"E"
+29 ;;D^4
+30 ;;R^"860.3:","860.31:4",1,"E"
+31 ;;D^WBC W/IN 7 DAYS FLAG
+32 ;;R^"860.3:","860.31:4",2,"E"
+33 ;;D^LOGICAL FALSE
+34 ;;EOR^
+35 ;;KEY^860.3:^FRESH FROZEN PLASMA LABS
+36 ;;R^"860.3:",.01,"E"
+37 ;;D^FRESH FROZEN PLASMA LABS
+38 ;;R^"860.3:",.02,"E"
+39 ;;D^CPRS ORDER PRESCAN
+40 ;;R^"860.3:","860.31:1",.01,"E"
+41 ;;D^1
+42 ;;R^"860.3:","860.31:1",1,"E"
+43 ;;D^ORDER MODE
+44 ;;R^"860.3:","860.31:1",2,"E"
+45 ;;D^EQ FREE TEXT
+46 ;;R^"860.3:","860.31:1",3,"E"
+47 ;;D^SELECT
+48 ;;R^"860.3:","860.31:2",.01,"E"
+49 ;;D^2
+50 ;;R^"860.3:","860.31:2",1,"E"
+51 ;;D^FILLER
+52 ;;R^"860.3:","860.31:2",2,"E"
+53 ;;D^STARTS WITH
+54 ;;R^"860.3:","860.31:2",3,"E"
+55 ;;D^LR
+56 ;;R^"860.3:","860.31:3",.01,"E"
+57 ;;D^3
+58 ;;R^"860.3:","860.31:3",1,"E"
+59 ;;D^OI LOCAL TEXT
+60 ;;R^"860.3:","860.31:3",2,"E"
+61 ;;D^CONTAINS
+62 ;;R^"860.3:","860.31:3",3,"E"
+63 ;;D^FRESH FROZEN PLASMA
+64 ;;EOR^
+65 ;;KEY^860.3:^AMINOGLYCOSIDE ORDER SESSION
+66 ;;R^"860.3:",.01,"E"
+67 ;;D^AMINOGLYCOSIDE ORDER SESSION
+68 ;;R^"860.3:",.02,"E"
+69 ;;D^CPRS ORDER PRESCAN
+70 ;;R^"860.3:","860.31:1",.01,"E"
+71 ;;D^1
+72 ;;R^"860.3:","860.31:1",1,"E"
+73 ;;D^ORDER MODE
+74 ;;R^"860.3:","860.31:1",2,"E"
+75 ;;D^EQ FREE TEXT
+76 ;;R^"860.3:","860.31:1",3,"E"
+77 ;;D^SESSION
+78 ;;R^"860.3:","860.31:2",.01,"E"
+79 ;;D^2
+80 ;;R^"860.3:","860.31:2",1,"E"
+81 ;;D^FILLER
+82 ;;R^"860.3:","860.31:2",2,"E"
+83 ;;D^STARTS WITH
+84 ;;R^"860.3:","860.31:2",3,"E"
+85 ;;D^PS
+86 ;;R^"860.3:","860.31:3",.01,"E"
+87 ;;D^3
+88 ;;R^"860.3:","860.31:3",1,"E"
+89 ;;D^VA DRUG CLASS
+90 ;;R^"860.3:","860.31:3",2,"E"
+91 ;;D^EQ FREE TEXT
+92 ;;R^"860.3:","860.31:3",3,"E"
+93 ;;D^AMINOGLYCOSIDES
+94 ;;EOR^
+95 ;;KEY^860.3:^PATIENT OVER CT OR MRI DEVICE LIMITATIONS
+96 ;;R^"860.3:",.01,"E"
+97 ;;D^PATIENT OVER CT OR MRI DEVICE LIMITATIONS
+98 ;;R^"860.3:",.02,"E"
+99 ;;D^CPRS ORDER PRESCAN
+100 ;;R^"860.3:","860.31:1",.01,"E"
+101 ;;D^1
+102 ;;R^"860.3:","860.31:1",1,"E"
+103 ;;D^ORDER MODE
+104 ;;R^"860.3:","860.31:1",2,"E"
+105 ;;D^EQ FREE TEXT
+106 ;;R^"860.3:","860.31:1",3,"E"
+107 ;;D^SELECT
+108 ;;R^"860.3:","860.31:2",.01,"E"
+109 ;;D^2
+110 ;;R^"860.3:","860.31:2",1,"E"
+111 ;;D^FILLER
+112 ;;R^"860.3:","860.31:2",2,"E"
+113 ;;D^EQ FREE TEXT
+114 ;;R^"860.3:","860.31:2",3,"E"
+115 ;;D^RA
+116 ;;R^"860.3:","860.31:3",.01,"E"
+117 ;;D^3
+118 ;;R^"860.3:","860.31:3",1,"E"
+119 ;;D^PATIENT TOO BIG FOR SCANNER FLAG
+120 ;;R^"860.3:","860.31:3",2,"E"
+121 ;;D^LOGICAL TRUE
+122 ;;EOR^
+123 ;;KEY^860.3:^CREATININE CLEARANCE ESTIMATE
+124 ;;R^"860.3:",.01,"E"
+125 ;;D^CREATININE CLEARANCE ESTIMATE
+126 ;;R^"860.3:",.02,"E"
+127 ;;D^CPRS ORDER PRESCAN
+128 ;;R^"860.3:","860.31:1",.01,"E"
+129 ;;D^1
+130 ;;R^"860.3:","860.31:1",1,"E"
+131 ;;D^ORDER MODE
+132 ;;R^"860.3:","860.31:1",2,"E"
+133 ;;D^EQ FREE TEXT
+134 ;;R^"860.3:","860.31:1",3,"E"
+135 ;;D^DISPLAY
+136 ;;R^"860.3:","860.31:2",.01,"E"
+137 ;;D^2
+138 ;;R^"860.3:","860.31:2",1,"E"
+139 ;;D^FILLER
+140 ;;R^"860.3:","860.31:2",2,"E"
+141 ;;D^STARTS WITH
+142 ;;R^"860.3:","860.31:2",3,"E"
+143 ;;D^PS
+144 ;;R^"860.3:","860.31:3",.01,"E"
+145 ;;D^3
+146 ;;R^"860.3:","860.31:3",1,"E"
+147 ;;D^CREATININE CLEARANCE (ESTIM) VALUE
+148 ;;R^"860.3:","860.31:3",2,"E"
+149 ;;D^LESS THAN
+150 ;;R^"860.3:","860.31:3",3,"E"
+151 ;;D^50
+152 ;;EOR^
+153 ;;KEY^860.3:^LAB STAT ORDER FINISHED
+154 ;;R^"860.3:",.01,"E"
+155 ;;D^LAB STAT ORDER FINISHED
+156 ;;R^"860.3:",.02,"E"
+157 ;;D^GENERIC HL7 MESSAGE ARRAY
+158 ;;EOR^
+159 ;;KEY^860.3:^STAT IMAGING RESULT
+160 ;;R^"860.3:",.01,"E"
+161 ;;D^STAT IMAGING RESULT
+162 ;;R^"860.3:",.02,"E"
+163 ;;D^GENERIC HL7 MESSAGE ARRAY
+164 ;;R^"860.3:","860.31:1",.01,"E"
+165 ;;D^1
+166 ;;R^"860.3:","860.31:1",1,"E"
+167 ;;D^ORDER PRIORITY (ORC)
+168 ;;R^"860.3:","860.31:1",2,"E"
+169 ;;D^EQ FREE TEXT
+170 ;;R^"860.3:","860.31:1",3,"E"
+171 ;;D^S
+172 ;;R^"860.3:","860.31:2",.01,"E"
+173 ;;D^2
+174 ;;R^"860.3:","860.31:2",1,"E"
+175 ;;D^REQUEST STATUS (OBR)
+176 ;;R^"860.3:","860.31:2",2,"E"
+177 ;;D^EQ FREE TEXT
+178 ;;R^"860.3:","860.31:2",3,"E"
+179 ;;D^F
+180 ;;R^"860.3:","860.31:3",.01,"E"
+181 ;;D^3
+182 ;;R^"860.3:","860.31:3",1,"E"
+183 ;;D^CONTROL CODE
+184 ;;R^"860.3:","860.31:3",2,"E"
+185 ;;D^EQUALS ELEMENT IN SET
+186 ;;R^"860.3:","860.31:3",3,"E"
+187 ;;D^RE
+188 ;;R^"860.3:","860.31:4",.01,"E"
+189 ;;D^4
+190 ;;R^"860.3:","860.31:4",1,"E"
+191 ;;D^FILLER
+192 ;;R^"860.3:","860.31:4",2,"E"
+193 ;;D^EQ FREE TEXT
+194 ;;R^"860.3:","860.31:4",3,"E"
+195 ;;D^RA
+196 ;;EOR^
+197 ;;KEY^860.3:^STAT LAB RESULT
+198 ;;R^"860.3:",.01,"E"
+199 ;;D^STAT LAB RESULT
+200 ;;R^"860.3:",.02,"E"
+201 ;;D^GENERIC HL7 MESSAGE ARRAY
+202 ;;R^"860.3:","860.31:2",.01,"E"
+203 ;;D^2
+204 ;;R^"860.3:","860.31:2",1,"E"
+205 ;;D^RESULT STATUS (OBX)
+206 ;;R^"860.3:","860.31:2",2,"E"
+207 ;;D^EQ FREE TEXT
+208 ;;R^"860.3:","860.31:2",3,"E"
+209 ;;D^F
+210 ;;R^"860.3:","860.31:3",.01,"E"
+211 ;1;
+212 ;