OCXDI02Y ;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 ^OCXDI02Z
;
Q
;
DATA ;
;
;;D^ABNORMAL FLAG
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^A
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.3:","860.31:3",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:3",3,"E"
;;D^F
;;EOR^
;;KEY^860.3:^PATIENT TRANSFERRED FROM PSYCH WARD
;;R^"860.3:",.01,"E"
;;D^PATIENT TRANSFERRED FROM PSYCH WARD
;;R^"860.3:",.02,"E"
;;D^DGPM PATIENT MOVEMENT PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^PATIENT MOVEMENT SERVICE PREVIOUS
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^PSYCHIATRY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PATIENT MOVEMENT SERVICE CURRENT
;;R^"860.3:","860.31:2",2,"E"
;;D^LENGTH IS GREATER THAN
;;R^"860.3:","860.31:2",3,"E"
;;D^0
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^PATIENT MOVEMENT SERVICE CURRENT
;;R^"860.3:","860.31:3",2,"E"
;;D^NOT EQUAL TO
;;R^"860.3:","860.31:3",3,"E"
;;D^PSYCHIATRY
;;EOR^
;;KEY^860.3:^HL7 NEW SERVICE ORDER
;;R^"860.3:",.01,"E"
;;D^HL7 NEW SERVICE ORDER
;;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^SN
;;EOR^
;;KEY^860.3:^ORDER FLAGGED
;;R^"860.3:",.01,"E"
;;D^ORDER FLAGGED
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^ORDER REQUIRES CHART SIGNATURE
;;R^"860.3:",.01,"E"
;;D^ORDER REQUIRES CHART SIGNATURE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER REQ. CHART SIGN.
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^SERVICE ORDER REQUIRES CHART SIGNATURE
;;R^"860.3:",.01,"E"
;;D^SERVICE ORDER REQUIRES CHART SIGNATURE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^SERV. ORDER REQ CHART SIG.
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^ORDER REQUIRES CO-SIGNATURE
;;R^"860.3:",.01,"E"
;;D^ORDER REQUIRES CO-SIGNATURE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER REQ. CO-SIG.
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.3:",.01,"E"
;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER REQ. ELEC. SIG.
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^ORDER FLAGGED FOR RESULTS
;;R^"860.3:",.01,"E"
;;D^ORDER FLAGGED FOR RESULTS
;;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^ORDER FLAGGED FOR RESULTS
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^TEST PAP SMEAR ORDER
;;R^"860.3:",.01,"E"
;;D^TEST PAP SMEAR ORDER
;;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^OBSERVATION VALUE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^PAP SMEAR
;;EOR^
;;KEY^860.3:^CONSULT CANCELLED
;;R^"860.3:",.01,"E"
;;D^CONSULT CANCELLED
;;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^CONTROL CODE
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^CA
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;EOR^
;;KEY^860.3:^HL7 DIET NAME EQUALS NPO
;;R^"860.3:",.01,"E"
;;D^HL7 DIET NAME EQUALS NPO
;;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^DIET ORDERABLE ITEM
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^NPO
;;EOR^
;;KEY^860.3:^CONSULT DISCONTINUED
;;R^"860.3:",.01,"E"
;;D^CONSULT DISCONTINUED
;;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"
;1;
;
OCXDI02Y ;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 ^OCXDI02Z
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^ABNORMAL FLAG
+3 ;;R^"860.3:","860.31:2",2,"E"
+4 ;;D^EQ FREE TEXT
+5 ;;R^"860.3:","860.31:2",3,"E"
+6 ;;D^A
+7 ;;R^"860.3:","860.31:3",.01,"E"
+8 ;;D^3
+9 ;;R^"860.3:","860.31:3",1,"E"
+10 ;;D^REQUEST STATUS (OBR)
+11 ;;R^"860.3:","860.31:3",2,"E"
+12 ;;D^EQ FREE TEXT
+13 ;;R^"860.3:","860.31:3",3,"E"
+14 ;;D^F
+15 ;;EOR^
+16 ;;KEY^860.3:^PATIENT TRANSFERRED FROM PSYCH WARD
+17 ;;R^"860.3:",.01,"E"
+18 ;;D^PATIENT TRANSFERRED FROM PSYCH WARD
+19 ;;R^"860.3:",.02,"E"
+20 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+21 ;;R^"860.3:","860.31:1",.01,"E"
+22 ;;D^1
+23 ;;R^"860.3:","860.31:1",1,"E"
+24 ;;D^PATIENT MOVEMENT SERVICE PREVIOUS
+25 ;;R^"860.3:","860.31:1",2,"E"
+26 ;;D^EQ FREE TEXT
+27 ;;R^"860.3:","860.31:1",3,"E"
+28 ;;D^PSYCHIATRY
+29 ;;R^"860.3:","860.31:2",.01,"E"
+30 ;;D^2
+31 ;;R^"860.3:","860.31:2",1,"E"
+32 ;;D^PATIENT MOVEMENT SERVICE CURRENT
+33 ;;R^"860.3:","860.31:2",2,"E"
+34 ;;D^LENGTH IS GREATER THAN
+35 ;;R^"860.3:","860.31:2",3,"E"
+36 ;;D^0
+37 ;;R^"860.3:","860.31:3",.01,"E"
+38 ;;D^3
+39 ;;R^"860.3:","860.31:3",1,"E"
+40 ;;D^PATIENT MOVEMENT SERVICE CURRENT
+41 ;;R^"860.3:","860.31:3",2,"E"
+42 ;;D^NOT EQUAL TO
+43 ;;R^"860.3:","860.31:3",3,"E"
+44 ;;D^PSYCHIATRY
+45 ;;EOR^
+46 ;;KEY^860.3:^HL7 NEW SERVICE ORDER
+47 ;;R^"860.3:",.01,"E"
+48 ;;D^HL7 NEW SERVICE ORDER
+49 ;;R^"860.3:",.02,"E"
+50 ;;D^GENERIC HL7 MESSAGE ARRAY
+51 ;;R^"860.3:","860.31:1",.01,"E"
+52 ;;D^1
+53 ;;R^"860.3:","860.31:1",1,"E"
+54 ;;D^CONTROL CODE
+55 ;;R^"860.3:","860.31:1",2,"E"
+56 ;;D^EQ FREE TEXT
+57 ;;R^"860.3:","860.31:1",3,"E"
+58 ;;D^SN
+59 ;;EOR^
+60 ;;KEY^860.3:^ORDER FLAGGED
+61 ;;R^"860.3:",.01,"E"
+62 ;;D^ORDER FLAGGED
+63 ;;R^"860.3:",.02,"E"
+64 ;;D^CPRS ORDER PROTOCOL
+65 ;;R^"860.3:","860.31:1",.01,"E"
+66 ;;D^1
+67 ;;R^"860.3:","860.31:1",1,"E"
+68 ;;D^ORDER FLAGGED FOR CLARIFICATION
+69 ;;R^"860.3:","860.31:1",2,"E"
+70 ;;D^LOGICAL TRUE
+71 ;;EOR^
+72 ;;KEY^860.3:^ORDER REQUIRES CHART SIGNATURE
+73 ;;R^"860.3:",.01,"E"
+74 ;;D^ORDER REQUIRES CHART SIGNATURE
+75 ;;R^"860.3:",.02,"E"
+76 ;;D^CPRS ORDER PROTOCOL
+77 ;;R^"860.3:","860.31:1",.01,"E"
+78 ;;D^1
+79 ;;R^"860.3:","860.31:1",1,"E"
+80 ;;D^ORDER REQ. CHART SIGN.
+81 ;;R^"860.3:","860.31:1",2,"E"
+82 ;;D^LOGICAL TRUE
+83 ;;EOR^
+84 ;;KEY^860.3:^SERVICE ORDER REQUIRES CHART SIGNATURE
+85 ;;R^"860.3:",.01,"E"
+86 ;;D^SERVICE ORDER REQUIRES CHART SIGNATURE
+87 ;;R^"860.3:",.02,"E"
+88 ;;D^CPRS ORDER PROTOCOL
+89 ;;R^"860.3:","860.31:1",.01,"E"
+90 ;;D^1
+91 ;;R^"860.3:","860.31:1",1,"E"
+92 ;;D^SERV. ORDER REQ CHART SIG.
+93 ;;R^"860.3:","860.31:1",2,"E"
+94 ;;D^LOGICAL TRUE
+95 ;;EOR^
+96 ;;KEY^860.3:^ORDER REQUIRES CO-SIGNATURE
+97 ;;R^"860.3:",.01,"E"
+98 ;;D^ORDER REQUIRES CO-SIGNATURE
+99 ;;R^"860.3:",.02,"E"
+100 ;;D^CPRS ORDER PROTOCOL
+101 ;;R^"860.3:","860.31:1",.01,"E"
+102 ;;D^1
+103 ;;R^"860.3:","860.31:1",1,"E"
+104 ;;D^ORDER REQ. CO-SIG.
+105 ;;R^"860.3:","860.31:1",2,"E"
+106 ;;D^LOGICAL TRUE
+107 ;;EOR^
+108 ;;KEY^860.3:^ORDER REQUIRES ELECTRONIC SIGNATURE
+109 ;;R^"860.3:",.01,"E"
+110 ;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
+111 ;;R^"860.3:",.02,"E"
+112 ;;D^CPRS ORDER PROTOCOL
+113 ;;R^"860.3:","860.31:1",.01,"E"
+114 ;;D^1
+115 ;;R^"860.3:","860.31:1",1,"E"
+116 ;;D^ORDER REQ. ELEC. SIG.
+117 ;;R^"860.3:","860.31:1",2,"E"
+118 ;;D^LOGICAL TRUE
+119 ;;EOR^
+120 ;;KEY^860.3:^ORDER FLAGGED FOR RESULTS
+121 ;;R^"860.3:",.01,"E"
+122 ;;D^ORDER FLAGGED FOR RESULTS
+123 ;;R^"860.3:",.02,"E"
+124 ;;D^GENERIC HL7 MESSAGE ARRAY
+125 ;;R^"860.3:","860.31:1",.01,"E"
+126 ;;D^1
+127 ;;R^"860.3:","860.31:1",1,"E"
+128 ;;D^ORDER FLAGGED FOR RESULTS
+129 ;;R^"860.3:","860.31:1",2,"E"
+130 ;;D^LOGICAL TRUE
+131 ;;EOR^
+132 ;;KEY^860.3:^TEST PAP SMEAR ORDER
+133 ;;R^"860.3:",.01,"E"
+134 ;;D^TEST PAP SMEAR ORDER
+135 ;;R^"860.3:",.02,"E"
+136 ;;D^GENERIC HL7 MESSAGE ARRAY
+137 ;;R^"860.3:","860.31:1",.01,"E"
+138 ;;D^1
+139 ;;R^"860.3:","860.31:1",1,"E"
+140 ;;D^OBSERVATION VALUE
+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^PAP SMEAR
+145 ;;EOR^
+146 ;;KEY^860.3:^CONSULT CANCELLED
+147 ;;R^"860.3:",.01,"E"
+148 ;;D^CONSULT CANCELLED
+149 ;;R^"860.3:",.02,"E"
+150 ;;D^GENERIC HL7 MESSAGE ARRAY
+151 ;;R^"860.3:","860.31:1",.01,"E"
+152 ;;D^1
+153 ;;R^"860.3:","860.31:1",1,"E"
+154 ;;D^FILLER
+155 ;;R^"860.3:","860.31:1",2,"E"
+156 ;;D^EQ FREE TEXT
+157 ;;R^"860.3:","860.31:1",3,"E"
+158 ;;D^GMRC
+159 ;;R^"860.3:","860.31:2",.01,"E"
+160 ;;D^2
+161 ;;R^"860.3:","860.31:2",1,"E"
+162 ;;D^CONTROL CODE
+163 ;;R^"860.3:","860.31:2",2,"E"
+164 ;;D^EQ FREE TEXT
+165 ;;R^"860.3:","860.31:2",3,"E"
+166 ;;D^CA
+167 ;;R^"860.3:","860.31:3",.01,"E"
+168 ;;D^3
+169 ;;EOR^
+170 ;;KEY^860.3:^HL7 DIET NAME EQUALS NPO
+171 ;;R^"860.3:",.01,"E"
+172 ;;D^HL7 DIET NAME EQUALS NPO
+173 ;;R^"860.3:",.02,"E"
+174 ;;D^GENERIC HL7 MESSAGE ARRAY
+175 ;;R^"860.3:","860.31:1",.01,"E"
+176 ;;D^1
+177 ;;R^"860.3:","860.31:1",1,"E"
+178 ;;D^DIET ORDERABLE ITEM
+179 ;;R^"860.3:","860.31:1",2,"E"
+180 ;;D^EQ FREE TEXT
+181 ;;R^"860.3:","860.31:1",3,"E"
+182 ;;D^NPO
+183 ;;EOR^
+184 ;;KEY^860.3:^CONSULT DISCONTINUED
+185 ;;R^"860.3:",.01,"E"
+186 ;;D^CONSULT DISCONTINUED
+187 ;;R^"860.3:",.02,"E"
+188 ;;D^GENERIC HL7 MESSAGE ARRAY
+189 ;;R^"860.3:","860.31:1",.01,"E"
+190 ;;D^1
+191 ;;R^"860.3:","860.31:1",1,"E"
+192 ;;D^FILLER
+193 ;;R^"860.3:","860.31:1",2,"E"
+194 ;;D^EQ FREE TEXT
+195 ;;R^"860.3:","860.31:1",3,"E"
+196 ;;D^GMRC
+197 ;;R^"860.3:","860.31:2",.01,"E"
+198 ;1;
+199 ;