OCXDI01X ;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 ^OCXDI01Y
;
Q
;
DATA ;
;
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7_ORDER_ST_D/T
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ORDER_ST_D/T
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^START DATE
;;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 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.LAB_LOCAL_OI
;;R^"863.3:",.01,"E"
;;D^PATIENT.LAB_LOCAL_OI
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^LAB LOCAL OI
;;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.HL7_ORDER_PLACED_DT
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_ORDER_PLACED_DT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^ORD PLACE DT
;;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 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_EXAM/ORDER_ID
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_EXAM/ORDER_ID
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^EXAM/ORDER ID
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("ORC",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^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_COMMENT
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_COMMENT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^COMMENT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("NTE",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^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_CON_REQ_NAME
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_CON_REQ_NAME
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^CONSULT/REQUEST NAME
;;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.LAB_COLLECTION_D/T
;;R^"863.3:",.01,"E"
;;D^PATIENT.LAB_COLLECTION_D/T
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^LAB COLL D/T
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBR",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^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.LAB_RESULT
;;R^"863.3:",.01,"E"
;;D^PATIENT.LAB_RESULT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^LAB RESULT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",5)
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI01X 5448 printed Dec 13, 2024@02:23:37 Page 2
OCXDI01X ;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 ^OCXDI01Y
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^HL7
+3 ;;EOR^
+4 ;;KEY^863.3:^PATIENT.HL7_ORDER_ST_D/T
+5 ;;R^"863.3:",.01,"E"
+6 ;;D^PATIENT.HL7_ORDER_ST_D/T
+7 ;;R^"863.3:",.02,"E"
+8 ;;D^PATIENT
+9 ;;R^"863.3:",.04,"E"
+10 ;;D^HL7
+11 ;;R^"863.3:",.05,"E"
+12 ;;D^START DATE
+13 ;;R^"863.3:","863.32:1",.01,"E"
+14 ;;D^OCXO VARIABLE NAME
+15 ;;R^"863.3:","863.32:1",1,"E"
+16 ;;D^OCXODATA("ORC",15)
+17 ;;R^"863.3:","863.32:2",.01,"E"
+18 ;;D^OCXO HL7 SEGMENT ID
+19 ;;R^"863.3:","863.32:3",.01,"E"
+20 ;;D^OCXO VT-BAR PIECE NUMBER
+21 ;;R^"863.3:","863.32:4",.01,"E"
+22 ;;D^OCXO UP-ARROW PIECE NUMBER
+23 ;;R^"863.3:","863.32:4",1,"E"
+24 ;;D^1
+25 ;;R^"863.3:","863.32:5",.01,"E"
+26 ;;D^OCXO DATA DRIVE SOURCE
+27 ;;R^"863.3:","863.32:5",1,"E"
+28 ;;D^HL7
+29 ;;EOR^
+30 ;;KEY^863.3:^PATIENT.LAB_LOCAL_OI
+31 ;;R^"863.3:",.01,"E"
+32 ;;D^PATIENT.LAB_LOCAL_OI
+33 ;;R^"863.3:",.02,"E"
+34 ;;D^PATIENT
+35 ;;R^"863.3:",.04,"E"
+36 ;;D^HL7
+37 ;;R^"863.3:",.05,"E"
+38 ;;D^LAB LOCAL OI
+39 ;;R^"863.3:","863.32:1",.01,"E"
+40 ;;D^OCXO VARIABLE NAME
+41 ;;R^"863.3:","863.32:1",1,"E"
+42 ;;D^OCXODATA("OBR",4)
+43 ;;R^"863.3:","863.32:2",.01,"E"
+44 ;;D^OCXO HL7 SEGMENT ID
+45 ;;R^"863.3:","863.32:3",.01,"E"
+46 ;;D^OCXO VT-BAR PIECE NUMBER
+47 ;;R^"863.3:","863.32:4",.01,"E"
+48 ;;D^OCXO UP-ARROW PIECE NUMBER
+49 ;;R^"863.3:","863.32:4",1,"E"
+50 ;;D^5
+51 ;;R^"863.3:","863.32:5",.01,"E"
+52 ;;D^OCXO DATA DRIVE SOURCE
+53 ;;R^"863.3:","863.32:5",1,"E"
+54 ;;D^HL7
+55 ;;EOR^
+56 ;;KEY^863.3:^PATIENT.HL7_ORDER_PLACED_DT
+57 ;;R^"863.3:",.01,"E"
+58 ;;D^PATIENT.HL7_ORDER_PLACED_DT
+59 ;;R^"863.3:",.02,"E"
+60 ;;D^PATIENT
+61 ;;R^"863.3:",.04,"E"
+62 ;;D^HL7
+63 ;;R^"863.3:",.05,"E"
+64 ;;D^ORD PLACE DT
+65 ;;R^"863.3:","863.32:1",.01,"E"
+66 ;;D^OCXO VARIABLE NAME
+67 ;;R^"863.3:","863.32:1",1,"E"
+68 ;;D^OCXODATA("ORC",15)
+69 ;;R^"863.3:","863.32:2",.01,"E"
+70 ;;D^OCXO HL7 SEGMENT ID
+71 ;;R^"863.3:","863.32:3",.01,"E"
+72 ;;D^OCXO VT-BAR PIECE NUMBER
+73 ;;R^"863.3:","863.32:4",.01,"E"
+74 ;;D^OCXO UP-ARROW PIECE NUMBER
+75 ;;R^"863.3:","863.32:4",1,"E"
+76 ;;D^1
+77 ;;R^"863.3:","863.32:5",.01,"E"
+78 ;;D^OCXO DATA DRIVE SOURCE
+79 ;;R^"863.3:","863.32:5",1,"E"
+80 ;;D^HL7
+81 ;;EOR^
+82 ;;KEY^863.3:^PATIENT.HL7_EXAM/ORDER_ID
+83 ;;R^"863.3:",.01,"E"
+84 ;;D^PATIENT.HL7_EXAM/ORDER_ID
+85 ;;R^"863.3:",.02,"E"
+86 ;;D^PATIENT
+87 ;;R^"863.3:",.04,"E"
+88 ;;D^HL7
+89 ;;R^"863.3:",.05,"E"
+90 ;;D^EXAM/ORDER ID
+91 ;;R^"863.3:","863.32:1",.01,"E"
+92 ;;D^OCXO VARIABLE NAME
+93 ;;R^"863.3:","863.32:1",1,"E"
+94 ;;D^OCXODATA("ORC",3)
+95 ;;R^"863.3:","863.32:2",.01,"E"
+96 ;;D^OCXO HL7 SEGMENT ID
+97 ;;R^"863.3:","863.32:3",.01,"E"
+98 ;;D^OCXO VT-BAR PIECE NUMBER
+99 ;;R^"863.3:","863.32:4",.01,"E"
+100 ;;D^OCXO UP-ARROW PIECE NUMBER
+101 ;;R^"863.3:","863.32:4",1,"E"
+102 ;;D^1
+103 ;;R^"863.3:","863.32:5",.01,"E"
+104 ;;D^OCXO DATA DRIVE SOURCE
+105 ;;R^"863.3:","863.32:5",1,"E"
+106 ;;D^HL7
+107 ;;EOR^
+108 ;;KEY^863.3:^PATIENT.HL7_COMMENT
+109 ;;R^"863.3:",.01,"E"
+110 ;;D^PATIENT.HL7_COMMENT
+111 ;;R^"863.3:",.02,"E"
+112 ;;D^PATIENT
+113 ;;R^"863.3:",.04,"E"
+114 ;;D^HL7
+115 ;;R^"863.3:",.05,"E"
+116 ;;D^COMMENT
+117 ;;R^"863.3:","863.32:1",.01,"E"
+118 ;;D^OCXO VARIABLE NAME
+119 ;;R^"863.3:","863.32:1",1,"E"
+120 ;;D^OCXODATA("NTE",3)
+121 ;;R^"863.3:","863.32:2",.01,"E"
+122 ;;D^OCXO HL7 SEGMENT ID
+123 ;;R^"863.3:","863.32:3",.01,"E"
+124 ;;D^OCXO VT-BAR PIECE NUMBER
+125 ;;R^"863.3:","863.32:4",.01,"E"
+126 ;;D^OCXO UP-ARROW PIECE NUMBER
+127 ;;R^"863.3:","863.32:4",1,"E"
+128 ;;D^1
+129 ;;R^"863.3:","863.32:5",.01,"E"
+130 ;;D^OCXO DATA DRIVE SOURCE
+131 ;;R^"863.3:","863.32:5",1,"E"
+132 ;;D^HL7
+133 ;;EOR^
+134 ;;KEY^863.3:^PATIENT.HL7_CON_REQ_NAME
+135 ;;R^"863.3:",.01,"E"
+136 ;;D^PATIENT.HL7_CON_REQ_NAME
+137 ;;R^"863.3:",.02,"E"
+138 ;;D^PATIENT
+139 ;;R^"863.3:",.04,"E"
+140 ;;D^HL7
+141 ;;R^"863.3:",.05,"E"
+142 ;;D^CONSULT/REQUEST NAME
+143 ;;R^"863.3:","863.32:1",.01,"E"
+144 ;;D^OCXO VARIABLE NAME
+145 ;;R^"863.3:","863.32:1",1,"E"
+146 ;;D^OCXODATA("OBR",4)
+147 ;;R^"863.3:","863.32:2",.01,"E"
+148 ;;D^OCXO HL7 SEGMENT ID
+149 ;;R^"863.3:","863.32:3",.01,"E"
+150 ;;D^OCXO VT-BAR PIECE NUMBER
+151 ;;R^"863.3:","863.32:4",.01,"E"
+152 ;;D^OCXO UP-ARROW PIECE NUMBER
+153 ;;R^"863.3:","863.32:4",1,"E"
+154 ;;D^5
+155 ;;R^"863.3:","863.32:5",.01,"E"
+156 ;;D^OCXO DATA DRIVE SOURCE
+157 ;;R^"863.3:","863.32:5",1,"E"
+158 ;;D^HL7
+159 ;;EOR^
+160 ;;KEY^863.3:^PATIENT.LAB_COLLECTION_D/T
+161 ;;R^"863.3:",.01,"E"
+162 ;;D^PATIENT.LAB_COLLECTION_D/T
+163 ;;R^"863.3:",.02,"E"
+164 ;;D^PATIENT
+165 ;;R^"863.3:",.04,"E"
+166 ;;D^HL7
+167 ;;R^"863.3:",.05,"E"
+168 ;;D^LAB COLL D/T
+169 ;;R^"863.3:","863.32:1",.01,"E"
+170 ;;D^OCXO VARIABLE NAME
+171 ;;R^"863.3:","863.32:1",1,"E"
+172 ;;D^OCXODATA("OBR",7)
+173 ;;R^"863.3:","863.32:2",.01,"E"
+174 ;;D^OCXO HL7 SEGMENT ID
+175 ;;R^"863.3:","863.32:3",.01,"E"
+176 ;;D^OCXO VT-BAR PIECE NUMBER
+177 ;;R^"863.3:","863.32:4",.01,"E"
+178 ;;D^OCXO UP-ARROW PIECE NUMBER
+179 ;;R^"863.3:","863.32:4",1,"E"
+180 ;;D^1
+181 ;;R^"863.3:","863.32:5",.01,"E"
+182 ;;D^OCXO DATA DRIVE SOURCE
+183 ;;R^"863.3:","863.32:5",1,"E"
+184 ;;D^HL7
+185 ;;EOR^
+186 ;;KEY^863.3:^PATIENT.LAB_RESULT
+187 ;;R^"863.3:",.01,"E"
+188 ;;D^PATIENT.LAB_RESULT
+189 ;;R^"863.3:",.02,"E"
+190 ;;D^PATIENT
+191 ;;R^"863.3:",.04,"E"
+192 ;;D^HL7
+193 ;;R^"863.3:",.05,"E"
+194 ;;D^LAB RESULT
+195 ;;R^"863.3:","863.32:1",.01,"E"
+196 ;;D^OCXO VARIABLE NAME
+197 ;;R^"863.3:","863.32:1",1,"E"
+198 ;;D^OCXODATA("OBX",5)
+199 ;1;
+200 ;