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