OCXDI020 ;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 ^OCXDI021
;
Q
;
DATA ;
;
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:6",1,"E"
;;D^ORD
;;EOR^
;;KEY^863.3:^PATIENT.ORD_REQ_ELEC_SIG
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORD_REQ_ELEC_SIG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OERR
;;R^"863.3:",.05,"E"
;;D^ORDER REQ. ELEC. SIG.
;;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^OCXORD
;;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^8
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:6",1,"E"
;;D^ORD
;;EOR^
;;KEY^863.3:^PATIENT.ORD_RESLT_READY_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORD_RESLT_READY_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OERR
;;R^"863.3:",.05,"E"
;;D^ORDER RESULT READY FLAG
;;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^OCXORD
;;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^9
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:6",1,"E"
;;D^ORD
;;EOR^
;;KEY^863.3:^PATIENT.HL7_OBSERVATION_VALUE
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_OBSERVATION_VALUE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^OBSERVATION VALUE
;;R^"863.3:",.06,"E"
;;D^23
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",5)
;;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:6",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:6",1,"E"
;;D^HL7
;;EOR^
;;KEY^863.3:^PATIENT.HL7 ORDER NUMBER
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7 ORDER NUMBER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^ORDER NUMBER
;;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",2)
;;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 SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.OERR ORDER NUMBER
;;R^"863.3:",.01,"E"
;;D^PATIENT.OERR ORDER NUMBER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^ORD
;;R^"863.3:",.05,"E"
;;D^ORDER NUMBER
;;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^OCXORD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.ORDERABLE ITEM
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORDERABLE ITEM
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM
;;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("OBR",4)
;;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^5
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.IEN
;;R^"863.3:",.01,"E"
;;D^PATIENT.IEN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^IEN
;;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^DFN
;;EOR^
;;KEY^863.3:^PATIENT.DATE OF BIRTH
;;R^"863.3:",.01,"E"
;;D^PATIENT.DATE OF BIRTH
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^DATE OF BIRTH
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^PAT^ZZPAT(|PATIENT IEN|,2)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:2",1,"E"
;;D^VADPT(0)
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.ORDER STATUS
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORDER STATUS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^ORDER STATUS
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI020 5486 printed Oct 16, 2024@18:24:17 Page 2
OCXDI020 ;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 ^OCXDI021
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^OCXO DATA DRIVE SOURCE
+3 ;;R^"863.3:","863.32:6",1,"E"
+4 ;;D^ORD
+5 ;;EOR^
+6 ;;KEY^863.3:^PATIENT.ORD_REQ_ELEC_SIG
+7 ;;R^"863.3:",.01,"E"
+8 ;;D^PATIENT.ORD_REQ_ELEC_SIG
+9 ;;R^"863.3:",.02,"E"
+10 ;;D^PATIENT
+11 ;;R^"863.3:",.04,"E"
+12 ;;D^OERR
+13 ;;R^"863.3:",.05,"E"
+14 ;;D^ORDER REQ. ELEC. SIG.
+15 ;;R^"863.3:",.06,"E"
+16 ;;D^99
+17 ;;R^"863.3:","863.32:1",.01,"E"
+18 ;;D^OCXO VARIABLE NAME
+19 ;;R^"863.3:","863.32:1",1,"E"
+20 ;;D^OCXORD
+21 ;;R^"863.3:","863.32:2",.01,"E"
+22 ;;D^OCXO VT-BAR PIECE NUMBER
+23 ;;R^"863.3:","863.32:3",.01,"E"
+24 ;;D^OCXO UP-ARROW PIECE NUMBER
+25 ;;R^"863.3:","863.32:3",1,"E"
+26 ;;D^8
+27 ;;R^"863.3:","863.32:4",.01,"E"
+28 ;;D^OCXO HL7 SEGMENT ID
+29 ;;R^"863.3:","863.32:5",.01,"E"
+30 ;;D^OCXO FILE POINTER
+31 ;;R^"863.3:","863.32:6",.01,"E"
+32 ;;D^OCXO DATA DRIVE SOURCE
+33 ;;R^"863.3:","863.32:6",1,"E"
+34 ;;D^ORD
+35 ;;EOR^
+36 ;;KEY^863.3:^PATIENT.ORD_RESLT_READY_FLAG
+37 ;;R^"863.3:",.01,"E"
+38 ;;D^PATIENT.ORD_RESLT_READY_FLAG
+39 ;;R^"863.3:",.02,"E"
+40 ;;D^PATIENT
+41 ;;R^"863.3:",.04,"E"
+42 ;;D^OERR
+43 ;;R^"863.3:",.05,"E"
+44 ;;D^ORDER RESULT READY FLAG
+45 ;;R^"863.3:",.06,"E"
+46 ;;D^99
+47 ;;R^"863.3:","863.32:1",.01,"E"
+48 ;;D^OCXO VARIABLE NAME
+49 ;;R^"863.3:","863.32:1",1,"E"
+50 ;;D^OCXORD
+51 ;;R^"863.3:","863.32:2",.01,"E"
+52 ;;D^OCXO VT-BAR PIECE NUMBER
+53 ;;R^"863.3:","863.32:3",.01,"E"
+54 ;;D^OCXO UP-ARROW PIECE NUMBER
+55 ;;R^"863.3:","863.32:3",1,"E"
+56 ;;D^9
+57 ;;R^"863.3:","863.32:4",.01,"E"
+58 ;;D^OCXO HL7 SEGMENT ID
+59 ;;R^"863.3:","863.32:5",.01,"E"
+60 ;;D^OCXO FILE POINTER
+61 ;;R^"863.3:","863.32:6",.01,"E"
+62 ;;D^OCXO DATA DRIVE SOURCE
+63 ;;R^"863.3:","863.32:6",1,"E"
+64 ;;D^ORD
+65 ;;EOR^
+66 ;;KEY^863.3:^PATIENT.HL7_OBSERVATION_VALUE
+67 ;;R^"863.3:",.01,"E"
+68 ;;D^PATIENT.HL7_OBSERVATION_VALUE
+69 ;;R^"863.3:",.02,"E"
+70 ;;D^PATIENT
+71 ;;R^"863.3:",.04,"E"
+72 ;;D^HL7
+73 ;;R^"863.3:",.05,"E"
+74 ;;D^OBSERVATION VALUE
+75 ;;R^"863.3:",.06,"E"
+76 ;;D^23
+77 ;;R^"863.3:","863.32:1",.01,"E"
+78 ;;D^OCXO VARIABLE NAME
+79 ;;R^"863.3:","863.32:1",1,"E"
+80 ;;D^OCXODATA("OBX",5)
+81 ;;R^"863.3:","863.32:2",.01,"E"
+82 ;;D^OCXO VT-BAR PIECE NUMBER
+83 ;;R^"863.3:","863.32:3",.01,"E"
+84 ;;D^OCXO UP-ARROW PIECE NUMBER
+85 ;;R^"863.3:","863.32:3",1,"E"
+86 ;;D^1
+87 ;;R^"863.3:","863.32:4",.01,"E"
+88 ;;D^OCXO HL7 SEGMENT ID
+89 ;;R^"863.3:","863.32:6",.01,"E"
+90 ;;D^OCXO DATA DRIVE SOURCE
+91 ;;R^"863.3:","863.32:6",1,"E"
+92 ;;D^HL7
+93 ;;EOR^
+94 ;;KEY^863.3:^PATIENT.HL7 ORDER NUMBER
+95 ;;R^"863.3:",.01,"E"
+96 ;;D^PATIENT.HL7 ORDER NUMBER
+97 ;;R^"863.3:",.02,"E"
+98 ;;D^PATIENT
+99 ;;R^"863.3:",.04,"E"
+100 ;;D^HL7
+101 ;;R^"863.3:",.05,"E"
+102 ;;D^ORDER NUMBER
+103 ;;R^"863.3:",.06,"E"
+104 ;;D^99
+105 ;;R^"863.3:","863.32:1",.01,"E"
+106 ;;D^OCXO VARIABLE NAME
+107 ;;R^"863.3:","863.32:1",1,"E"
+108 ;;D^OCXODATA("ORC",2)
+109 ;;R^"863.3:","863.32:2",.01,"E"
+110 ;;D^OCXO VT-BAR PIECE NUMBER
+111 ;;R^"863.3:","863.32:3",.01,"E"
+112 ;;D^OCXO UP-ARROW PIECE NUMBER
+113 ;;R^"863.3:","863.32:3",1,"E"
+114 ;;D^1
+115 ;;R^"863.3:","863.32:4",.01,"E"
+116 ;;D^OCXO SEMI-COLON PIECE NUMBER
+117 ;;R^"863.3:","863.32:5",.01,"E"
+118 ;;D^OCXO HL7 SEGMENT ID
+119 ;;EOR^
+120 ;;KEY^863.3:^PATIENT.OERR ORDER NUMBER
+121 ;;R^"863.3:",.01,"E"
+122 ;;D^PATIENT.OERR ORDER NUMBER
+123 ;;R^"863.3:",.02,"E"
+124 ;;D^PATIENT
+125 ;;R^"863.3:",.04,"E"
+126 ;;D^ORD
+127 ;;R^"863.3:",.05,"E"
+128 ;;D^ORDER NUMBER
+129 ;;R^"863.3:",.06,"E"
+130 ;;D^99
+131 ;;R^"863.3:","863.32:1",.01,"E"
+132 ;;D^OCXO VARIABLE NAME
+133 ;;R^"863.3:","863.32:1",1,"E"
+134 ;;D^OCXORD
+135 ;;R^"863.3:","863.32:2",.01,"E"
+136 ;;D^OCXO UP-ARROW PIECE NUMBER
+137 ;;R^"863.3:","863.32:2",1,"E"
+138 ;;D^2
+139 ;;EOR^
+140 ;;KEY^863.3:^PATIENT.ORDERABLE ITEM
+141 ;;R^"863.3:",.01,"E"
+142 ;;D^PATIENT.ORDERABLE ITEM
+143 ;;R^"863.3:",.02,"E"
+144 ;;D^PATIENT
+145 ;;R^"863.3:",.04,"E"
+146 ;;D^HL7
+147 ;;R^"863.3:",.05,"E"
+148 ;;D^ORDERABLE ITEM
+149 ;;R^"863.3:",.06,"E"
+150 ;;D^99
+151 ;;R^"863.3:","863.32:1",.01,"E"
+152 ;;D^OCXO VARIABLE NAME
+153 ;;R^"863.3:","863.32:1",1,"E"
+154 ;;D^OCXODATA("OBR",4)
+155 ;;R^"863.3:","863.32:2",.01,"E"
+156 ;;D^OCXO VT-BAR PIECE NUMBER
+157 ;;R^"863.3:","863.32:3",.01,"E"
+158 ;;D^OCXO UP-ARROW PIECE NUMBER
+159 ;;R^"863.3:","863.32:3",1,"E"
+160 ;;D^5
+161 ;;R^"863.3:","863.32:4",.01,"E"
+162 ;;D^OCXO HL7 SEGMENT ID
+163 ;;EOR^
+164 ;;KEY^863.3:^PATIENT.IEN
+165 ;;R^"863.3:",.01,"E"
+166 ;;D^PATIENT.IEN
+167 ;;R^"863.3:",.02,"E"
+168 ;;D^PATIENT
+169 ;;R^"863.3:",.05,"E"
+170 ;;D^IEN
+171 ;;R^"863.3:",.06,"E"
+172 ;;D^99
+173 ;;R^"863.3:","863.32:1",.01,"E"
+174 ;;D^OCXO VARIABLE NAME
+175 ;;R^"863.3:","863.32:1",1,"E"
+176 ;;D^DFN
+177 ;;EOR^
+178 ;;KEY^863.3:^PATIENT.DATE OF BIRTH
+179 ;;R^"863.3:",.01,"E"
+180 ;;D^PATIENT.DATE OF BIRTH
+181 ;;R^"863.3:",.02,"E"
+182 ;;D^PATIENT
+183 ;;R^"863.3:",.05,"E"
+184 ;;D^DATE OF BIRTH
+185 ;;R^"863.3:",.06,"E"
+186 ;;D^99
+187 ;;R^"863.3:","863.32:1",.01,"E"
+188 ;;D^OCXO EXTERNAL FUNCTION CALL
+189 ;;R^"863.3:","863.32:1",1,"E"
+190 ;;D^PAT^ZZPAT(|PATIENT IEN|,2)
+191 ;;R^"863.3:","863.32:2",.01,"E"
+192 ;;D^OCXO VARIABLE NAME
+193 ;;R^"863.3:","863.32:2",1,"E"
+194 ;;D^VADPT(0)
+195 ;;R^"863.3:","863.32:3",.01,"E"
+196 ;;D^OCXO UP-ARROW PIECE NUMBER
+197 ;;R^"863.3:","863.32:3",1,"E"
+198 ;;D^2
+199 ;;EOR^
+200 ;;KEY^863.3:^PATIENT.ORDER STATUS
+201 ;;R^"863.3:",.01,"E"
+202 ;;D^PATIENT.ORDER STATUS
+203 ;;R^"863.3:",.02,"E"
+204 ;;D^PATIENT
+205 ;;R^"863.3:",.05,"E"
+206 ;;D^ORDER STATUS
+207 ;1;
+208 ;