OCXDI036 ;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 ^OCXDI037
;
Q
;
DATA ;
;
;;D^CLOZAPINE NO ANC W/IN 7 DAYS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:6",.01,"E"
;;D^6
;;R^"860.3:","860.31:6",1,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:6",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE NO WBC W/IN 7 DAYS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^CLOZAPINE WBC < 3.0
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE WBC < 3.0
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.3:","860.31:4",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:4",3,"E"
;;D^3.0
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.3:","860.31:5",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE WBC >= 3.0 & < 3.5
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE WBC >= 3.0 & < 3.5
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.3:","860.31:4",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:4",3,"E"
;;D^2.999
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.3:","860.31:5",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:5",3,"E"
;;D^3.5
;;R^"860.3:","860.31:6",.01,"E"
;;D^6
;;R^"860.3:","860.31:6",1,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.3:","860.31:6",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE WBC >= 3.5
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE WBC >= 3.5
;;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^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.3:","860.31:1",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^3.499
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.3:","860.31:2",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^CRITICAL LAB RESULTS
;;R^"860.2:",.01,"E"
;;D^CRITICAL LAB RESULTS
;;R^"860.2:","860.21:1",.01,"E"
;;D^CRITICAL LAB TEST
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^HL7 LAB TEST RESULTS CRITICAL
;;R^"860.2:","860.21:2",.01,"E"
;;D^CRITICAL LAB ORDER
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^HL7 LAB ORDER RESULTS CRITICAL
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^CRITICAL LAB TEST
;;R^"860.2:","860.22:1",3,"E"
;;D^CRITICAL LAB RESULT (INFO)
;;R^"860.2:","860.22:1",5,"E"
;;D^Critical lab: |LAB TEST PRINT NAME| |LAB RESULT| |LAB COLLECTION D/T|
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^CRITICAL LAB ORDER
;;R^"860.2:","860.22:2",3,"E"
;;D^CRITICAL LAB RESULTS (ACTION)
;;R^"860.2:","860.22:2",5,"E"
;;D^Critical labs - [|ORDERABLE ITEM NAME|]
;;EOR^
;;KEY^860.2:^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.2:",.01,"E"
;;D^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.2:","860.21:2",.01,"E"
;;D^FLAGGED
;;R^"860.2:","860.21:2",1,"E"
;;D^ORDER FLAGGED
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^FLAGGED
;;R^"860.2:","860.22:1",3,"E"
;;D^FLAGGED ORDERS
;;R^"860.2:","860.22:1",5,"E"
;;D^Order(s) needing clarification: Flagged |CURRENT DATE/TIME|.
;;EOR^
;;KEY^860.2:^ORDER REQUIRES CHART SIGNATURE
;;R^"860.2:",.01,"E"
;;D^ORDER REQUIRES CHART SIGNATURE
;;R^"860.2:","860.21:1",.01,"E"
;;D^SIGNATURE
;;R^"860.2:","860.21:1",1,"E"
;;D^ORDER REQUIRES CHART SIGNATURE
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^SIGNATURE
;;R^"860.2:","860.22:1",3,"E"
;;D^ORDER REQUIRES CHART SIGNATURE
;;R^"860.2:","860.22:1",5,"E"
;;D^Order released - requires chart signature.
;;EOR^
;;KEY^860.2:^PATIENT ADMISSION
;;R^"860.2:",.01,"E"
;;D^PATIENT ADMISSION
;;R^"860.2:","860.21:1",.01,"E"
;;D^ADMISSION
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^PATIENT ADMISSION
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^ADMISSION
;;R^"860.2:","860.22:1",3,"E"
;;D^ADMISSION
;;R^"860.2:","860.22:1",5,"E"
;;D^Admitted on |PATIENT MOVEMENT DATE CURRENT| to |PATIENT WARD ROOM-BED|
;;EOR^
;;KEY^860.2:^IMAGING REQUEST CANCELLED/HELD
;;R^"860.2:",.01,"E"
;;D^IMAGING REQUEST CANCELLED/HELD
;;R^"860.2:","860.21:1",.01,"E"
;;D^CANCELLED
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI036 5360 printed Dec 13, 2024@02:24:19 Page 2
OCXDI036 ;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 ^OCXDI037
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^CLOZAPINE NO ANC W/IN 7 DAYS
+3 ;;R^"860.3:",.02,"E"
+4 ;;D^CPRS ORDER PRESCAN
+5 ;;R^"860.3:","860.31:6",.01,"E"
+6 ;;D^6
+7 ;;R^"860.3:","860.31:6",1,"E"
+8 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+9 ;;R^"860.3:","860.31:6",2,"E"
+10 ;;D^LOGICAL FALSE
+11 ;;EOR^
+12 ;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
+13 ;;R^"860.3:",.01,"E"
+14 ;;D^CLOZAPINE NO WBC W/IN 7 DAYS
+15 ;;R^"860.3:",.02,"E"
+16 ;;D^CPRS ORDER PRESCAN
+17 ;;R^"860.3:","860.31:4",.01,"E"
+18 ;;D^4
+19 ;;R^"860.3:","860.31:4",1,"E"
+20 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+21 ;;R^"860.3:","860.31:4",2,"E"
+22 ;;D^LOGICAL FALSE
+23 ;;EOR^
+24 ;;KEY^860.3:^CLOZAPINE WBC < 3.0
+25 ;;R^"860.3:",.01,"E"
+26 ;;D^CLOZAPINE WBC < 3.0
+27 ;;R^"860.3:",.02,"E"
+28 ;;D^CPRS ORDER PRESCAN
+29 ;;R^"860.3:","860.31:4",.01,"E"
+30 ;;D^4
+31 ;;R^"860.3:","860.31:4",1,"E"
+32 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+33 ;;R^"860.3:","860.31:4",2,"E"
+34 ;;D^LESS THAN
+35 ;;R^"860.3:","860.31:4",3,"E"
+36 ;;D^3.0
+37 ;;R^"860.3:","860.31:5",.01,"E"
+38 ;;D^5
+39 ;;R^"860.3:","860.31:5",1,"E"
+40 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+41 ;;R^"860.3:","860.31:5",2,"E"
+42 ;;D^LOGICAL TRUE
+43 ;;EOR^
+44 ;;KEY^860.3:^CLOZAPINE WBC >= 3.0 & < 3.5
+45 ;;R^"860.3:",.01,"E"
+46 ;;D^CLOZAPINE WBC >= 3.0 & < 3.5
+47 ;;R^"860.3:",.02,"E"
+48 ;;D^CPRS ORDER PRESCAN
+49 ;;R^"860.3:","860.31:4",.01,"E"
+50 ;;D^4
+51 ;;R^"860.3:","860.31:4",1,"E"
+52 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+53 ;;R^"860.3:","860.31:4",2,"E"
+54 ;;D^GREATER THAN
+55 ;;R^"860.3:","860.31:4",3,"E"
+56 ;;D^2.999
+57 ;;R^"860.3:","860.31:5",.01,"E"
+58 ;;D^5
+59 ;;R^"860.3:","860.31:5",1,"E"
+60 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+61 ;;R^"860.3:","860.31:5",2,"E"
+62 ;;D^LESS THAN
+63 ;;R^"860.3:","860.31:5",3,"E"
+64 ;;D^3.5
+65 ;;R^"860.3:","860.31:6",.01,"E"
+66 ;;D^6
+67 ;;R^"860.3:","860.31:6",1,"E"
+68 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+69 ;;R^"860.3:","860.31:6",2,"E"
+70 ;;D^LOGICAL TRUE
+71 ;;EOR^
+72 ;;KEY^860.3:^CLOZAPINE WBC >= 3.5
+73 ;;R^"860.3:",.01,"E"
+74 ;;D^CLOZAPINE WBC >= 3.5
+75 ;;R^"860.3:",.02,"E"
+76 ;;D^CPRS ORDER PRESCAN
+77 ;;R^"860.3:","860.31:1",.01,"E"
+78 ;;D^1
+79 ;;R^"860.3:","860.31:1",1,"E"
+80 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+81 ;;R^"860.3:","860.31:1",2,"E"
+82 ;;D^GREATER THAN
+83 ;;R^"860.3:","860.31:1",3,"E"
+84 ;;D^3.499
+85 ;;R^"860.3:","860.31:2",.01,"E"
+86 ;;D^2
+87 ;;R^"860.3:","860.31:2",1,"E"
+88 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+89 ;;R^"860.3:","860.31:2",2,"E"
+90 ;;D^LOGICAL TRUE
+91 ;;EOR^
+92 ;;EOF^OCXS(860.3)^1
+93 ;;SOF^860.2 ORDER CHECK RULE
+94 ;;KEY^860.2:^CRITICAL LAB RESULTS
+95 ;;R^"860.2:",.01,"E"
+96 ;;D^CRITICAL LAB RESULTS
+97 ;;R^"860.2:","860.21:1",.01,"E"
+98 ;;D^CRITICAL LAB TEST
+99 ;;R^"860.2:","860.21:1",.02,"E"
+100 ;;D^SIMPLE DEFINITION
+101 ;;R^"860.2:","860.21:1",1,"E"
+102 ;;D^HL7 LAB TEST RESULTS CRITICAL
+103 ;;R^"860.2:","860.21:2",.01,"E"
+104 ;;D^CRITICAL LAB ORDER
+105 ;;R^"860.2:","860.21:2",.02,"E"
+106 ;;D^SIMPLE DEFINITION
+107 ;;R^"860.2:","860.21:2",1,"E"
+108 ;;D^HL7 LAB ORDER RESULTS CRITICAL
+109 ;;R^"860.2:","860.22:1",.01,"E"
+110 ;;D^1
+111 ;;R^"860.2:","860.22:1",1,"E"
+112 ;;D^CRITICAL LAB TEST
+113 ;;R^"860.2:","860.22:1",3,"E"
+114 ;;D^CRITICAL LAB RESULT (INFO)
+115 ;;R^"860.2:","860.22:1",5,"E"
+116 ;;D^Critical lab: |LAB TEST PRINT NAME| |LAB RESULT| |LAB COLLECTION D/T|
+117 ;;R^"860.2:","860.22:2",.01,"E"
+118 ;;D^2
+119 ;;R^"860.2:","860.22:2",1,"E"
+120 ;;D^CRITICAL LAB ORDER
+121 ;;R^"860.2:","860.22:2",3,"E"
+122 ;;D^CRITICAL LAB RESULTS (ACTION)
+123 ;;R^"860.2:","860.22:2",5,"E"
+124 ;;D^Critical labs - [|ORDERABLE ITEM NAME|]
+125 ;;EOR^
+126 ;;KEY^860.2:^ORDER FLAGGED FOR CLARIFICATION
+127 ;;R^"860.2:",.01,"E"
+128 ;;D^ORDER FLAGGED FOR CLARIFICATION
+129 ;;R^"860.2:","860.21:2",.01,"E"
+130 ;;D^FLAGGED
+131 ;;R^"860.2:","860.21:2",1,"E"
+132 ;;D^ORDER FLAGGED
+133 ;;R^"860.2:","860.22:1",.01,"E"
+134 ;;D^1
+135 ;;R^"860.2:","860.22:1",1,"E"
+136 ;;D^FLAGGED
+137 ;;R^"860.2:","860.22:1",3,"E"
+138 ;;D^FLAGGED ORDERS
+139 ;;R^"860.2:","860.22:1",5,"E"
+140 ;;D^Order(s) needing clarification: Flagged |CURRENT DATE/TIME|.
+141 ;;EOR^
+142 ;;KEY^860.2:^ORDER REQUIRES CHART SIGNATURE
+143 ;;R^"860.2:",.01,"E"
+144 ;;D^ORDER REQUIRES CHART SIGNATURE
+145 ;;R^"860.2:","860.21:1",.01,"E"
+146 ;;D^SIGNATURE
+147 ;;R^"860.2:","860.21:1",1,"E"
+148 ;;D^ORDER REQUIRES CHART SIGNATURE
+149 ;;R^"860.2:","860.22:1",.01,"E"
+150 ;;D^1
+151 ;;R^"860.2:","860.22:1",1,"E"
+152 ;;D^SIGNATURE
+153 ;;R^"860.2:","860.22:1",3,"E"
+154 ;;D^ORDER REQUIRES CHART SIGNATURE
+155 ;;R^"860.2:","860.22:1",5,"E"
+156 ;;D^Order released - requires chart signature.
+157 ;;EOR^
+158 ;;KEY^860.2:^PATIENT ADMISSION
+159 ;;R^"860.2:",.01,"E"
+160 ;;D^PATIENT ADMISSION
+161 ;;R^"860.2:","860.21:1",.01,"E"
+162 ;;D^ADMISSION
+163 ;;R^"860.2:","860.21:1",.02,"E"
+164 ;;D^SIMPLE DEFINITION
+165 ;;R^"860.2:","860.21:1",1,"E"
+166 ;;D^PATIENT ADMISSION
+167 ;;R^"860.2:","860.22:1",.01,"E"
+168 ;;D^1
+169 ;;R^"860.2:","860.22:1",1,"E"
+170 ;;D^ADMISSION
+171 ;;R^"860.2:","860.22:1",3,"E"
+172 ;;D^ADMISSION
+173 ;;R^"860.2:","860.22:1",5,"E"
+174 ;;D^Admitted on |PATIENT MOVEMENT DATE CURRENT| to |PATIENT WARD ROOM-BED|
+175 ;;EOR^
+176 ;;KEY^860.2:^IMAGING REQUEST CANCELLED/HELD
+177 ;;R^"860.2:",.01,"E"
+178 ;;D^IMAGING REQUEST CANCELLED/HELD
+179 ;;R^"860.2:","860.21:1",.01,"E"
+180 ;;D^CANCELLED
+181 ;1;
+182 ;