OCXDI01R ;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 ^OCXDI01S
;
Q
;
DATA ;
;
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LAB COLL D/T
;;R^"863.4:",.01,"E"
;;D^LAB COLL D/T
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^DATE/TIME
;;EOR^
;;KEY^863.4:^LAB RESULT
;;R^"863.4:",.01,"E"
;;D^LAB RESULT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LAB SPECIMEN
;;R^"863.4:",.01,"E"
;;D^LAB SPECIMEN
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LAB TEST NAME
;;R^"863.4:",.01,"E"
;;D^LAB TEST NAME
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^RADIOLOGY PROCEDURE
;;R^"863.4:",.01,"E"
;;D^RADIOLOGY PROCEDURE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ORDER STATUS
;;R^"863.4:",.01,"E"
;;D^ORDER STATUS
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^REQUEST STATUS
;;R^"863.4:",.01,"E"
;;D^REQUEST STATUS
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^HL7 LOCAL OI TEXT
;;R^"863.4:",.01,"E"
;;D^HL7 LOCAL OI TEXT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^MOVEMENT TYPE
;;R^"863.4:",.01,"E"
;;D^MOVEMENT TYPE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^MOVEMENT DATE
;;R^"863.4:",.01,"E"
;;D^MOVEMENT DATE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^DATE/TIME
;;EOR^
;;KEY^863.4:^ORDER FLAGGED
;;R^"863.4:",.01,"E"
;;D^ORDER FLAGGED
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^ORDER REQ CHART SIG
;;R^"863.4:",.01,"E"
;;D^ORDER REQ CHART SIG
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^SERVICE ORD. REQ. SIG.
;;R^"863.4:",.01,"E"
;;D^SERVICE ORD. REQ. SIG.
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^ORDER REQ. CO-SIG.
;;R^"863.4:",.01,"E"
;;D^ORDER REQ. CO-SIG.
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^ORDER REQ. ELEC. SIG.
;;R^"863.4:",.01,"E"
;;D^ORDER REQ. ELEC. SIG.
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^ORDER RESULT READY FLAG
;;R^"863.4:",.01,"E"
;;D^ORDER RESULT READY FLAG
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^BOOLEAN
;;EOR^
;;KEY^863.4:^OBSERVATION VALUE
;;R^"863.4:",.01,"E"
;;D^OBSERVATION VALUE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ORDER NUMBER
;;R^"863.4:",.01,"E"
;;D^ORDER NUMBER
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^NUMERIC
;;EOR^
;;KEY^863.4:^ORDERABLE ITEM
;;R^"863.4:",.01,"E"
;;D^ORDERABLE ITEM
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^IEN
;;R^"863.4:",.01,"E"
;;D^IEN
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^NUMERIC
;;EOR^
;;KEY^863.4:^ORDERABLE ITEM IEN
;;R^"863.4:",.01,"E"
;;D^ORDERABLE ITEM IEN
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^NUMERIC
;;EOR^
;;KEY^863.4:^FILLER
;;R^"863.4:",.01,"E"
;;D^FILLER
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ORDER MODE
;;R^"863.4:",.01,"E"
;;D^ORDER MODE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^NATIONAL ID
;;R^"863.4:",.01,"E"
;;D^NATIONAL ID
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^NATIONAL ID TEXT
;;R^"863.4:",.01,"E"
;;D^NATIONAL ID TEXT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^CODING SYSTEM
;;R^"863.4:",.01,"E"
;;D^CODING SYSTEM
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LOCAL ID
;;R^"863.4:",.01,"E"
;;D^LOCAL ID
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LOCAL TEXT
;;R^"863.4:",.01,"E"
;;D^LOCAL TEXT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^LOCAL CODING SYSTEM
;1;
;
OCXDI01R ;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 ^OCXDI01S
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^DATA TYPE
+3 ;;R^"863.4:","863.41:1",1,"E"
+4 ;;D^FREE TEXT
+5 ;;EOR^
+6 ;;KEY^863.4:^LAB COLL D/T
+7 ;;R^"863.4:",.01,"E"
+8 ;;D^LAB COLL D/T
+9 ;;R^"863.4:","863.41:1",.01,"E"
+10 ;;D^DATA TYPE
+11 ;;R^"863.4:","863.41:1",1,"E"
+12 ;;D^DATE/TIME
+13 ;;EOR^
+14 ;;KEY^863.4:^LAB RESULT
+15 ;;R^"863.4:",.01,"E"
+16 ;;D^LAB RESULT
+17 ;;R^"863.4:","863.41:1",.01,"E"
+18 ;;D^DATA TYPE
+19 ;;R^"863.4:","863.41:1",1,"E"
+20 ;;D^FREE TEXT
+21 ;;EOR^
+22 ;;KEY^863.4:^LAB SPECIMEN
+23 ;;R^"863.4:",.01,"E"
+24 ;;D^LAB SPECIMEN
+25 ;;R^"863.4:","863.41:1",.01,"E"
+26 ;;D^DATA TYPE
+27 ;;R^"863.4:","863.41:1",1,"E"
+28 ;;D^FREE TEXT
+29 ;;EOR^
+30 ;;KEY^863.4:^LAB TEST NAME
+31 ;;R^"863.4:",.01,"E"
+32 ;;D^LAB TEST NAME
+33 ;;R^"863.4:","863.41:1",.01,"E"
+34 ;;D^DATA TYPE
+35 ;;R^"863.4:","863.41:1",1,"E"
+36 ;;D^FREE TEXT
+37 ;;EOR^
+38 ;;KEY^863.4:^RADIOLOGY PROCEDURE
+39 ;;R^"863.4:",.01,"E"
+40 ;;D^RADIOLOGY PROCEDURE
+41 ;;R^"863.4:","863.41:1",.01,"E"
+42 ;;D^DATA TYPE
+43 ;;R^"863.4:","863.41:1",1,"E"
+44 ;;D^FREE TEXT
+45 ;;EOR^
+46 ;;KEY^863.4:^ORDER STATUS
+47 ;;R^"863.4:",.01,"E"
+48 ;;D^ORDER STATUS
+49 ;;R^"863.4:","863.41:1",.01,"E"
+50 ;;D^DATA TYPE
+51 ;;R^"863.4:","863.41:1",1,"E"
+52 ;;D^FREE TEXT
+53 ;;EOR^
+54 ;;KEY^863.4:^REQUEST STATUS
+55 ;;R^"863.4:",.01,"E"
+56 ;;D^REQUEST STATUS
+57 ;;R^"863.4:","863.41:1",.01,"E"
+58 ;;D^DATA TYPE
+59 ;;R^"863.4:","863.41:1",1,"E"
+60 ;;D^FREE TEXT
+61 ;;EOR^
+62 ;;KEY^863.4:^HL7 LOCAL OI TEXT
+63 ;;R^"863.4:",.01,"E"
+64 ;;D^HL7 LOCAL OI TEXT
+65 ;;R^"863.4:","863.41:1",.01,"E"
+66 ;;D^DATA TYPE
+67 ;;R^"863.4:","863.41:1",1,"E"
+68 ;;D^FREE TEXT
+69 ;;EOR^
+70 ;;KEY^863.4:^MOVEMENT TYPE
+71 ;;R^"863.4:",.01,"E"
+72 ;;D^MOVEMENT TYPE
+73 ;;R^"863.4:","863.41:1",.01,"E"
+74 ;;D^DATA TYPE
+75 ;;R^"863.4:","863.41:1",1,"E"
+76 ;;D^FREE TEXT
+77 ;;EOR^
+78 ;;KEY^863.4:^MOVEMENT DATE
+79 ;;R^"863.4:",.01,"E"
+80 ;;D^MOVEMENT DATE
+81 ;;R^"863.4:","863.41:1",.01,"E"
+82 ;;D^DATA TYPE
+83 ;;R^"863.4:","863.41:1",1,"E"
+84 ;;D^DATE/TIME
+85 ;;EOR^
+86 ;;KEY^863.4:^ORDER FLAGGED
+87 ;;R^"863.4:",.01,"E"
+88 ;;D^ORDER FLAGGED
+89 ;;R^"863.4:","863.41:1",.01,"E"
+90 ;;D^DATA TYPE
+91 ;;R^"863.4:","863.41:1",1,"E"
+92 ;;D^BOOLEAN
+93 ;;EOR^
+94 ;;KEY^863.4:^ORDER REQ CHART SIG
+95 ;;R^"863.4:",.01,"E"
+96 ;;D^ORDER REQ CHART SIG
+97 ;;R^"863.4:","863.41:1",.01,"E"
+98 ;;D^DATA TYPE
+99 ;;R^"863.4:","863.41:1",1,"E"
+100 ;;D^BOOLEAN
+101 ;;EOR^
+102 ;;KEY^863.4:^SERVICE ORD. REQ. SIG.
+103 ;;R^"863.4:",.01,"E"
+104 ;;D^SERVICE ORD. REQ. SIG.
+105 ;;R^"863.4:","863.41:1",.01,"E"
+106 ;;D^DATA TYPE
+107 ;;R^"863.4:","863.41:1",1,"E"
+108 ;;D^BOOLEAN
+109 ;;EOR^
+110 ;;KEY^863.4:^ORDER REQ. CO-SIG.
+111 ;;R^"863.4:",.01,"E"
+112 ;;D^ORDER REQ. CO-SIG.
+113 ;;R^"863.4:","863.41:1",.01,"E"
+114 ;;D^DATA TYPE
+115 ;;R^"863.4:","863.41:1",1,"E"
+116 ;;D^BOOLEAN
+117 ;;EOR^
+118 ;;KEY^863.4:^ORDER REQ. ELEC. SIG.
+119 ;;R^"863.4:",.01,"E"
+120 ;;D^ORDER REQ. ELEC. SIG.
+121 ;;R^"863.4:","863.41:1",.01,"E"
+122 ;;D^DATA TYPE
+123 ;;R^"863.4:","863.41:1",1,"E"
+124 ;;D^BOOLEAN
+125 ;;EOR^
+126 ;;KEY^863.4:^ORDER RESULT READY FLAG
+127 ;;R^"863.4:",.01,"E"
+128 ;;D^ORDER RESULT READY FLAG
+129 ;;R^"863.4:","863.41:1",.01,"E"
+130 ;;D^DATA TYPE
+131 ;;R^"863.4:","863.41:1",1,"E"
+132 ;;D^BOOLEAN
+133 ;;EOR^
+134 ;;KEY^863.4:^OBSERVATION VALUE
+135 ;;R^"863.4:",.01,"E"
+136 ;;D^OBSERVATION VALUE
+137 ;;R^"863.4:","863.41:1",.01,"E"
+138 ;;D^DATA TYPE
+139 ;;R^"863.4:","863.41:1",1,"E"
+140 ;;D^FREE TEXT
+141 ;;EOR^
+142 ;;KEY^863.4:^ORDER NUMBER
+143 ;;R^"863.4:",.01,"E"
+144 ;;D^ORDER NUMBER
+145 ;;R^"863.4:","863.41:1",.01,"E"
+146 ;;D^DATA TYPE
+147 ;;R^"863.4:","863.41:1",1,"E"
+148 ;;D^NUMERIC
+149 ;;EOR^
+150 ;;KEY^863.4:^ORDERABLE ITEM
+151 ;;R^"863.4:",.01,"E"
+152 ;;D^ORDERABLE ITEM
+153 ;;R^"863.4:","863.41:1",.01,"E"
+154 ;;D^DATA TYPE
+155 ;;R^"863.4:","863.41:1",1,"E"
+156 ;;D^FREE TEXT
+157 ;;EOR^
+158 ;;KEY^863.4:^IEN
+159 ;;R^"863.4:",.01,"E"
+160 ;;D^IEN
+161 ;;R^"863.4:","863.41:1",.01,"E"
+162 ;;D^DATA TYPE
+163 ;;R^"863.4:","863.41:1",1,"E"
+164 ;;D^NUMERIC
+165 ;;EOR^
+166 ;;KEY^863.4:^ORDERABLE ITEM IEN
+167 ;;R^"863.4:",.01,"E"
+168 ;;D^ORDERABLE ITEM IEN
+169 ;;R^"863.4:","863.41:1",.01,"E"
+170 ;;D^DATA TYPE
+171 ;;R^"863.4:","863.41:1",1,"E"
+172 ;;D^NUMERIC
+173 ;;EOR^
+174 ;;KEY^863.4:^FILLER
+175 ;;R^"863.4:",.01,"E"
+176 ;;D^FILLER
+177 ;;R^"863.4:","863.41:1",.01,"E"
+178 ;;D^DATA TYPE
+179 ;;R^"863.4:","863.41:1",1,"E"
+180 ;;D^FREE TEXT
+181 ;;EOR^
+182 ;;KEY^863.4:^ORDER MODE
+183 ;;R^"863.4:",.01,"E"
+184 ;;D^ORDER MODE
+185 ;;R^"863.4:","863.41:1",.01,"E"
+186 ;;D^DATA TYPE
+187 ;;R^"863.4:","863.41:1",1,"E"
+188 ;;D^FREE TEXT
+189 ;;EOR^
+190 ;;KEY^863.4:^NATIONAL ID
+191 ;;R^"863.4:",.01,"E"
+192 ;;D^NATIONAL ID
+193 ;;R^"863.4:","863.41:1",.01,"E"
+194 ;;D^DATA TYPE
+195 ;;R^"863.4:","863.41:1",1,"E"
+196 ;;D^FREE TEXT
+197 ;;EOR^
+198 ;;KEY^863.4:^NATIONAL ID TEXT
+199 ;;R^"863.4:",.01,"E"
+200 ;;D^NATIONAL ID TEXT
+201 ;;R^"863.4:","863.41:1",.01,"E"
+202 ;;D^DATA TYPE
+203 ;;R^"863.4:","863.41:1",1,"E"
+204 ;;D^FREE TEXT
+205 ;;EOR^
+206 ;;KEY^863.4:^CODING SYSTEM
+207 ;;R^"863.4:",.01,"E"
+208 ;;D^CODING SYSTEM
+209 ;;R^"863.4:","863.41:1",.01,"E"
+210 ;;D^DATA TYPE
+211 ;;R^"863.4:","863.41:1",1,"E"
+212 ;;D^FREE TEXT
+213 ;;EOR^
+214 ;;KEY^863.4:^LOCAL ID
+215 ;;R^"863.4:",.01,"E"
+216 ;;D^LOCAL ID
+217 ;;R^"863.4:","863.41:1",.01,"E"
+218 ;;D^DATA TYPE
+219 ;;R^"863.4:","863.41:1",1,"E"
+220 ;;D^FREE TEXT
+221 ;;EOR^
+222 ;;KEY^863.4:^LOCAL TEXT
+223 ;;R^"863.4:",.01,"E"
+224 ;;D^LOCAL TEXT
+225 ;;R^"863.4:","863.41:1",.01,"E"
+226 ;;D^DATA TYPE
+227 ;;R^"863.4:","863.41:1",1,"E"
+228 ;;D^FREE TEXT
+229 ;;EOR^
+230 ;;KEY^863.4:^LOCAL CODING SYSTEM
+231 ;1;
+232 ;