OCXDI035 ;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 ^OCXDI036
;
Q
;
DATA ;
;
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^RECENT SERUM CREATININE RESULT
;;R^"860.3:","860.31:2",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:2",3,"E"
;;D^1.5
;;EOR^
;;KEY^860.3:^NO CREATININE W/IN 60 DAYS
;;R^"860.3:",.01,"E"
;;D^NO CREATININE W/IN 60 DAYS
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^RECENT SERUM CREATININE FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^SITE FLAGGED FINAL CONSULT RESULT
;;R^"860.3:",.01,"E"
;;D^SITE FLAGGED FINAL CONSULT RESULT
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^GMRC
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^F
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^SITE FLAGGED RESULT
;;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^CONTROL CODE
;;R^"860.3:","860.31:4",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:4",3,"E"
;;D^RE
;;EOR^
;;KEY^860.3:^STAT CONSULT RESULT
;;R^"860.3:",.01,"E"
;;D^STAT CONSULT RESULT
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^GMRC
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^F
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^ORDER PRIORITY (ORC)
;;R^"860.3:","860.31:3",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:3",3,"E"
;;D^S
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:4",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:4",3,"E"
;;D^RE
;;EOR^
;;KEY^860.3:^GLUCOPHAGE CREATININE > 1.5
;;R^"860.3:",.01,"E"
;;D^GLUCOPHAGE CREATININE > 1.5
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^RECENT GLUCOPHAGE CREATININE RESULT
;;R^"860.3:","860.31:1",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^1.5
;;EOR^
;;KEY^860.3:^NO GLUCOPHAGE CREATININE
;;R^"860.3:",.01,"E"
;;D^NO GLUCOPHAGE CREATININE
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^RECENT GLUCOPHAGE CREATININE FLAG
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^GENERIC QUERY MODE
;;R^"860.3:",.01,"E"
;;D^GENERIC QUERY MODE
;;R^"860.3:",.02,"E"
;;D^GENERIC QUERY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^GENERIC QUERY MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^TEST
;;EOR^
;;KEY^860.3:^CLOZAPINE ANC < 1.5
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE ANC < 1.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 ANC W/IN 7 RESULT
;;R^"860.3:","860.31:4",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:4",3,"E"
;;D^1.5
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:5",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE ANC >= 1.5
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE ANC >= 1.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 ANC W/IN 7 RESULT
;;R^"860.3:","860.31:1",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^1.499
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:2",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE DRUG SELECTED
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE DRUG SELECTED
;;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:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^CLOZAPINE MED
;;R^"860.3:","860.31:5",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE NO ANC W/IN 7 DAYS
;;R^"860.3:",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI035 5477 printed Oct 16, 2024@18:24:55 Page 2
OCXDI035 ;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 ^OCXDI036
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^2
+3 ;;R^"860.3:","860.31:2",1,"E"
+4 ;;D^RECENT SERUM CREATININE RESULT
+5 ;;R^"860.3:","860.31:2",2,"E"
+6 ;;D^GREATER THAN
+7 ;;R^"860.3:","860.31:2",3,"E"
+8 ;;D^1.5
+9 ;;EOR^
+10 ;;KEY^860.3:^NO CREATININE W/IN 60 DAYS
+11 ;;R^"860.3:",.01,"E"
+12 ;;D^NO CREATININE W/IN 60 DAYS
+13 ;;R^"860.3:",.02,"E"
+14 ;;D^DATABASE LOOKUP
+15 ;;R^"860.3:","860.31:1",.01,"E"
+16 ;;D^1
+17 ;;R^"860.3:","860.31:1",1,"E"
+18 ;;D^RECENT SERUM CREATININE FLAG
+19 ;;R^"860.3:","860.31:1",2,"E"
+20 ;;D^LOGICAL FALSE
+21 ;;EOR^
+22 ;;KEY^860.3:^SITE FLAGGED FINAL CONSULT RESULT
+23 ;;R^"860.3:",.01,"E"
+24 ;;D^SITE FLAGGED FINAL CONSULT RESULT
+25 ;;R^"860.3:",.02,"E"
+26 ;;D^GENERIC HL7 MESSAGE ARRAY
+27 ;;R^"860.3:","860.31:1",.01,"E"
+28 ;;D^1
+29 ;;R^"860.3:","860.31:1",1,"E"
+30 ;;D^FILLER
+31 ;;R^"860.3:","860.31:1",2,"E"
+32 ;;D^EQ FREE TEXT
+33 ;;R^"860.3:","860.31:1",3,"E"
+34 ;;D^GMRC
+35 ;;R^"860.3:","860.31:2",.01,"E"
+36 ;;D^2
+37 ;;R^"860.3:","860.31:2",1,"E"
+38 ;;D^REQUEST STATUS (OBR)
+39 ;;R^"860.3:","860.31:2",2,"E"
+40 ;;D^EQ FREE TEXT
+41 ;;R^"860.3:","860.31:2",3,"E"
+42 ;;D^F
+43 ;;R^"860.3:","860.31:3",.01,"E"
+44 ;;D^3
+45 ;;R^"860.3:","860.31:3",1,"E"
+46 ;;D^SITE FLAGGED RESULT
+47 ;;R^"860.3:","860.31:3",2,"E"
+48 ;;D^LOGICAL TRUE
+49 ;;R^"860.3:","860.31:4",.01,"E"
+50 ;;D^4
+51 ;;R^"860.3:","860.31:4",1,"E"
+52 ;;D^CONTROL CODE
+53 ;;R^"860.3:","860.31:4",2,"E"
+54 ;;D^EQUALS ELEMENT IN SET
+55 ;;R^"860.3:","860.31:4",3,"E"
+56 ;;D^RE
+57 ;;EOR^
+58 ;;KEY^860.3:^STAT CONSULT RESULT
+59 ;;R^"860.3:",.01,"E"
+60 ;;D^STAT CONSULT RESULT
+61 ;;R^"860.3:",.02,"E"
+62 ;;D^GENERIC HL7 MESSAGE ARRAY
+63 ;;R^"860.3:","860.31:1",.01,"E"
+64 ;;D^1
+65 ;;R^"860.3:","860.31:1",1,"E"
+66 ;;D^FILLER
+67 ;;R^"860.3:","860.31:1",2,"E"
+68 ;;D^EQ FREE TEXT
+69 ;;R^"860.3:","860.31:1",3,"E"
+70 ;;D^GMRC
+71 ;;R^"860.3:","860.31:2",.01,"E"
+72 ;;D^2
+73 ;;R^"860.3:","860.31:2",1,"E"
+74 ;;D^REQUEST STATUS (OBR)
+75 ;;R^"860.3:","860.31:2",2,"E"
+76 ;;D^EQ FREE TEXT
+77 ;;R^"860.3:","860.31:2",3,"E"
+78 ;;D^F
+79 ;;R^"860.3:","860.31:3",.01,"E"
+80 ;;D^3
+81 ;;R^"860.3:","860.31:3",1,"E"
+82 ;;D^ORDER PRIORITY (ORC)
+83 ;;R^"860.3:","860.31:3",2,"E"
+84 ;;D^EQ FREE TEXT
+85 ;;R^"860.3:","860.31:3",3,"E"
+86 ;;D^S
+87 ;;R^"860.3:","860.31:4",.01,"E"
+88 ;;D^4
+89 ;;R^"860.3:","860.31:4",1,"E"
+90 ;;D^CONTROL CODE
+91 ;;R^"860.3:","860.31:4",2,"E"
+92 ;;D^EQUALS ELEMENT IN SET
+93 ;;R^"860.3:","860.31:4",3,"E"
+94 ;;D^RE
+95 ;;EOR^
+96 ;;KEY^860.3:^GLUCOPHAGE CREATININE > 1.5
+97 ;;R^"860.3:",.01,"E"
+98 ;;D^GLUCOPHAGE CREATININE > 1.5
+99 ;;R^"860.3:",.02,"E"
+100 ;;D^DATABASE LOOKUP
+101 ;;R^"860.3:","860.31:1",.01,"E"
+102 ;;D^1
+103 ;;R^"860.3:","860.31:1",1,"E"
+104 ;;D^RECENT GLUCOPHAGE CREATININE RESULT
+105 ;;R^"860.3:","860.31:1",2,"E"
+106 ;;D^GREATER THAN
+107 ;;R^"860.3:","860.31:1",3,"E"
+108 ;;D^1.5
+109 ;;EOR^
+110 ;;KEY^860.3:^NO GLUCOPHAGE CREATININE
+111 ;;R^"860.3:",.01,"E"
+112 ;;D^NO GLUCOPHAGE CREATININE
+113 ;;R^"860.3:",.02,"E"
+114 ;;D^DATABASE LOOKUP
+115 ;;R^"860.3:","860.31:1",.01,"E"
+116 ;;D^1
+117 ;;R^"860.3:","860.31:1",1,"E"
+118 ;;D^RECENT GLUCOPHAGE CREATININE FLAG
+119 ;;R^"860.3:","860.31:1",2,"E"
+120 ;;D^LOGICAL FALSE
+121 ;;EOR^
+122 ;;KEY^860.3:^GENERIC QUERY MODE
+123 ;;R^"860.3:",.01,"E"
+124 ;;D^GENERIC QUERY MODE
+125 ;;R^"860.3:",.02,"E"
+126 ;;D^GENERIC QUERY
+127 ;;R^"860.3:","860.31:1",.01,"E"
+128 ;;D^1
+129 ;;R^"860.3:","860.31:1",1,"E"
+130 ;;D^GENERIC QUERY MODE
+131 ;;R^"860.3:","860.31:1",2,"E"
+132 ;;D^EQ FREE TEXT
+133 ;;R^"860.3:","860.31:1",3,"E"
+134 ;;D^TEST
+135 ;;EOR^
+136 ;;KEY^860.3:^CLOZAPINE ANC < 1.5
+137 ;;R^"860.3:",.01,"E"
+138 ;;D^CLOZAPINE ANC < 1.5
+139 ;;R^"860.3:",.02,"E"
+140 ;;D^CPRS ORDER PRESCAN
+141 ;;R^"860.3:","860.31:4",.01,"E"
+142 ;;D^4
+143 ;;R^"860.3:","860.31:4",1,"E"
+144 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+145 ;;R^"860.3:","860.31:4",2,"E"
+146 ;;D^LESS THAN
+147 ;;R^"860.3:","860.31:4",3,"E"
+148 ;;D^1.5
+149 ;;R^"860.3:","860.31:5",.01,"E"
+150 ;;D^5
+151 ;;R^"860.3:","860.31:5",1,"E"
+152 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+153 ;;R^"860.3:","860.31:5",2,"E"
+154 ;;D^LOGICAL TRUE
+155 ;;EOR^
+156 ;;KEY^860.3:^CLOZAPINE ANC >= 1.5
+157 ;;R^"860.3:",.01,"E"
+158 ;;D^CLOZAPINE ANC >= 1.5
+159 ;;R^"860.3:",.02,"E"
+160 ;;D^CPRS ORDER PRESCAN
+161 ;;R^"860.3:","860.31:1",.01,"E"
+162 ;;D^1
+163 ;;R^"860.3:","860.31:1",1,"E"
+164 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+165 ;;R^"860.3:","860.31:1",2,"E"
+166 ;;D^GREATER THAN
+167 ;;R^"860.3:","860.31:1",3,"E"
+168 ;;D^1.499
+169 ;;R^"860.3:","860.31:2",.01,"E"
+170 ;;D^2
+171 ;;R^"860.3:","860.31:2",1,"E"
+172 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+173 ;;R^"860.3:","860.31:2",2,"E"
+174 ;;D^LOGICAL TRUE
+175 ;;EOR^
+176 ;;KEY^860.3:^CLOZAPINE DRUG SELECTED
+177 ;;R^"860.3:",.01,"E"
+178 ;;D^CLOZAPINE DRUG SELECTED
+179 ;;R^"860.3:",.02,"E"
+180 ;;D^CPRS ORDER PRESCAN
+181 ;;R^"860.3:","860.31:1",.01,"E"
+182 ;;D^1
+183 ;;R^"860.3:","860.31:1",1,"E"
+184 ;;D^ORDER MODE
+185 ;;R^"860.3:","860.31:1",2,"E"
+186 ;;D^EQ FREE TEXT
+187 ;;R^"860.3:","860.31:1",3,"E"
+188 ;;D^SELECT
+189 ;;R^"860.3:","860.31:2",.01,"E"
+190 ;;D^2
+191 ;;R^"860.3:","860.31:2",1,"E"
+192 ;;D^FILLER
+193 ;;R^"860.3:","860.31:2",2,"E"
+194 ;;D^STARTS WITH
+195 ;;R^"860.3:","860.31:2",3,"E"
+196 ;;D^PS
+197 ;;R^"860.3:","860.31:5",.01,"E"
+198 ;;D^5
+199 ;;R^"860.3:","860.31:5",1,"E"
+200 ;;D^CLOZAPINE MED
+201 ;;R^"860.3:","860.31:5",2,"E"
+202 ;;D^LOGICAL TRUE
+203 ;;EOR^
+204 ;;KEY^860.3:^CLOZAPINE NO ANC W/IN 7 DAYS
+205 ;;R^"860.3:",.01,"E"
+206 ;1;
+207 ;