OCXDI01T ;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 ^OCXDI01U
;
Q
;
DATA ;
;
;;R^"863.4:",.01,"E"
;;D^OVERSIZE 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:^OVERSIZE DEVICE
;;R^"863.4:",.01,"E"
;;D^OVERSIZE DEVICE
;;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:^CREAT. CLEAR. VALUE
;;R^"863.4:",.01,"E"
;;D^CREAT. CLEAR. VALUE
;;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:^CREAT CLEAR DATE
;;R^"863.4:",.01,"E"
;;D^CREAT CLEAR 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:^LAB TEST CODE
;;R^"863.4:",.01,"E"
;;D^LAB TEST CODE
;;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:^WARD ROOM-BED
;;R^"863.4:",.01,"E"
;;D^WARD ROOM-BED
;;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:^INPATIENT
;;R^"863.4:",.01,"E"
;;D^INPATIENT
;;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:^PACKAGE ID
;;R^"863.4:",.01,"E"
;;D^PACKAGE 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:^TREATING SPECIALTY
;;R^"863.4:",.01,"E"
;;D^TREATING SPECIALTY
;;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:^WARD NAME
;;R^"863.4:",.01,"E"
;;D^WARD 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:^NEW MOVEMENT
;;R^"863.4:",.01,"E"
;;D^NEW MOVEMENT
;;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:^CURRENT LITHIUM FLAG
;;R^"863.4:",.01,"E"
;;D^CURRENT LITHIUM 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:^NATIONAL LAB ID
;;R^"863.4:",.01,"E"
;;D^NATIONAL LAB 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:^LAB TEST DATE
;;R^"863.4:",.01,"E"
;;D^LAB TEST 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:^CURRENT GLUCOPHAGE FLAG
;;R^"863.4:",.01,"E"
;;D^CURRENT GLUCOPHAGE 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:^CURRENT METFORMIN FLAG
;;R^"863.4:",.01,"E"
;;D^CURRENT METFORMIN 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:^PROBLEM LIST HAS DIABETES
;;R^"863.4:",.01,"E"
;;D^PROBLEM LIST HAS DIABETES
;;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 TEXT
;;R^"863.4:",.01,"E"
;;D^ORDER 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:^LAB TEST ORDER DATE
;;R^"863.4:",.01,"E"
;;D^LAB TEST ORDER 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:^NUMBER OF ACTIVE MEDS
;;R^"863.4:",.01,"E"
;;D^NUMBER OF ACTIVE MEDS
;;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:^FREE TEXT
;;R^"863.4:",.01,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ORIGINAL ORDERING PROVIDER
;;R^"863.4:",.01,"E"
;;D^ORIGINAL ORDERING PROVIDER
;;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 ENTERED BY
;;R^"863.4:",.01,"E"
;;D^HL7 ENTERED BY
;;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:^ORDERED BY
;;R^"863.4:",.01,"E"
;;D^ORDERED BY
;;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 ID
;;R^"863.4:",.01,"E"
;;D^LAB TEST ID
;;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:^LAB TEST PRINT NAME
;;R^"863.4:",.01,"E"
;;D^LAB TEST PRINT 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:^DATE/TIME
;;R^"863.4:",.01,"E"
;;D^DATE/TIME
;;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:^SERUM CREATININE VALUE
;;R^"863.4:",.01,"E"
;;D^SERUM CREATININE VALUE
;;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:^SERUM CREATININE TEXT
;;R^"863.4:",.01,"E"
;;D^SERUM CREATININE TEXT
;;R^"863.4:","863.41:1",.01,"E"
;1;
;
OCXDI01T ;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 ^OCXDI01U
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.4:",.01,"E"
+3 ;;D^OVERSIZE FLAG
+4 ;;R^"863.4:","863.41:1",.01,"E"
+5 ;;D^DATA TYPE
+6 ;;R^"863.4:","863.41:1",1,"E"
+7 ;;D^BOOLEAN
+8 ;;EOR^
+9 ;;KEY^863.4:^OVERSIZE DEVICE
+10 ;;R^"863.4:",.01,"E"
+11 ;;D^OVERSIZE DEVICE
+12 ;;R^"863.4:","863.41:1",.01,"E"
+13 ;;D^DATA TYPE
+14 ;;R^"863.4:","863.41:1",1,"E"
+15 ;;D^FREE TEXT
+16 ;;EOR^
+17 ;;KEY^863.4:^CREAT. CLEAR. VALUE
+18 ;;R^"863.4:",.01,"E"
+19 ;;D^CREAT. CLEAR. VALUE
+20 ;;R^"863.4:","863.41:1",.01,"E"
+21 ;;D^DATA TYPE
+22 ;;R^"863.4:","863.41:1",1,"E"
+23 ;;D^NUMERIC
+24 ;;EOR^
+25 ;;KEY^863.4:^CREAT CLEAR DATE
+26 ;;R^"863.4:",.01,"E"
+27 ;;D^CREAT CLEAR DATE
+28 ;;R^"863.4:","863.41:1",.01,"E"
+29 ;;D^DATA TYPE
+30 ;;R^"863.4:","863.41:1",1,"E"
+31 ;;D^DATE/TIME
+32 ;;EOR^
+33 ;;KEY^863.4:^LAB TEST CODE
+34 ;;R^"863.4:",.01,"E"
+35 ;;D^LAB TEST CODE
+36 ;;R^"863.4:","863.41:1",.01,"E"
+37 ;;D^DATA TYPE
+38 ;;R^"863.4:","863.41:1",1,"E"
+39 ;;D^FREE TEXT
+40 ;;EOR^
+41 ;;KEY^863.4:^WARD ROOM-BED
+42 ;;R^"863.4:",.01,"E"
+43 ;;D^WARD ROOM-BED
+44 ;;R^"863.4:","863.41:1",.01,"E"
+45 ;;D^DATA TYPE
+46 ;;R^"863.4:","863.41:1",1,"E"
+47 ;;D^FREE TEXT
+48 ;;EOR^
+49 ;;KEY^863.4:^INPATIENT
+50 ;;R^"863.4:",.01,"E"
+51 ;;D^INPATIENT
+52 ;;R^"863.4:","863.41:1",.01,"E"
+53 ;;D^DATA TYPE
+54 ;;R^"863.4:","863.41:1",1,"E"
+55 ;;D^BOOLEAN
+56 ;;EOR^
+57 ;;KEY^863.4:^PACKAGE ID
+58 ;;R^"863.4:",.01,"E"
+59 ;;D^PACKAGE ID
+60 ;;R^"863.4:","863.41:1",.01,"E"
+61 ;;D^DATA TYPE
+62 ;;R^"863.4:","863.41:1",1,"E"
+63 ;;D^FREE TEXT
+64 ;;EOR^
+65 ;;KEY^863.4:^TREATING SPECIALTY
+66 ;;R^"863.4:",.01,"E"
+67 ;;D^TREATING SPECIALTY
+68 ;;R^"863.4:","863.41:1",.01,"E"
+69 ;;D^DATA TYPE
+70 ;;R^"863.4:","863.41:1",1,"E"
+71 ;;D^FREE TEXT
+72 ;;EOR^
+73 ;;KEY^863.4:^WARD NAME
+74 ;;R^"863.4:",.01,"E"
+75 ;;D^WARD NAME
+76 ;;R^"863.4:","863.41:1",.01,"E"
+77 ;;D^DATA TYPE
+78 ;;R^"863.4:","863.41:1",1,"E"
+79 ;;D^FREE TEXT
+80 ;;EOR^
+81 ;;KEY^863.4:^NEW MOVEMENT
+82 ;;R^"863.4:",.01,"E"
+83 ;;D^NEW MOVEMENT
+84 ;;R^"863.4:","863.41:1",.01,"E"
+85 ;;D^DATA TYPE
+86 ;;R^"863.4:","863.41:1",1,"E"
+87 ;;D^BOOLEAN
+88 ;;EOR^
+89 ;;KEY^863.4:^CURRENT LITHIUM FLAG
+90 ;;R^"863.4:",.01,"E"
+91 ;;D^CURRENT LITHIUM FLAG
+92 ;;R^"863.4:","863.41:1",.01,"E"
+93 ;;D^DATA TYPE
+94 ;;R^"863.4:","863.41:1",1,"E"
+95 ;;D^BOOLEAN
+96 ;;EOR^
+97 ;;KEY^863.4:^NATIONAL LAB ID
+98 ;;R^"863.4:",.01,"E"
+99 ;;D^NATIONAL LAB ID
+100 ;;R^"863.4:","863.41:1",.01,"E"
+101 ;;D^DATA TYPE
+102 ;;R^"863.4:","863.41:1",1,"E"
+103 ;;D^FREE TEXT
+104 ;;EOR^
+105 ;;KEY^863.4:^LAB TEST DATE
+106 ;;R^"863.4:",.01,"E"
+107 ;;D^LAB TEST DATE
+108 ;;R^"863.4:","863.41:1",.01,"E"
+109 ;;D^DATA TYPE
+110 ;;R^"863.4:","863.41:1",1,"E"
+111 ;;D^DATE/TIME
+112 ;;EOR^
+113 ;;KEY^863.4:^CURRENT GLUCOPHAGE FLAG
+114 ;;R^"863.4:",.01,"E"
+115 ;;D^CURRENT GLUCOPHAGE FLAG
+116 ;;R^"863.4:","863.41:1",.01,"E"
+117 ;;D^DATA TYPE
+118 ;;R^"863.4:","863.41:1",1,"E"
+119 ;;D^BOOLEAN
+120 ;;EOR^
+121 ;;KEY^863.4:^CURRENT METFORMIN FLAG
+122 ;;R^"863.4:",.01,"E"
+123 ;;D^CURRENT METFORMIN FLAG
+124 ;;R^"863.4:","863.41:1",.01,"E"
+125 ;;D^DATA TYPE
+126 ;;R^"863.4:","863.41:1",1,"E"
+127 ;;D^BOOLEAN
+128 ;;EOR^
+129 ;;KEY^863.4:^PROBLEM LIST HAS DIABETES
+130 ;;R^"863.4:",.01,"E"
+131 ;;D^PROBLEM LIST HAS DIABETES
+132 ;;R^"863.4:","863.41:1",.01,"E"
+133 ;;D^DATA TYPE
+134 ;;R^"863.4:","863.41:1",1,"E"
+135 ;;D^BOOLEAN
+136 ;;EOR^
+137 ;;KEY^863.4:^ORDER TEXT
+138 ;;R^"863.4:",.01,"E"
+139 ;;D^ORDER TEXT
+140 ;;R^"863.4:","863.41:1",.01,"E"
+141 ;;D^DATA TYPE
+142 ;;R^"863.4:","863.41:1",1,"E"
+143 ;;D^FREE TEXT
+144 ;;EOR^
+145 ;;KEY^863.4:^LAB TEST ORDER DATE
+146 ;;R^"863.4:",.01,"E"
+147 ;;D^LAB TEST ORDER DATE
+148 ;;R^"863.4:","863.41:1",.01,"E"
+149 ;;D^DATA TYPE
+150 ;;R^"863.4:","863.41:1",1,"E"
+151 ;;D^DATE/TIME
+152 ;;EOR^
+153 ;;KEY^863.4:^NUMBER OF ACTIVE MEDS
+154 ;;R^"863.4:",.01,"E"
+155 ;;D^NUMBER OF ACTIVE MEDS
+156 ;;R^"863.4:","863.41:1",.01,"E"
+157 ;;D^DATA TYPE
+158 ;;R^"863.4:","863.41:1",1,"E"
+159 ;;D^NUMERIC
+160 ;;EOR^
+161 ;;KEY^863.4:^FREE TEXT
+162 ;;R^"863.4:",.01,"E"
+163 ;;D^FREE TEXT
+164 ;;EOR^
+165 ;;KEY^863.4:^ORIGINAL ORDERING PROVIDER
+166 ;;R^"863.4:",.01,"E"
+167 ;;D^ORIGINAL ORDERING PROVIDER
+168 ;;R^"863.4:","863.41:1",.01,"E"
+169 ;;D^DATA TYPE
+170 ;;R^"863.4:","863.41:1",1,"E"
+171 ;;D^FREE TEXT
+172 ;;EOR^
+173 ;;KEY^863.4:^HL7 ENTERED BY
+174 ;;R^"863.4:",.01,"E"
+175 ;;D^HL7 ENTERED BY
+176 ;;R^"863.4:","863.41:1",.01,"E"
+177 ;;D^DATA TYPE
+178 ;;R^"863.4:","863.41:1",1,"E"
+179 ;;D^FREE TEXT
+180 ;;EOR^
+181 ;;KEY^863.4:^ORDERED BY
+182 ;;R^"863.4:",.01,"E"
+183 ;;D^ORDERED BY
+184 ;;R^"863.4:","863.41:1",.01,"E"
+185 ;;D^DATA TYPE
+186 ;;R^"863.4:","863.41:1",1,"E"
+187 ;;D^FREE TEXT
+188 ;;EOR^
+189 ;;KEY^863.4:^LAB TEST ID
+190 ;;R^"863.4:",.01,"E"
+191 ;;D^LAB TEST ID
+192 ;;R^"863.4:","863.41:1",.01,"E"
+193 ;;D^DATA TYPE
+194 ;;R^"863.4:","863.41:1",1,"E"
+195 ;;D^NUMERIC
+196 ;;EOR^
+197 ;;KEY^863.4:^LAB TEST PRINT NAME
+198 ;;R^"863.4:",.01,"E"
+199 ;;D^LAB TEST PRINT NAME
+200 ;;R^"863.4:","863.41:1",.01,"E"
+201 ;;D^DATA TYPE
+202 ;;R^"863.4:","863.41:1",1,"E"
+203 ;;D^FREE TEXT
+204 ;;EOR^
+205 ;;KEY^863.4:^DATE/TIME
+206 ;;R^"863.4:",.01,"E"
+207 ;;D^DATE/TIME
+208 ;;R^"863.4:","863.41:1",.01,"E"
+209 ;;D^DATA TYPE
+210 ;;R^"863.4:","863.41:1",1,"E"
+211 ;;D^FREE TEXT
+212 ;;EOR^
+213 ;;KEY^863.4:^SERUM CREATININE VALUE
+214 ;;R^"863.4:",.01,"E"
+215 ;;D^SERUM CREATININE VALUE
+216 ;;R^"863.4:","863.41:1",.01,"E"
+217 ;;D^DATA TYPE
+218 ;;R^"863.4:","863.41:1",1,"E"
+219 ;;D^NUMERIC
+220 ;;EOR^
+221 ;;KEY^863.4:^SERUM CREATININE TEXT
+222 ;;R^"863.4:",.01,"E"
+223 ;;D^SERUM CREATININE TEXT
+224 ;;R^"863.4:","863.41:1",.01,"E"
+225 ;1;
+226 ;