OCXDI02W ;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 ^OCXDI02X
;
Q
;
DATA ;
;
;;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:^HL7 LAB ORDER CANCELLED
;;R^"860.3:",.01,"E"
;;D^HL7 LAB ORDER 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^STARTS WITH
;;R^"860.3:","860.31:1",3,"E"
;;D^LR
;;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^OC
;;EOR^
;;KEY^860.3:^PATIENT ADMISSION
;;R^"860.3:",.01,"E"
;;D^PATIENT ADMISSION
;;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 TYPE CURRENT
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^ADMISSION
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^NEW PATIENT MOVEMENT
;;R^"860.3:","860.31:2",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^HL7 LAB ORDER RESULTS ABNORMAL
;;R^"860.3:",.01,"E"
;;D^HL7 LAB ORDER RESULTS ABNORMAL
;;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^STARTS WITH
;;R^"860.3:","860.31:1",3,"E"
;;D^LR
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^ABNORMAL FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^H,L
;;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
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.3:","860.31:5",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:5",3,"E"
;;D^F,C
;;EOR^
;;KEY^860.3:^HL7 LAB TEST RESULTS CRITICAL
;;R^"860.3:",.01,"E"
;;D^HL7 LAB TEST RESULTS CRITICAL
;;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^STARTS WITH
;;R^"860.3:","860.31:1",3,"E"
;;D^LR
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^RESULT STATUS (OBX)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:2",3,"E"
;;D^F,C
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^ABNORMAL FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^HH,LL
;;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:^HL7 LAB TEST RESULTS CRITICAL HIGH
;;R^"860.3:",.01,"E"
;;D^HL7 LAB TEST RESULTS CRITICAL HIGH
;;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^STARTS WITH
;;R^"860.3:","860.31:1",3,"E"
;;D^LR
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^RESULT STATUS (OBX)
;;R^"860.3:","860.31:2",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:2",3,"E"
;;D^F,C
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^ABNORMAL FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:3",3,"E"
;;D^HH
;;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:^RADIOLOGY PROCEDURE
;;R^"860.3:",.01,"E"
;;D^RADIOLOGY PROCEDURE
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.3:^RADIOLOGY ORDER
;;R^"860.3:",.01,"E"
;;D^RADIOLOGY 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^FILLER
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^RA
;;EOR^
;;KEY^860.3:^ORDER DISCONTINUED
;;R^"860.3:",.01,"E"
;;D^ORDER 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^CONTROL CODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^OD
;;EOR^
;;KEY^860.3:^RADIOLOGY ORDER PUT ON-HOLD
;;R^"860.3:",.01,"E"
;;D^RADIOLOGY ORDER PUT ON-HOLD
;;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"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI02W 5490 printed Oct 16, 2024@18:24:46 Page 2
OCXDI02W ;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 ^OCXDI02X
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^1
+3 ;;R^"860.3:","860.31:1",1,"E"
+4 ;;D^CONTROL CODE
+5 ;;R^"860.3:","860.31:1",2,"E"
+6 ;;D^EQ FREE TEXT
+7 ;;R^"860.3:","860.31:1",3,"E"
+8 ;;D^OC
+9 ;;EOR^
+10 ;;KEY^860.3:^HL7 LAB ORDER CANCELLED
+11 ;;R^"860.3:",.01,"E"
+12 ;;D^HL7 LAB ORDER CANCELLED
+13 ;;R^"860.3:",.02,"E"
+14 ;;D^GENERIC HL7 MESSAGE ARRAY
+15 ;;R^"860.3:","860.31:1",.01,"E"
+16 ;;D^1
+17 ;;R^"860.3:","860.31:1",1,"E"
+18 ;;D^FILLER
+19 ;;R^"860.3:","860.31:1",2,"E"
+20 ;;D^STARTS WITH
+21 ;;R^"860.3:","860.31:1",3,"E"
+22 ;;D^LR
+23 ;;R^"860.3:","860.31:2",.01,"E"
+24 ;;D^2
+25 ;;R^"860.3:","860.31:2",1,"E"
+26 ;;D^CONTROL CODE
+27 ;;R^"860.3:","860.31:2",2,"E"
+28 ;;D^EQ FREE TEXT
+29 ;;R^"860.3:","860.31:2",3,"E"
+30 ;;D^OC
+31 ;;EOR^
+32 ;;KEY^860.3:^PATIENT ADMISSION
+33 ;;R^"860.3:",.01,"E"
+34 ;;D^PATIENT ADMISSION
+35 ;;R^"860.3:",.02,"E"
+36 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+37 ;;R^"860.3:","860.31:1",.01,"E"
+38 ;;D^1
+39 ;;R^"860.3:","860.31:1",1,"E"
+40 ;;D^PATIENT MOVEMENT TYPE CURRENT
+41 ;;R^"860.3:","860.31:1",2,"E"
+42 ;;D^EQ FREE TEXT
+43 ;;R^"860.3:","860.31:1",3,"E"
+44 ;;D^ADMISSION
+45 ;;R^"860.3:","860.31:2",.01,"E"
+46 ;;D^2
+47 ;;R^"860.3:","860.31:2",1,"E"
+48 ;;D^NEW PATIENT MOVEMENT
+49 ;;R^"860.3:","860.31:2",2,"E"
+50 ;;D^LOGICAL TRUE
+51 ;;EOR^
+52 ;;KEY^860.3:^HL7 LAB ORDER RESULTS ABNORMAL
+53 ;;R^"860.3:",.01,"E"
+54 ;;D^HL7 LAB ORDER RESULTS ABNORMAL
+55 ;;R^"860.3:",.02,"E"
+56 ;;D^GENERIC HL7 MESSAGE ARRAY
+57 ;;R^"860.3:","860.31:1",.01,"E"
+58 ;;D^1
+59 ;;R^"860.3:","860.31:1",1,"E"
+60 ;;D^FILLER
+61 ;;R^"860.3:","860.31:1",2,"E"
+62 ;;D^STARTS WITH
+63 ;;R^"860.3:","860.31:1",3,"E"
+64 ;;D^LR
+65 ;;R^"860.3:","860.31:3",.01,"E"
+66 ;;D^3
+67 ;;R^"860.3:","860.31:3",1,"E"
+68 ;;D^ABNORMAL FLAG
+69 ;;R^"860.3:","860.31:3",2,"E"
+70 ;;D^EQUALS ELEMENT IN SET
+71 ;;R^"860.3:","860.31:3",3,"E"
+72 ;;D^H,L
+73 ;;R^"860.3:","860.31:4",.01,"E"
+74 ;;D^4
+75 ;;R^"860.3:","860.31:4",1,"E"
+76 ;;D^CONTROL CODE
+77 ;;R^"860.3:","860.31:4",2,"E"
+78 ;;D^EQUALS ELEMENT IN SET
+79 ;;R^"860.3:","860.31:4",3,"E"
+80 ;;D^RE
+81 ;;R^"860.3:","860.31:5",.01,"E"
+82 ;;D^5
+83 ;;R^"860.3:","860.31:5",1,"E"
+84 ;;D^REQUEST STATUS (OBR)
+85 ;;R^"860.3:","860.31:5",2,"E"
+86 ;;D^EQUALS ELEMENT IN SET
+87 ;;R^"860.3:","860.31:5",3,"E"
+88 ;;D^F,C
+89 ;;EOR^
+90 ;;KEY^860.3:^HL7 LAB TEST RESULTS CRITICAL
+91 ;;R^"860.3:",.01,"E"
+92 ;;D^HL7 LAB TEST RESULTS CRITICAL
+93 ;;R^"860.3:",.02,"E"
+94 ;;D^GENERIC HL7 MESSAGE ARRAY
+95 ;;R^"860.3:","860.31:1",.01,"E"
+96 ;;D^1
+97 ;;R^"860.3:","860.31:1",1,"E"
+98 ;;D^FILLER
+99 ;;R^"860.3:","860.31:1",2,"E"
+100 ;;D^STARTS WITH
+101 ;;R^"860.3:","860.31:1",3,"E"
+102 ;;D^LR
+103 ;;R^"860.3:","860.31:2",.01,"E"
+104 ;;D^2
+105 ;;R^"860.3:","860.31:2",1,"E"
+106 ;;D^RESULT STATUS (OBX)
+107 ;;R^"860.3:","860.31:2",2,"E"
+108 ;;D^EQUALS ELEMENT IN SET
+109 ;;R^"860.3:","860.31:2",3,"E"
+110 ;;D^F,C
+111 ;;R^"860.3:","860.31:3",.01,"E"
+112 ;;D^3
+113 ;;R^"860.3:","860.31:3",1,"E"
+114 ;;D^ABNORMAL FLAG
+115 ;;R^"860.3:","860.31:3",2,"E"
+116 ;;D^EQUALS ELEMENT IN SET
+117 ;;R^"860.3:","860.31:3",3,"E"
+118 ;;D^HH,LL
+119 ;;R^"860.3:","860.31:4",.01,"E"
+120 ;;D^4
+121 ;;R^"860.3:","860.31:4",1,"E"
+122 ;;D^CONTROL CODE
+123 ;;R^"860.3:","860.31:4",2,"E"
+124 ;;D^EQUALS ELEMENT IN SET
+125 ;;R^"860.3:","860.31:4",3,"E"
+126 ;;D^RE
+127 ;;EOR^
+128 ;;KEY^860.3:^HL7 LAB TEST RESULTS CRITICAL HIGH
+129 ;;R^"860.3:",.01,"E"
+130 ;;D^HL7 LAB TEST RESULTS CRITICAL HIGH
+131 ;;R^"860.3:",.02,"E"
+132 ;;D^GENERIC HL7 MESSAGE ARRAY
+133 ;;R^"860.3:","860.31:1",.01,"E"
+134 ;;D^1
+135 ;;R^"860.3:","860.31:1",1,"E"
+136 ;;D^FILLER
+137 ;;R^"860.3:","860.31:1",2,"E"
+138 ;;D^STARTS WITH
+139 ;;R^"860.3:","860.31:1",3,"E"
+140 ;;D^LR
+141 ;;R^"860.3:","860.31:2",.01,"E"
+142 ;;D^2
+143 ;;R^"860.3:","860.31:2",1,"E"
+144 ;;D^RESULT STATUS (OBX)
+145 ;;R^"860.3:","860.31:2",2,"E"
+146 ;;D^EQUALS ELEMENT IN SET
+147 ;;R^"860.3:","860.31:2",3,"E"
+148 ;;D^F,C
+149 ;;R^"860.3:","860.31:3",.01,"E"
+150 ;;D^3
+151 ;;R^"860.3:","860.31:3",1,"E"
+152 ;;D^ABNORMAL FLAG
+153 ;;R^"860.3:","860.31:3",2,"E"
+154 ;;D^EQ FREE TEXT
+155 ;;R^"860.3:","860.31:3",3,"E"
+156 ;;D^HH
+157 ;;R^"860.3:","860.31:4",.01,"E"
+158 ;;D^4
+159 ;;R^"860.3:","860.31:4",1,"E"
+160 ;;D^CONTROL CODE
+161 ;;R^"860.3:","860.31:4",2,"E"
+162 ;;D^EQUALS ELEMENT IN SET
+163 ;;R^"860.3:","860.31:4",3,"E"
+164 ;;D^RE
+165 ;;EOR^
+166 ;;KEY^860.3:^RADIOLOGY PROCEDURE
+167 ;;R^"860.3:",.01,"E"
+168 ;;D^RADIOLOGY PROCEDURE
+169 ;;R^"860.3:",.02,"E"
+170 ;;D^GENERIC HL7 MESSAGE ARRAY
+171 ;;EOR^
+172 ;;KEY^860.3:^RADIOLOGY ORDER
+173 ;;R^"860.3:",.01,"E"
+174 ;;D^RADIOLOGY ORDER
+175 ;;R^"860.3:",.02,"E"
+176 ;;D^GENERIC HL7 MESSAGE ARRAY
+177 ;;R^"860.3:","860.31:1",.01,"E"
+178 ;;D^1
+179 ;;R^"860.3:","860.31:1",1,"E"
+180 ;;D^FILLER
+181 ;;R^"860.3:","860.31:1",2,"E"
+182 ;;D^EQ FREE TEXT
+183 ;;R^"860.3:","860.31:1",3,"E"
+184 ;;D^RA
+185 ;;EOR^
+186 ;;KEY^860.3:^ORDER DISCONTINUED
+187 ;;R^"860.3:",.01,"E"
+188 ;;D^ORDER DISCONTINUED
+189 ;;R^"860.3:",.02,"E"
+190 ;;D^GENERIC HL7 MESSAGE ARRAY
+191 ;;R^"860.3:","860.31:1",.01,"E"
+192 ;;D^1
+193 ;;R^"860.3:","860.31:1",1,"E"
+194 ;;D^CONTROL CODE
+195 ;;R^"860.3:","860.31:1",2,"E"
+196 ;;D^EQ FREE TEXT
+197 ;;R^"860.3:","860.31:1",3,"E"
+198 ;;D^OD
+199 ;;EOR^
+200 ;;KEY^860.3:^RADIOLOGY ORDER PUT ON-HOLD
+201 ;;R^"860.3:",.01,"E"
+202 ;;D^RADIOLOGY ORDER PUT ON-HOLD
+203 ;;R^"860.3:",.02,"E"
+204 ;;D^GENERIC HL7 MESSAGE ARRAY
+205 ;;R^"860.3:","860.31:1",.01,"E"
+206 ;;D^1
+207 ;;R^"860.3:","860.31:1",1,"E"
+208 ;1;
+209 ;