OCXDI02U ;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 ^OCXDI02V
;
Q
;
DATA ;
;
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZAPINE MED
;;EOR^
;;KEY^860.4:^GENERIC QUERY MODE
;;R^"860.4:",.01,"E"
;;D^GENERIC QUERY MODE
;;R^"860.4:",1,"E"
;;D^QUERY MODE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:7",.01,"E"
;;D^GENERIC QUERY
;;R^"860.4:","860.41:7",.02,"E"
;;D^GENERIC QUERY RESULTS
;;R^"860.4:","860.41:7",1,"E"
;;D^QUERY.MODE
;;EOR^
;;KEY^860.4:^WBC W/IN 7 DAYS FLAG
;;R^"860.4:",.01,"E"
;;D^WBC W/IN 7 DAYS FLAG
;;R^"860.4:",1,"E"
;;D^WBC 7 DAYS
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.WBC_W/IN_7_DAYS_FLAG
;;EOR^
;;KEY^860.4:^GENERIC QUERY DATA
;;R^"860.4:",.01,"E"
;;D^GENERIC QUERY DATA
;;R^"860.4:",1,"E"
;;D^QUERY DATA
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:7",.01,"E"
;;D^GENERIC QUERY
;;R^"860.4:","860.41:7",.02,"E"
;;D^GENERIC QUERY RESULTS
;;R^"860.4:","860.41:7",1,"E"
;;D^QUERY.DATA
;;EOR^
;;KEY^860.4:^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.4:",1,"E"
;;D^CLOZ ANC FLAG
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_ANC_W/IN_7_FLAG
;;EOR^
;;KEY^860.4:^CLOZAPINE ANC W/IN 7 RESULT
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE ANC W/IN 7 RESULT
;;R^"860.4:",1,"E"
;;D^CLOZ ANC RSLT
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_ANC_W/IN_7_RSLT
;;EOR^
;;KEY^860.4:^CLOZAPINE FORMATTED LAB RESULTS
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE FORMATTED LAB RESULTS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_LAB_RESULTS
;;EOR^
;;KEY^860.4:^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.4:",1,"E"
;;D^CLOZ WBC FLAG
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_WBC_W/IN_7_FLAG
;;EOR^
;;KEY^860.4:^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"860.4:",1,"E"
;;D^CLOZ WBC RSLT
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_WBC_W/IN_7_RSLT
;;EOR^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^HL7 ITEM-CANCELLED MESSAGE
;;R^"860.3:",.01,"E"
;;D^HL7 ITEM-CANCELLED MESSAGE
;;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^CONTROL CODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^OC
;;EOR^
;;KEY^860.3:^CONSULT/REQUEST ORDER
;;R^"860.3:",.01,"E"
;;D^CONSULT/REQUEST ORDER
;;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^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^GMRC
;;EOR^
;;KEY^860.3:^HL7 ITEM-ON-HOLD MESSAGE
;;R^"860.3:",.01,"E"
;;D^HL7 ITEM-ON-HOLD MESSAGE
;;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^CONTROL CODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^OH
;;EOR^
;;KEY^860.3:^HL7 ORDERING PROVIDER EXISTS
;;R^"860.3:",.01,"E"
;;D^HL7 ORDERING PROVIDER EXISTS
;;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^ORDERING PROVIDER
;;R^"860.3:","860.31:1",2,"E"
;;D^LENGTH IS GREATER THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^0
;;EOR^
;;KEY^860.3:^HL7 FINAL LAB RESULT
;;R^"860.3:",.01,"E"
;;D^HL7 FINAL LAB RESULT
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^RE
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:4",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:4",3,"E"
;;D^LR
;;R^"860.3:","860.31:5",.01,"E"
;1;
;
OCXDI02U ;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 ^OCXDI02V
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.4:",101,"E"
+3 ;;D^BOOLEAN
+4 ;;R^"860.4:","860.41:4",.01,"E"
+5 ;;D^DATABASE LOOKUP
+6 ;;R^"860.4:","860.41:4",.02,"E"
+7 ;;D^DATABASE LOOKUP
+8 ;;R^"860.4:","860.41:4",1,"E"
+9 ;;D^PATIENT.CLOZAPINE MED
+10 ;;EOR^
+11 ;;KEY^860.4:^GENERIC QUERY MODE
+12 ;;R^"860.4:",.01,"E"
+13 ;;D^GENERIC QUERY MODE
+14 ;;R^"860.4:",1,"E"
+15 ;;D^QUERY MODE
+16 ;;R^"860.4:",101,"E"
+17 ;;D^FREE TEXT
+18 ;;R^"860.4:","860.41:7",.01,"E"
+19 ;;D^GENERIC QUERY
+20 ;;R^"860.4:","860.41:7",.02,"E"
+21 ;;D^GENERIC QUERY RESULTS
+22 ;;R^"860.4:","860.41:7",1,"E"
+23 ;;D^QUERY.MODE
+24 ;;EOR^
+25 ;;KEY^860.4:^WBC W/IN 7 DAYS FLAG
+26 ;;R^"860.4:",.01,"E"
+27 ;;D^WBC W/IN 7 DAYS FLAG
+28 ;;R^"860.4:",1,"E"
+29 ;;D^WBC 7 DAYS
+30 ;;R^"860.4:",101,"E"
+31 ;;D^BOOLEAN
+32 ;;R^"860.4:","860.41:4",.01,"E"
+33 ;;D^DATABASE LOOKUP
+34 ;;R^"860.4:","860.41:4",.02,"E"
+35 ;;D^DATABASE LOOKUP
+36 ;;R^"860.4:","860.41:4",1,"E"
+37 ;;D^PATIENT.WBC_W/IN_7_DAYS_FLAG
+38 ;;EOR^
+39 ;;KEY^860.4:^GENERIC QUERY DATA
+40 ;;R^"860.4:",.01,"E"
+41 ;;D^GENERIC QUERY DATA
+42 ;;R^"860.4:",1,"E"
+43 ;;D^QUERY DATA
+44 ;;R^"860.4:",101,"E"
+45 ;;D^FREE TEXT
+46 ;;R^"860.4:","860.41:7",.01,"E"
+47 ;;D^GENERIC QUERY
+48 ;;R^"860.4:","860.41:7",.02,"E"
+49 ;;D^GENERIC QUERY RESULTS
+50 ;;R^"860.4:","860.41:7",1,"E"
+51 ;;D^QUERY.DATA
+52 ;;EOR^
+53 ;;KEY^860.4:^CLOZAPINE ANC W/IN 7 FLAG
+54 ;;R^"860.4:",.01,"E"
+55 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+56 ;;R^"860.4:",1,"E"
+57 ;;D^CLOZ ANC FLAG
+58 ;;R^"860.4:",101,"E"
+59 ;;D^BOOLEAN
+60 ;;R^"860.4:","860.41:4",.01,"E"
+61 ;;D^DATABASE LOOKUP
+62 ;;R^"860.4:","860.41:4",.02,"E"
+63 ;;D^DATABASE LOOKUP
+64 ;;R^"860.4:","860.41:4",1,"E"
+65 ;;D^PATIENT.CLOZ_ANC_W/IN_7_FLAG
+66 ;;EOR^
+67 ;;KEY^860.4:^CLOZAPINE ANC W/IN 7 RESULT
+68 ;;R^"860.4:",.01,"E"
+69 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+70 ;;R^"860.4:",1,"E"
+71 ;;D^CLOZ ANC RSLT
+72 ;;R^"860.4:",101,"E"
+73 ;;D^NUMERIC
+74 ;;R^"860.4:","860.41:4",.01,"E"
+75 ;;D^DATABASE LOOKUP
+76 ;;R^"860.4:","860.41:4",.02,"E"
+77 ;;D^DATABASE LOOKUP
+78 ;;R^"860.4:","860.41:4",1,"E"
+79 ;;D^PATIENT.CLOZ_ANC_W/IN_7_RSLT
+80 ;;EOR^
+81 ;;KEY^860.4:^CLOZAPINE FORMATTED LAB RESULTS
+82 ;;R^"860.4:",.01,"E"
+83 ;;D^CLOZAPINE FORMATTED LAB RESULTS
+84 ;;R^"860.4:",101,"E"
+85 ;;D^FREE TEXT
+86 ;;R^"860.4:","860.41:4",.01,"E"
+87 ;;D^DATABASE LOOKUP
+88 ;;R^"860.4:","860.41:4",.02,"E"
+89 ;;D^DATABASE LOOKUP
+90 ;;R^"860.4:","860.41:4",1,"E"
+91 ;;D^PATIENT.CLOZ_LAB_RESULTS
+92 ;;EOR^
+93 ;;KEY^860.4:^CLOZAPINE WBC W/IN 7 FLAG
+94 ;;R^"860.4:",.01,"E"
+95 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+96 ;;R^"860.4:",1,"E"
+97 ;;D^CLOZ WBC FLAG
+98 ;;R^"860.4:",101,"E"
+99 ;;D^BOOLEAN
+100 ;;R^"860.4:","860.41:4",.01,"E"
+101 ;;D^DATABASE LOOKUP
+102 ;;R^"860.4:","860.41:4",.02,"E"
+103 ;;D^DATABASE LOOKUP
+104 ;;R^"860.4:","860.41:4",1,"E"
+105 ;;D^PATIENT.CLOZ_WBC_W/IN_7_FLAG
+106 ;;EOR^
+107 ;;KEY^860.4:^CLOZAPINE WBC W/IN 7 RESULT
+108 ;;R^"860.4:",.01,"E"
+109 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+110 ;;R^"860.4:",1,"E"
+111 ;;D^CLOZ WBC RSLT
+112 ;;R^"860.4:",101,"E"
+113 ;;D^NUMERIC
+114 ;;R^"860.4:","860.41:4",.01,"E"
+115 ;;D^DATABASE LOOKUP
+116 ;;R^"860.4:","860.41:4",.02,"E"
+117 ;;D^DATABASE LOOKUP
+118 ;;R^"860.4:","860.41:4",1,"E"
+119 ;;D^PATIENT.CLOZ_WBC_W/IN_7_RSLT
+120 ;;EOR^
+121 ;;EOF^OCXS(860.4)^1
+122 ;;SOF^860.3 ORDER CHECK ELEMENT
+123 ;;KEY^860.3:^HL7 ITEM-CANCELLED MESSAGE
+124 ;;R^"860.3:",.01,"E"
+125 ;;D^HL7 ITEM-CANCELLED MESSAGE
+126 ;;R^"860.3:",.02,"E"
+127 ;;D^GENERIC HL7 MESSAGE ARRAY
+128 ;;R^"860.3:","860.31:1",.01,"E"
+129 ;;D^1
+130 ;;R^"860.3:","860.31:1",1,"E"
+131 ;;D^CONTROL CODE
+132 ;;R^"860.3:","860.31:1",2,"E"
+133 ;;D^EQ FREE TEXT
+134 ;;R^"860.3:","860.31:1",3,"E"
+135 ;;D^OC
+136 ;;EOR^
+137 ;;KEY^860.3:^CONSULT/REQUEST ORDER
+138 ;;R^"860.3:",.01,"E"
+139 ;;D^CONSULT/REQUEST ORDER
+140 ;;R^"860.3:",.02,"E"
+141 ;;D^CPRS ORDER PRESCAN
+142 ;;R^"860.3:","860.31:1",.01,"E"
+143 ;;D^1
+144 ;;R^"860.3:","860.31:1",1,"E"
+145 ;;D^FILLER
+146 ;;R^"860.3:","860.31:1",2,"E"
+147 ;;D^EQ FREE TEXT
+148 ;;R^"860.3:","860.31:1",3,"E"
+149 ;;D^GMRC
+150 ;;EOR^
+151 ;;KEY^860.3:^HL7 ITEM-ON-HOLD MESSAGE
+152 ;;R^"860.3:",.01,"E"
+153 ;;D^HL7 ITEM-ON-HOLD MESSAGE
+154 ;;R^"860.3:",.02,"E"
+155 ;;D^GENERIC HL7 MESSAGE ARRAY
+156 ;;R^"860.3:","860.31:1",.01,"E"
+157 ;;D^1
+158 ;;R^"860.3:","860.31:1",1,"E"
+159 ;;D^CONTROL CODE
+160 ;;R^"860.3:","860.31:1",2,"E"
+161 ;;D^EQ FREE TEXT
+162 ;;R^"860.3:","860.31:1",3,"E"
+163 ;;D^OH
+164 ;;EOR^
+165 ;;KEY^860.3:^HL7 ORDERING PROVIDER EXISTS
+166 ;;R^"860.3:",.01,"E"
+167 ;;D^HL7 ORDERING PROVIDER EXISTS
+168 ;;R^"860.3:",.02,"E"
+169 ;;D^GENERIC HL7 MESSAGE ARRAY
+170 ;;R^"860.3:","860.31:1",.01,"E"
+171 ;;D^1
+172 ;;R^"860.3:","860.31:1",1,"E"
+173 ;;D^ORDERING PROVIDER
+174 ;;R^"860.3:","860.31:1",2,"E"
+175 ;;D^LENGTH IS GREATER THAN
+176 ;;R^"860.3:","860.31:1",3,"E"
+177 ;;D^0
+178 ;;EOR^
+179 ;;KEY^860.3:^HL7 FINAL LAB RESULT
+180 ;;R^"860.3:",.01,"E"
+181 ;;D^HL7 FINAL LAB RESULT
+182 ;;R^"860.3:",.02,"E"
+183 ;;D^GENERIC HL7 MESSAGE ARRAY
+184 ;;R^"860.3:","860.31:3",.01,"E"
+185 ;;D^3
+186 ;;R^"860.3:","860.31:3",1,"E"
+187 ;;D^CONTROL CODE
+188 ;;R^"860.3:","860.31:3",2,"E"
+189 ;;D^EQUALS ELEMENT IN SET
+190 ;;R^"860.3:","860.31:3",3,"E"
+191 ;;D^RE
+192 ;;R^"860.3:","860.31:4",.01,"E"
+193 ;;D^4
+194 ;;R^"860.3:","860.31:4",1,"E"
+195 ;;D^FILLER
+196 ;;R^"860.3:","860.31:4",2,"E"
+197 ;;D^STARTS WITH
+198 ;;R^"860.3:","860.31:4",3,"E"
+199 ;;D^LR
+200 ;;R^"860.3:","860.31:5",.01,"E"
+201 ;1;
+202 ;