OCXDI01U ;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 ^OCXDI01V
;
Q
;
DATA ;
;
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^CREATININE FLAG
;;R^"863.4:",.01,"E"
;;D^CREATININE 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:^WBC 13 DAYS
;;R^"863.4:",.01,"E"
;;D^WBC 13 DAYS
;;EOR^
;;KEY^863.4:^WBC W/IN 13 DAYS
;;R^"863.4:",.01,"E"
;;D^WBC W/IN 13 DAYS
;;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:^RECENT WBC RESULT
;;R^"863.4:",.01,"E"
;;D^RECENT WBC 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:^BARIUM ORDER STATUS
;;R^"863.4:",.01,"E"
;;D^BARIUM 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:^CHOLECYSTOGRAM ORDER STATUS
;;R^"863.4:",.01,"E"
;;D^CHOLECYSTOGRAM 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:^POLYPHARMACY
;;R^"863.4:",.01,"E"
;;D^POLYPHARMACY
;;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:^GLUCOPHAGE CREATININE
;;R^"863.4:",.01,"E"
;;D^GLUCOPHAGE CREATININE
;;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:^GLUCO-CREATININE FLAG
;;R^"863.4:",.01,"E"
;;D^GLUCO-CREATININE 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:^GLUCO-CREATININE TEXT
;;R^"863.4:",.01,"E"
;;D^GLUCO-CREATININE 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:^GLUCO-CREATININE RESULT
;;R^"863.4:",.01,"E"
;;D^GLUCO-CREATININE RESULT
;;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:^GLUCO_CREATININE DAYS
;;R^"863.4:",.01,"E"
;;D^GLUCO_CREATININE DAYS
;;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:^WBC W/IN 6 DAYS
;;R^"863.4:",.01,"E"
;;D^WBC W/IN 6 DAYS
;;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:^ANC W/IN 6 DAYS
;;R^"863.4:",.01,"E"
;;D^ANC W/IN 6 DAYS
;;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:^RECENT ANC
;;R^"863.4:",.01,"E"
;;D^RECENT ANC
;;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:^CLOZAPINE LABS W/IN 6 DAYS
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE LABS W/IN 6 DAYS
;;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:^CLOZAPINE LAB RESULTS
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE LAB RESULTS
;;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:^DISPENSE DRUG
;;R^"863.4:",.01,"E"
;;D^DISPENSE DRUG
;;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:^CLOZAPINE MED
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE MED
;;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:^QUERY MODE
;;R^"863.4:",.01,"E"
;;D^QUERY 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:^QUERY DATA
;;R^"863.4:",.01,"E"
;;D^QUERY DATA
;;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:^WBC W/IN 7 DAYS
;;R^"863.4:",.01,"E"
;;D^WBC W/IN 7 DAYS
;;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:^CLOZAPINE ANC W/IN 7 FLAG
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE ANC W/IN 7 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:^CLOZAPINE ANC W/IN 7 RESULT
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE ANC W/IN 7 RESULT
;;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:^CLOZAPINE WBC W/IN 7 FLAG
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE WBC W/IN 7 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:^CLOZAPINE WBC W/IN 7 RESULT
;;R^"863.4:",.01,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^NUMERIC
;;EOR^
;;EOF^OCXS(863.4)^1
;;SOF^863.2 OCX MDD SUBJECT
;;KEY^863.2:^PATIENT
;;R^"863.2:",.01,"E"
;;D^PATIENT
;;R^"863.2:","863.21:1",.01,"E"
;;D^FILE
;;R^"863.2:","863.21:1",1,"E"
;;D^2
;;EOR^
;;KEY^863.2:^VISIT
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI01U 5556 printed Dec 13, 2024@02:23:35 Page 2
OCXDI01U ;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 ^OCXDI01V
+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:^CREATININE FLAG
+7 ;;R^"863.4:",.01,"E"
+8 ;;D^CREATININE FLAG
+9 ;;R^"863.4:","863.41:1",.01,"E"
+10 ;;D^DATA TYPE
+11 ;;R^"863.4:","863.41:1",1,"E"
+12 ;;D^BOOLEAN
+13 ;;EOR^
+14 ;;KEY^863.4:^WBC 13 DAYS
+15 ;;R^"863.4:",.01,"E"
+16 ;;D^WBC 13 DAYS
+17 ;;EOR^
+18 ;;KEY^863.4:^WBC W/IN 13 DAYS
+19 ;;R^"863.4:",.01,"E"
+20 ;;D^WBC W/IN 13 DAYS
+21 ;;R^"863.4:","863.41:1",.01,"E"
+22 ;;D^DATA TYPE
+23 ;;R^"863.4:","863.41:1",1,"E"
+24 ;;D^BOOLEAN
+25 ;;EOR^
+26 ;;KEY^863.4:^RECENT WBC RESULT
+27 ;;R^"863.4:",.01,"E"
+28 ;;D^RECENT WBC RESULT
+29 ;;R^"863.4:","863.41:1",.01,"E"
+30 ;;D^DATA TYPE
+31 ;;R^"863.4:","863.41:1",1,"E"
+32 ;;D^FREE TEXT
+33 ;;EOR^
+34 ;;KEY^863.4:^BARIUM ORDER STATUS
+35 ;;R^"863.4:",.01,"E"
+36 ;;D^BARIUM ORDER STATUS
+37 ;;R^"863.4:","863.41:1",.01,"E"
+38 ;;D^DATA TYPE
+39 ;;R^"863.4:","863.41:1",1,"E"
+40 ;;D^FREE TEXT
+41 ;;EOR^
+42 ;;KEY^863.4:^CHOLECYSTOGRAM ORDER STATUS
+43 ;;R^"863.4:",.01,"E"
+44 ;;D^CHOLECYSTOGRAM ORDER STATUS
+45 ;;R^"863.4:","863.41:1",.01,"E"
+46 ;;D^DATA TYPE
+47 ;;R^"863.4:","863.41:1",1,"E"
+48 ;;D^FREE TEXT
+49 ;;EOR^
+50 ;;KEY^863.4:^POLYPHARMACY
+51 ;;R^"863.4:",.01,"E"
+52 ;;D^POLYPHARMACY
+53 ;;R^"863.4:","863.41:1",.01,"E"
+54 ;;D^DATA TYPE
+55 ;;R^"863.4:","863.41:1",1,"E"
+56 ;;D^BOOLEAN
+57 ;;EOR^
+58 ;;KEY^863.4:^GLUCOPHAGE CREATININE
+59 ;;R^"863.4:",.01,"E"
+60 ;;D^GLUCOPHAGE CREATININE
+61 ;;R^"863.4:","863.41:1",.01,"E"
+62 ;;D^DATA TYPE
+63 ;;R^"863.4:","863.41:1",1,"E"
+64 ;;D^BOOLEAN
+65 ;;EOR^
+66 ;;KEY^863.4:^GLUCO-CREATININE FLAG
+67 ;;R^"863.4:",.01,"E"
+68 ;;D^GLUCO-CREATININE FLAG
+69 ;;R^"863.4:","863.41:1",.01,"E"
+70 ;;D^DATA TYPE
+71 ;;R^"863.4:","863.41:1",1,"E"
+72 ;;D^BOOLEAN
+73 ;;EOR^
+74 ;;KEY^863.4:^GLUCO-CREATININE TEXT
+75 ;;R^"863.4:",.01,"E"
+76 ;;D^GLUCO-CREATININE TEXT
+77 ;;R^"863.4:","863.41:1",.01,"E"
+78 ;;D^DATA TYPE
+79 ;;R^"863.4:","863.41:1",1,"E"
+80 ;;D^FREE TEXT
+81 ;;EOR^
+82 ;;KEY^863.4:^GLUCO-CREATININE RESULT
+83 ;;R^"863.4:",.01,"E"
+84 ;;D^GLUCO-CREATININE RESULT
+85 ;;R^"863.4:","863.41:1",.01,"E"
+86 ;;D^DATA TYPE
+87 ;;R^"863.4:","863.41:1",1,"E"
+88 ;;D^NUMERIC
+89 ;;EOR^
+90 ;;KEY^863.4:^GLUCO_CREATININE DAYS
+91 ;;R^"863.4:",.01,"E"
+92 ;;D^GLUCO_CREATININE DAYS
+93 ;;R^"863.4:","863.41:1",.01,"E"
+94 ;;D^DATA TYPE
+95 ;;R^"863.4:","863.41:1",1,"E"
+96 ;;D^NUMERIC
+97 ;;EOR^
+98 ;;KEY^863.4:^WBC W/IN 6 DAYS
+99 ;;R^"863.4:",.01,"E"
+100 ;;D^WBC W/IN 6 DAYS
+101 ;;R^"863.4:","863.41:1",.01,"E"
+102 ;;D^DATA TYPE
+103 ;;R^"863.4:","863.41:1",1,"E"
+104 ;;D^BOOLEAN
+105 ;;EOR^
+106 ;;KEY^863.4:^ANC W/IN 6 DAYS
+107 ;;R^"863.4:",.01,"E"
+108 ;;D^ANC W/IN 6 DAYS
+109 ;;R^"863.4:","863.41:1",.01,"E"
+110 ;;D^DATA TYPE
+111 ;;R^"863.4:","863.41:1",1,"E"
+112 ;;D^BOOLEAN
+113 ;;EOR^
+114 ;;KEY^863.4:^RECENT ANC
+115 ;;R^"863.4:",.01,"E"
+116 ;;D^RECENT ANC
+117 ;;R^"863.4:","863.41:1",.01,"E"
+118 ;;D^DATA TYPE
+119 ;;R^"863.4:","863.41:1",1,"E"
+120 ;;D^FREE TEXT
+121 ;;EOR^
+122 ;;KEY^863.4:^CLOZAPINE LABS W/IN 6 DAYS
+123 ;;R^"863.4:",.01,"E"
+124 ;;D^CLOZAPINE LABS W/IN 6 DAYS
+125 ;;R^"863.4:","863.41:1",.01,"E"
+126 ;;D^DATA TYPE
+127 ;;R^"863.4:","863.41:1",1,"E"
+128 ;;D^BOOLEAN
+129 ;;EOR^
+130 ;;KEY^863.4:^CLOZAPINE LAB RESULTS
+131 ;;R^"863.4:",.01,"E"
+132 ;;D^CLOZAPINE LAB RESULTS
+133 ;;R^"863.4:","863.41:1",.01,"E"
+134 ;;D^DATA TYPE
+135 ;;R^"863.4:","863.41:1",1,"E"
+136 ;;D^FREE TEXT
+137 ;;EOR^
+138 ;;KEY^863.4:^DISPENSE DRUG
+139 ;;R^"863.4:",.01,"E"
+140 ;;D^DISPENSE DRUG
+141 ;;R^"863.4:","863.41:1",.01,"E"
+142 ;;D^DATA TYPE
+143 ;;R^"863.4:","863.41:1",1,"E"
+144 ;;D^FREE TEXT
+145 ;;EOR^
+146 ;;KEY^863.4:^CLOZAPINE MED
+147 ;;R^"863.4:",.01,"E"
+148 ;;D^CLOZAPINE MED
+149 ;;R^"863.4:","863.41:1",.01,"E"
+150 ;;D^DATA TYPE
+151 ;;R^"863.4:","863.41:1",1,"E"
+152 ;;D^BOOLEAN
+153 ;;EOR^
+154 ;;KEY^863.4:^QUERY MODE
+155 ;;R^"863.4:",.01,"E"
+156 ;;D^QUERY MODE
+157 ;;R^"863.4:","863.41:1",.01,"E"
+158 ;;D^DATA TYPE
+159 ;;R^"863.4:","863.41:1",1,"E"
+160 ;;D^FREE TEXT
+161 ;;EOR^
+162 ;;KEY^863.4:^QUERY DATA
+163 ;;R^"863.4:",.01,"E"
+164 ;;D^QUERY DATA
+165 ;;R^"863.4:","863.41:1",.01,"E"
+166 ;;D^DATA TYPE
+167 ;;R^"863.4:","863.41:1",1,"E"
+168 ;;D^FREE TEXT
+169 ;;EOR^
+170 ;;KEY^863.4:^WBC W/IN 7 DAYS
+171 ;;R^"863.4:",.01,"E"
+172 ;;D^WBC W/IN 7 DAYS
+173 ;;R^"863.4:","863.41:1",.01,"E"
+174 ;;D^DATA TYPE
+175 ;;R^"863.4:","863.41:1",1,"E"
+176 ;;D^BOOLEAN
+177 ;;EOR^
+178 ;;KEY^863.4:^CLOZAPINE ANC W/IN 7 FLAG
+179 ;;R^"863.4:",.01,"E"
+180 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+181 ;;R^"863.4:","863.41:1",.01,"E"
+182 ;;D^DATA TYPE
+183 ;;R^"863.4:","863.41:1",1,"E"
+184 ;;D^BOOLEAN
+185 ;;EOR^
+186 ;;KEY^863.4:^CLOZAPINE ANC W/IN 7 RESULT
+187 ;;R^"863.4:",.01,"E"
+188 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+189 ;;R^"863.4:","863.41:1",.01,"E"
+190 ;;D^DATA TYPE
+191 ;;R^"863.4:","863.41:1",1,"E"
+192 ;;D^NUMERIC
+193 ;;EOR^
+194 ;;KEY^863.4:^CLOZAPINE WBC W/IN 7 FLAG
+195 ;;R^"863.4:",.01,"E"
+196 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+197 ;;R^"863.4:","863.41:1",.01,"E"
+198 ;;D^DATA TYPE
+199 ;;R^"863.4:","863.41:1",1,"E"
+200 ;;D^BOOLEAN
+201 ;;EOR^
+202 ;;KEY^863.4:^CLOZAPINE WBC W/IN 7 RESULT
+203 ;;R^"863.4:",.01,"E"
+204 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+205 ;;R^"863.4:","863.41:1",.01,"E"
+206 ;;D^DATA TYPE
+207 ;;R^"863.4:","863.41:1",1,"E"
+208 ;;D^NUMERIC
+209 ;;EOR^
+210 ;;EOF^OCXS(863.4)^1
+211 ;;SOF^863.2 OCX MDD SUBJECT
+212 ;;KEY^863.2:^PATIENT
+213 ;;R^"863.2:",.01,"E"
+214 ;;D^PATIENT
+215 ;;R^"863.2:","863.21:1",.01,"E"
+216 ;;D^FILE
+217 ;;R^"863.2:","863.21:1",1,"E"
+218 ;;D^2
+219 ;;EOR^
+220 ;;KEY^863.2:^VISIT
+221 ;1;
+222 ;