OCXDI030 ;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 ^OCXDI031
;
Q
;
DATA ;
;
;;D^LOGICAL TRUE
;;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:^PATIENT HAS RECENT CHOLECYSTOGRAM
;;R^"860.3:",.01,"E"
;;D^PATIENT HAS RECENT CHOLECYSTOGRAM
;;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^ACCEPT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CHOLECYSTOGRAM PROCEDURE FLAG
;;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^RECENT CHOLECYSTOGRAM FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^PHARMACY PATIENT OVER 65
;;R^"860.3:",.01,"E"
;;D^PHARMACY PATIENT OVER 65
;;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^PATIENT AGE
;;R^"860.3:","860.31:3",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:3",3,"E"
;;D^65
;;EOR^
;;KEY^860.3:^SESSION ORDER FOR ANGIOGRAM
;;R^"860.3:",.01,"E"
;;D^SESSION ORDER FOR ANGIOGRAM
;;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^OI LOCAL TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT LOCAL TERM
;;R^"860.3:","860.31:2",3,"E"
;;D^ANGIOGRAM (PERIPHERAL)
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
;;R^"860.3:","860.31:3",2,"E"
;;D^LENGTH IS GREATER THAN
;;R^"860.3:","860.31:3",3,"E"
;;D^0
;;EOR^
;;KEY^860.3:^CONTRAST MEDIA ALLERGY
;;R^"860.3:",.01,"E"
;;D^CONTRAST MEDIA ALLERGY
;;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^CONTRAST MEDIA FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^LOGICAL TRUE
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CONTRAST MEDIA ALLERGY FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^RECENT BARIUM STUDY ORDERED
;;R^"860.3:",.01,"E"
;;D^RECENT BARIUM STUDY ORDERED
;;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^CONTRAST MEDIA CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:3",3,"E"
;;D^B
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^RECENT BARIUM STUDY FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE DRUG SELECTED WITH WBC
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE DRUG SELECTED WITH WBC
;;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 TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE DRUG SELECTED WITHOUT WBC
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE DRUG SELECTED WITHOUT WBC
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI030 5507 printed Dec 13, 2024@02:24:14 Page 2
OCXDI030 ;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 ^OCXDI031
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^LOGICAL TRUE
+3 ;;R^"860.3:","860.31:4",.01,"E"
+4 ;;D^4
+5 ;;R^"860.3:","860.31:4",1,"E"
+6 ;;D^CONTRAST MEDIA CODE
+7 ;;R^"860.3:","860.31:4",2,"E"
+8 ;;D^CONTAINS
+9 ;;R^"860.3:","860.31:4",3,"E"
+10 ;;D^M
+11 ;;EOR^
+12 ;;KEY^860.3:^PATIENT HAS RECENT CHOLECYSTOGRAM
+13 ;;R^"860.3:",.01,"E"
+14 ;;D^PATIENT HAS RECENT CHOLECYSTOGRAM
+15 ;;R^"860.3:",.02,"E"
+16 ;;D^CPRS ORDER PRESCAN
+17 ;;R^"860.3:","860.31:1",.01,"E"
+18 ;;D^1
+19 ;;R^"860.3:","860.31:1",1,"E"
+20 ;;D^ORDER MODE
+21 ;;R^"860.3:","860.31:1",2,"E"
+22 ;;D^EQ FREE TEXT
+23 ;;R^"860.3:","860.31:1",3,"E"
+24 ;;D^ACCEPT
+25 ;;R^"860.3:","860.31:2",.01,"E"
+26 ;;D^2
+27 ;;R^"860.3:","860.31:2",1,"E"
+28 ;;D^CHOLECYSTOGRAM PROCEDURE FLAG
+29 ;;R^"860.3:","860.31:2",2,"E"
+30 ;;D^LOGICAL TRUE
+31 ;;R^"860.3:","860.31:3",.01,"E"
+32 ;;D^3
+33 ;;R^"860.3:","860.31:3",1,"E"
+34 ;;D^RECENT CHOLECYSTOGRAM FLAG
+35 ;;R^"860.3:","860.31:3",2,"E"
+36 ;;D^LOGICAL TRUE
+37 ;;EOR^
+38 ;;KEY^860.3:^PHARMACY PATIENT OVER 65
+39 ;;R^"860.3:",.01,"E"
+40 ;;D^PHARMACY PATIENT OVER 65
+41 ;;R^"860.3:",.02,"E"
+42 ;;D^CPRS ORDER PRESCAN
+43 ;;R^"860.3:","860.31:1",.01,"E"
+44 ;;D^1
+45 ;;R^"860.3:","860.31:1",1,"E"
+46 ;;D^ORDER MODE
+47 ;;R^"860.3:","860.31:1",2,"E"
+48 ;;D^EQ FREE TEXT
+49 ;;R^"860.3:","860.31:1",3,"E"
+50 ;;D^DISPLAY
+51 ;;R^"860.3:","860.31:2",.01,"E"
+52 ;;D^2
+53 ;;R^"860.3:","860.31:2",1,"E"
+54 ;;D^FILLER
+55 ;;R^"860.3:","860.31:2",2,"E"
+56 ;;D^STARTS WITH
+57 ;;R^"860.3:","860.31:2",3,"E"
+58 ;;D^PS
+59 ;;R^"860.3:","860.31:3",.01,"E"
+60 ;;D^3
+61 ;;R^"860.3:","860.31:3",1,"E"
+62 ;;D^PATIENT AGE
+63 ;;R^"860.3:","860.31:3",2,"E"
+64 ;;D^GREATER THAN
+65 ;;R^"860.3:","860.31:3",3,"E"
+66 ;;D^65
+67 ;;EOR^
+68 ;;KEY^860.3:^SESSION ORDER FOR ANGIOGRAM
+69 ;;R^"860.3:",.01,"E"
+70 ;;D^SESSION ORDER FOR ANGIOGRAM
+71 ;;R^"860.3:",.02,"E"
+72 ;;D^CPRS ORDER PRESCAN
+73 ;;R^"860.3:","860.31:1",.01,"E"
+74 ;;D^1
+75 ;;R^"860.3:","860.31:1",1,"E"
+76 ;;D^ORDER MODE
+77 ;;R^"860.3:","860.31:1",2,"E"
+78 ;;D^EQ FREE TEXT
+79 ;;R^"860.3:","860.31:1",3,"E"
+80 ;;D^SESSION
+81 ;;R^"860.3:","860.31:2",.01,"E"
+82 ;;D^2
+83 ;;R^"860.3:","860.31:2",1,"E"
+84 ;;D^OI LOCAL TEXT
+85 ;;R^"860.3:","860.31:2",2,"E"
+86 ;;D^EQ FREE TEXT LOCAL TERM
+87 ;;R^"860.3:","860.31:2",3,"E"
+88 ;;D^ANGIOGRAM (PERIPHERAL)
+89 ;;R^"860.3:","860.31:3",.01,"E"
+90 ;;D^3
+91 ;;R^"860.3:","860.31:3",1,"E"
+92 ;;D^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
+93 ;;R^"860.3:","860.31:3",2,"E"
+94 ;;D^LENGTH IS GREATER THAN
+95 ;;R^"860.3:","860.31:3",3,"E"
+96 ;;D^0
+97 ;;EOR^
+98 ;;KEY^860.3:^CONTRAST MEDIA ALLERGY
+99 ;;R^"860.3:",.01,"E"
+100 ;;D^CONTRAST MEDIA ALLERGY
+101 ;;R^"860.3:",.02,"E"
+102 ;;D^CPRS ORDER PRESCAN
+103 ;;R^"860.3:","860.31:1",.01,"E"
+104 ;;D^1
+105 ;;R^"860.3:","860.31:1",1,"E"
+106 ;;D^ORDER MODE
+107 ;;R^"860.3:","860.31:1",2,"E"
+108 ;;D^EQ FREE TEXT
+109 ;;R^"860.3:","860.31:1",3,"E"
+110 ;;D^SELECT
+111 ;;R^"860.3:","860.31:2",.01,"E"
+112 ;;D^2
+113 ;;R^"860.3:","860.31:2",1,"E"
+114 ;;D^FILLER
+115 ;;R^"860.3:","860.31:2",2,"E"
+116 ;;D^EQ FREE TEXT
+117 ;;R^"860.3:","860.31:2",3,"E"
+118 ;;D^RA
+119 ;;R^"860.3:","860.31:3",.01,"E"
+120 ;;D^3
+121 ;;R^"860.3:","860.31:3",1,"E"
+122 ;;D^CONTRAST MEDIA FLAG
+123 ;;R^"860.3:","860.31:3",2,"E"
+124 ;;D^LOGICAL TRUE
+125 ;;R^"860.3:","860.31:4",.01,"E"
+126 ;;D^4
+127 ;;R^"860.3:","860.31:4",1,"E"
+128 ;;D^CONTRAST MEDIA ALLERGY FLAG
+129 ;;R^"860.3:","860.31:4",2,"E"
+130 ;;D^LOGICAL TRUE
+131 ;;EOR^
+132 ;;KEY^860.3:^RECENT BARIUM STUDY ORDERED
+133 ;;R^"860.3:",.01,"E"
+134 ;;D^RECENT BARIUM STUDY ORDERED
+135 ;;R^"860.3:",.02,"E"
+136 ;;D^CPRS ORDER PRESCAN
+137 ;;R^"860.3:","860.31:1",.01,"E"
+138 ;;D^1
+139 ;;R^"860.3:","860.31:1",1,"E"
+140 ;;D^ORDER MODE
+141 ;;R^"860.3:","860.31:1",2,"E"
+142 ;;D^EQ FREE TEXT
+143 ;;R^"860.3:","860.31:1",3,"E"
+144 ;;D^SELECT
+145 ;;R^"860.3:","860.31:2",.01,"E"
+146 ;;D^2
+147 ;;R^"860.3:","860.31:2",1,"E"
+148 ;;D^FILLER
+149 ;;R^"860.3:","860.31:2",2,"E"
+150 ;;D^EQ FREE TEXT
+151 ;;R^"860.3:","860.31:2",3,"E"
+152 ;;D^RA
+153 ;;R^"860.3:","860.31:3",.01,"E"
+154 ;;D^3
+155 ;;R^"860.3:","860.31:3",1,"E"
+156 ;;D^CONTRAST MEDIA CODE
+157 ;;R^"860.3:","860.31:3",2,"E"
+158 ;;D^CONTAINS
+159 ;;R^"860.3:","860.31:3",3,"E"
+160 ;;D^B
+161 ;;R^"860.3:","860.31:4",.01,"E"
+162 ;;D^4
+163 ;;R^"860.3:","860.31:4",1,"E"
+164 ;;D^RECENT BARIUM STUDY FLAG
+165 ;;R^"860.3:","860.31:4",2,"E"
+166 ;;D^LOGICAL TRUE
+167 ;;EOR^
+168 ;;KEY^860.3:^CLOZAPINE DRUG SELECTED WITH WBC
+169 ;;R^"860.3:",.01,"E"
+170 ;;D^CLOZAPINE DRUG SELECTED WITH WBC
+171 ;;R^"860.3:",.02,"E"
+172 ;;D^CPRS ORDER PRESCAN
+173 ;;R^"860.3:","860.31:1",.01,"E"
+174 ;;D^1
+175 ;;R^"860.3:","860.31:1",1,"E"
+176 ;;D^ORDER MODE
+177 ;;R^"860.3:","860.31:1",2,"E"
+178 ;;D^EQ FREE TEXT
+179 ;;R^"860.3:","860.31:1",3,"E"
+180 ;;D^SELECT
+181 ;;R^"860.3:","860.31:2",.01,"E"
+182 ;;D^2
+183 ;;R^"860.3:","860.31:2",1,"E"
+184 ;;D^FILLER
+185 ;;R^"860.3:","860.31:2",2,"E"
+186 ;;D^STARTS WITH
+187 ;;R^"860.3:","860.31:2",3,"E"
+188 ;;D^PS
+189 ;;R^"860.3:","860.31:3",.01,"E"
+190 ;;D^3
+191 ;;R^"860.3:","860.31:3",1,"E"
+192 ;;D^OI LOCAL TEXT
+193 ;;R^"860.3:","860.31:3",2,"E"
+194 ;;D^CONTAINS
+195 ;;R^"860.3:","860.31:3",3,"E"
+196 ;;D^CLOZAPINE
+197 ;;R^"860.3:","860.31:4",.01,"E"
+198 ;;D^4
+199 ;;R^"860.3:","860.31:4",1,"E"
+200 ;;D^WBC W/IN 7 DAYS FLAG
+201 ;;R^"860.3:","860.31:4",2,"E"
+202 ;;D^LOGICAL TRUE
+203 ;;EOR^
+204 ;;KEY^860.3:^CLOZAPINE DRUG SELECTED WITHOUT WBC
+205 ;;R^"860.3:",.01,"E"
+206 ;;D^CLOZAPINE DRUG SELECTED WITHOUT WBC
+207 ;1;
+208 ;