OCXDI01W ;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 ^OCXDI01X
;
Q
;
DATA ;
;
;;D^HL7
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO FILE POINTER
;;EOR^
;;KEY^863.3:^PATIENT.HL7_CONTROL_CODE
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_CONTROL_CODE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^HL7 CONTROL CODE
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("ORC",1)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7_ORDERING_PROVIDER
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ORDERING_PROVIDER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^HL7 ORDERING PROVIDER
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("ORC",12)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:6",1,"E"
;;D^200
;;EOR^
;;KEY^863.3:^PATIENT.HL7_STATUS
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_STATUS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^HL7 STATUS
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",11)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7_ORDER_START_D/T
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ORDER_START_D/T
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^HL7 ORDER START D/T
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("ORC",15)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7_ORDER_PRIORITY
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ORDER_PRIORITY
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^ORDER PRIORITY
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBR",27)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:4",1,"E"
;;D^6
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:6",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.RESULT_STATUS
;;R^"863.3:",.01,"E"
;;D^PATIENT.RESULT_STATUS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^RESULT STATUS OBX
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",11)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:4",1,"E"
;;D^1
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7_ABNORMAL_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ABNORMAL_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^ABNORM FLAG
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",8)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:4",1,"E"
;;D^1
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:5",1,"E"
;1;
;
OCXDI01W ;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 ^OCXDI01X
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^HL7
+3 ;;R^"863.3:","863.32:6",.01,"E"
+4 ;;D^OCXO FILE POINTER
+5 ;;EOR^
+6 ;;KEY^863.3:^PATIENT.HL7_CONTROL_CODE
+7 ;;R^"863.3:",.01,"E"
+8 ;;D^PATIENT.HL7_CONTROL_CODE
+9 ;;R^"863.3:",.02,"E"
+10 ;;D^PATIENT
+11 ;;R^"863.3:",.04,"E"
+12 ;;D^HL7
+13 ;;R^"863.3:",.05,"E"
+14 ;;D^HL7 CONTROL CODE
+15 ;;R^"863.3:","863.32:1",.01,"E"
+16 ;;D^OCXO VARIABLE NAME
+17 ;;R^"863.3:","863.32:1",1,"E"
+18 ;;D^OCXODATA("ORC",1)
+19 ;;R^"863.3:","863.32:2",.01,"E"
+20 ;;D^OCXO VT-BAR PIECE NUMBER
+21 ;;R^"863.3:","863.32:3",.01,"E"
+22 ;;D^OCXO UP-ARROW PIECE NUMBER
+23 ;;R^"863.3:","863.32:3",1,"E"
+24 ;;D^1
+25 ;;R^"863.3:","863.32:4",.01,"E"
+26 ;;D^OCXO HL7 SEGMENT ID
+27 ;;R^"863.3:","863.32:5",.01,"E"
+28 ;;D^OCXO DATA DRIVE SOURCE
+29 ;;R^"863.3:","863.32:5",1,"E"
+30 ;;D^HL7
+31 ;;EOR^
+32 ;;KEY^863.3:^PATIENT.HL7_ORDERING_PROVIDER
+33 ;;R^"863.3:",.01,"E"
+34 ;;D^PATIENT.HL7_ORDERING_PROVIDER
+35 ;;R^"863.3:",.02,"E"
+36 ;;D^PATIENT
+37 ;;R^"863.3:",.04,"E"
+38 ;;D^HL7
+39 ;;R^"863.3:",.05,"E"
+40 ;;D^HL7 ORDERING PROVIDER
+41 ;;R^"863.3:","863.32:1",.01,"E"
+42 ;;D^OCXO VARIABLE NAME
+43 ;;R^"863.3:","863.32:1",1,"E"
+44 ;;D^OCXODATA("ORC",12)
+45 ;;R^"863.3:","863.32:2",.01,"E"
+46 ;;D^OCXO VT-BAR PIECE NUMBER
+47 ;;R^"863.3:","863.32:3",.01,"E"
+48 ;;D^OCXO UP-ARROW PIECE NUMBER
+49 ;;R^"863.3:","863.32:3",1,"E"
+50 ;;D^1
+51 ;;R^"863.3:","863.32:4",.01,"E"
+52 ;;D^OCXO HL7 SEGMENT ID
+53 ;;R^"863.3:","863.32:5",.01,"E"
+54 ;;D^OCXO DATA DRIVE SOURCE
+55 ;;R^"863.3:","863.32:5",1,"E"
+56 ;;D^HL7
+57 ;;R^"863.3:","863.32:6",.01,"E"
+58 ;;D^OCXO FILE POINTER
+59 ;;R^"863.3:","863.32:6",1,"E"
+60 ;;D^200
+61 ;;EOR^
+62 ;;KEY^863.3:^PATIENT.HL7_STATUS
+63 ;;R^"863.3:",.01,"E"
+64 ;;D^PATIENT.HL7_STATUS
+65 ;;R^"863.3:",.02,"E"
+66 ;;D^PATIENT
+67 ;;R^"863.3:",.04,"E"
+68 ;;D^HL7
+69 ;;R^"863.3:",.05,"E"
+70 ;;D^HL7 STATUS
+71 ;;R^"863.3:","863.32:1",.01,"E"
+72 ;;D^OCXO VARIABLE NAME
+73 ;;R^"863.3:","863.32:1",1,"E"
+74 ;;D^OCXODATA("OBX",11)
+75 ;;R^"863.3:","863.32:2",.01,"E"
+76 ;;D^OCXO VT-BAR PIECE NUMBER
+77 ;;R^"863.3:","863.32:3",.01,"E"
+78 ;;D^OCXO UP-ARROW PIECE NUMBER
+79 ;;R^"863.3:","863.32:3",1,"E"
+80 ;;D^1
+81 ;;R^"863.3:","863.32:4",.01,"E"
+82 ;;D^OCXO HL7 SEGMENT ID
+83 ;;R^"863.3:","863.32:5",.01,"E"
+84 ;;D^OCXO DATA DRIVE SOURCE
+85 ;;R^"863.3:","863.32:5",1,"E"
+86 ;;D^HL7
+87 ;;EOR^
+88 ;;KEY^863.3:^PATIENT.HL7_ORDER_START_D/T
+89 ;;R^"863.3:",.01,"E"
+90 ;;D^PATIENT.HL7_ORDER_START_D/T
+91 ;;R^"863.3:",.02,"E"
+92 ;;D^PATIENT
+93 ;;R^"863.3:",.04,"E"
+94 ;;D^HL7
+95 ;;R^"863.3:",.05,"E"
+96 ;;D^HL7 ORDER START D/T
+97 ;;R^"863.3:","863.32:1",.01,"E"
+98 ;;D^OCXO VARIABLE NAME
+99 ;;R^"863.3:","863.32:1",1,"E"
+100 ;;D^OCXODATA("ORC",15)
+101 ;;R^"863.3:","863.32:2",.01,"E"
+102 ;;D^OCXO VT-BAR PIECE NUMBER
+103 ;;R^"863.3:","863.32:3",.01,"E"
+104 ;;D^OCXO UP-ARROW PIECE NUMBER
+105 ;;R^"863.3:","863.32:3",1,"E"
+106 ;;D^1
+107 ;;R^"863.3:","863.32:4",.01,"E"
+108 ;;D^OCXO HL7 SEGMENT ID
+109 ;;R^"863.3:","863.32:5",.01,"E"
+110 ;;D^OCXO DATA DRIVE SOURCE
+111 ;;R^"863.3:","863.32:5",1,"E"
+112 ;;D^HL7
+113 ;;EOR^
+114 ;;KEY^863.3:^PATIENT.HL7_ORDER_PRIORITY
+115 ;;R^"863.3:",.01,"E"
+116 ;;D^PATIENT.HL7_ORDER_PRIORITY
+117 ;;R^"863.3:",.02,"E"
+118 ;;D^PATIENT
+119 ;;R^"863.3:",.04,"E"
+120 ;;D^HL7
+121 ;;R^"863.3:",.05,"E"
+122 ;;D^ORDER PRIORITY
+123 ;;R^"863.3:","863.32:1",.01,"E"
+124 ;;D^OCXO VARIABLE NAME
+125 ;;R^"863.3:","863.32:1",1,"E"
+126 ;;D^OCXODATA("OBR",27)
+127 ;;R^"863.3:","863.32:2",.01,"E"
+128 ;;D^OCXO HL7 SEGMENT ID
+129 ;;R^"863.3:","863.32:3",.01,"E"
+130 ;;D^OCXO VT-BAR PIECE NUMBER
+131 ;;R^"863.3:","863.32:4",.01,"E"
+132 ;;D^OCXO UP-ARROW PIECE NUMBER
+133 ;;R^"863.3:","863.32:4",1,"E"
+134 ;;D^6
+135 ;;R^"863.3:","863.32:5",.01,"E"
+136 ;;D^OCXO DATA DRIVE SOURCE
+137 ;;R^"863.3:","863.32:5",1,"E"
+138 ;;D^HL7
+139 ;;R^"863.3:","863.32:6",.01,"E"
+140 ;;D^OCXO SEMI-COLON PIECE NUMBER
+141 ;;R^"863.3:","863.32:6",1,"E"
+142 ;;D^1
+143 ;;EOR^
+144 ;;KEY^863.3:^PATIENT.RESULT_STATUS
+145 ;;R^"863.3:",.01,"E"
+146 ;;D^PATIENT.RESULT_STATUS
+147 ;;R^"863.3:",.02,"E"
+148 ;;D^PATIENT
+149 ;;R^"863.3:",.04,"E"
+150 ;;D^HL7
+151 ;;R^"863.3:",.05,"E"
+152 ;;D^RESULT STATUS OBX
+153 ;;R^"863.3:","863.32:1",.01,"E"
+154 ;;D^OCXO VARIABLE NAME
+155 ;;R^"863.3:","863.32:1",1,"E"
+156 ;;D^OCXODATA("OBX",11)
+157 ;;R^"863.3:","863.32:2",.01,"E"
+158 ;;D^OCXO HL7 SEGMENT ID
+159 ;;R^"863.3:","863.32:3",.01,"E"
+160 ;;D^OCXO VT-BAR PIECE NUMBER
+161 ;;R^"863.3:","863.32:4",.01,"E"
+162 ;;D^OCXO UP-ARROW PIECE NUMBER
+163 ;;R^"863.3:","863.32:4",1,"E"
+164 ;;D^1
+165 ;;R^"863.3:","863.32:5",.01,"E"
+166 ;;D^OCXO DATA DRIVE SOURCE
+167 ;;R^"863.3:","863.32:5",1,"E"
+168 ;;D^HL7
+169 ;;EOR^
+170 ;;KEY^863.3:^PATIENT.HL7_ABNORMAL_FLAG
+171 ;;R^"863.3:",.01,"E"
+172 ;;D^PATIENT.HL7_ABNORMAL_FLAG
+173 ;;R^"863.3:",.02,"E"
+174 ;;D^PATIENT
+175 ;;R^"863.3:",.04,"E"
+176 ;;D^HL7
+177 ;;R^"863.3:",.05,"E"
+178 ;;D^ABNORM FLAG
+179 ;;R^"863.3:","863.32:1",.01,"E"
+180 ;;D^OCXO VARIABLE NAME
+181 ;;R^"863.3:","863.32:1",1,"E"
+182 ;;D^OCXODATA("OBX",8)
+183 ;;R^"863.3:","863.32:2",.01,"E"
+184 ;;D^OCXO HL7 SEGMENT ID
+185 ;;R^"863.3:","863.32:3",.01,"E"
+186 ;;D^OCXO VT-BAR PIECE NUMBER
+187 ;;R^"863.3:","863.32:4",.01,"E"
+188 ;;D^OCXO UP-ARROW PIECE NUMBER
+189 ;;R^"863.3:","863.32:4",1,"E"
+190 ;;D^1
+191 ;;R^"863.3:","863.32:5",.01,"E"
+192 ;;D^OCXO DATA DRIVE SOURCE
+193 ;;R^"863.3:","863.32:5",1,"E"
+194 ;1;
+195 ;