OCXDI025 ;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 ^OCXDI026
;
Q
;
DATA ;
;
;;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
;;EOR^
;;KEY^863.3:^PATIENT.HL7_RX_OI_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_RX_OI_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;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("RXO",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^5
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.WARD_ROOM-BED
;;R^"863.3:",.01,"E"
;;D^PATIENT.WARD_ROOM-BED
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^WARD ROOM-BED
;;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^WARDRMBD(|PATIENT IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VARIABLE NAME
;;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:^INPATIENT
;;R^"863.3:",.01,"E"
;;D^INPATIENT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^INPATIENT
;;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^WARDRMBD(|PATIENT IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.HL7_SEND_APP
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_SEND_APP
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^PACKAGE ID
;;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("MSH",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 HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.HL7_RECV_APP
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_RECV_APP
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^PACKAGE ID
;;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("MSH",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 HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.HL7_EXT_APP
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_EXT_APP
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^PACKAGE ID
;;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^EXTOERR(|SENDING APPLICATION|,|RECIEVING APPLICATION|)
;;EOR^
;;KEY^863.3:^PATIENT.HL7_PATIENT_ID
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_PATIENT_ID
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^IEN
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:3",1,"E"
;;D^OCXODATA("PID",3)
;;EOR^
;;KEY^863.3:^PATIENT.FAC_TREAT_SPEC_CURR
;;R^"863.3:",.01,"E"
;;D^PATIENT.FAC_TREAT_SPEC_CURR
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^TREATING SPECIALTY
;;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^DGPMA
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^9
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:3",1,"E"
;;D^45.7
;;EOR^
;;KEY^863.3:^PATIENT.FAC_TREAT_SPEC_PREV
;;R^"863.3:",.01,"E"
;;D^PATIENT.FAC_TREAT_SPEC_PREV
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^TREATING SPECIALTY
;;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^DGPM0
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^9
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:3",1,"E"
;;D^45.7
;;EOR^
;;KEY^863.3:^PATIENT.MOVE_WARD_CURR
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOVE_WARD_CURR
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^WARD NAME
;;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^DGPMA
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI025 5513 printed Dec 13, 2024@02:23:45 Page 2
OCXDI025 ;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 ^OCXDI026
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.3:","863.32:3",.01,"E"
+3 ;;D^OCXO UP-ARROW PIECE NUMBER
+4 ;;R^"863.3:","863.32:3",1,"E"
+5 ;;D^1
+6 ;;R^"863.3:","863.32:4",.01,"E"
+7 ;;D^OCXO HL7 SEGMENT ID
+8 ;;EOR^
+9 ;;KEY^863.3:^PATIENT.HL7_RX_OI_TEXT
+10 ;;R^"863.3:",.01,"E"
+11 ;;D^PATIENT.HL7_RX_OI_TEXT
+12 ;;R^"863.3:",.02,"E"
+13 ;;D^PATIENT
+14 ;;R^"863.3:",.05,"E"
+15 ;;D^ORDERABLE ITEM
+16 ;;R^"863.3:",.06,"E"
+17 ;;D^99
+18 ;;R^"863.3:","863.32:1",.01,"E"
+19 ;;D^OCXO VARIABLE NAME
+20 ;;R^"863.3:","863.32:1",1,"E"
+21 ;;D^OCXODATA("RXO",1)
+22 ;;R^"863.3:","863.32:2",.01,"E"
+23 ;;D^OCXO VT-BAR PIECE NUMBER
+24 ;;R^"863.3:","863.32:3",.01,"E"
+25 ;;D^OCXO UP-ARROW PIECE NUMBER
+26 ;;R^"863.3:","863.32:3",1,"E"
+27 ;;D^5
+28 ;;R^"863.3:","863.32:4",.01,"E"
+29 ;;D^OCXO HL7 SEGMENT ID
+30 ;;EOR^
+31 ;;KEY^863.3:^PATIENT.WARD_ROOM-BED
+32 ;;R^"863.3:",.01,"E"
+33 ;;D^PATIENT.WARD_ROOM-BED
+34 ;;R^"863.3:",.02,"E"
+35 ;;D^PATIENT
+36 ;;R^"863.3:",.05,"E"
+37 ;;D^WARD ROOM-BED
+38 ;;R^"863.3:",.06,"E"
+39 ;;D^99
+40 ;;R^"863.3:","863.32:1",.01,"E"
+41 ;;D^OCXO EXTERNAL FUNCTION CALL
+42 ;;R^"863.3:","863.32:1",1,"E"
+43 ;;D^WARDRMBD(|PATIENT IEN|)
+44 ;;R^"863.3:","863.32:2",.01,"E"
+45 ;;D^OCXO VARIABLE NAME
+46 ;;R^"863.3:","863.32:3",.01,"E"
+47 ;;D^OCXO UP-ARROW PIECE NUMBER
+48 ;;R^"863.3:","863.32:3",1,"E"
+49 ;;D^2
+50 ;;EOR^
+51 ;;KEY^863.3:^INPATIENT
+52 ;;R^"863.3:",.01,"E"
+53 ;;D^INPATIENT
+54 ;;R^"863.3:",.02,"E"
+55 ;;D^PATIENT
+56 ;;R^"863.3:",.05,"E"
+57 ;;D^INPATIENT
+58 ;;R^"863.3:",.06,"E"
+59 ;;D^99
+60 ;;R^"863.3:","863.32:1",.01,"E"
+61 ;;D^OCXO EXTERNAL FUNCTION CALL
+62 ;;R^"863.3:","863.32:1",1,"E"
+63 ;;D^WARDRMBD(|PATIENT IEN|)
+64 ;;R^"863.3:","863.32:2",.01,"E"
+65 ;;D^OCXO UP-ARROW PIECE NUMBER
+66 ;;R^"863.3:","863.32:2",1,"E"
+67 ;;D^1
+68 ;;EOR^
+69 ;;KEY^863.3:^PATIENT.HL7_SEND_APP
+70 ;;R^"863.3:",.01,"E"
+71 ;;D^PATIENT.HL7_SEND_APP
+72 ;;R^"863.3:",.02,"E"
+73 ;;D^PATIENT
+74 ;;R^"863.3:",.04,"E"
+75 ;;D^HL7
+76 ;;R^"863.3:",.05,"E"
+77 ;;D^PACKAGE ID
+78 ;;R^"863.3:",.06,"E"
+79 ;;D^99
+80 ;;R^"863.3:","863.32:1",.01,"E"
+81 ;;D^OCXO VARIABLE NAME
+82 ;;R^"863.3:","863.32:1",1,"E"
+83 ;;D^OCXODATA("MSH",2)
+84 ;;R^"863.3:","863.32:2",.01,"E"
+85 ;;D^OCXO VT-BAR PIECE NUMBER
+86 ;;R^"863.3:","863.32:3",.01,"E"
+87 ;;D^OCXO HL7 SEGMENT ID
+88 ;;EOR^
+89 ;;KEY^863.3:^PATIENT.HL7_RECV_APP
+90 ;;R^"863.3:",.01,"E"
+91 ;;D^PATIENT.HL7_RECV_APP
+92 ;;R^"863.3:",.02,"E"
+93 ;;D^PATIENT
+94 ;;R^"863.3:",.04,"E"
+95 ;;D^HL7
+96 ;;R^"863.3:",.05,"E"
+97 ;;D^PACKAGE ID
+98 ;;R^"863.3:",.06,"E"
+99 ;;D^99
+100 ;;R^"863.3:","863.32:1",.01,"E"
+101 ;;D^OCXO VARIABLE NAME
+102 ;;R^"863.3:","863.32:1",1,"E"
+103 ;;D^OCXODATA("MSH",4)
+104 ;;R^"863.3:","863.32:2",.01,"E"
+105 ;;D^OCXO VT-BAR PIECE NUMBER
+106 ;;R^"863.3:","863.32:3",.01,"E"
+107 ;;D^OCXO HL7 SEGMENT ID
+108 ;;EOR^
+109 ;;KEY^863.3:^PATIENT.HL7_EXT_APP
+110 ;;R^"863.3:",.01,"E"
+111 ;;D^PATIENT.HL7_EXT_APP
+112 ;;R^"863.3:",.02,"E"
+113 ;;D^PATIENT
+114 ;;R^"863.3:",.04,"E"
+115 ;;D^HL7
+116 ;;R^"863.3:",.05,"E"
+117 ;;D^PACKAGE ID
+118 ;;R^"863.3:",.06,"E"
+119 ;;D^99
+120 ;;R^"863.3:","863.32:1",.01,"E"
+121 ;;D^OCXO EXTERNAL FUNCTION CALL
+122 ;;R^"863.3:","863.32:1",1,"E"
+123 ;;D^EXTOERR(|SENDING APPLICATION|,|RECIEVING APPLICATION|)
+124 ;;EOR^
+125 ;;KEY^863.3:^PATIENT.HL7_PATIENT_ID
+126 ;;R^"863.3:",.01,"E"
+127 ;;D^PATIENT.HL7_PATIENT_ID
+128 ;;R^"863.3:",.02,"E"
+129 ;;D^PATIENT
+130 ;;R^"863.3:",.04,"E"
+131 ;;D^HL7
+132 ;;R^"863.3:",.05,"E"
+133 ;;D^IEN
+134 ;;R^"863.3:",.06,"E"
+135 ;;D^99
+136 ;;R^"863.3:","863.32:1",.01,"E"
+137 ;;D^OCXO HL7 SEGMENT ID
+138 ;;R^"863.3:","863.32:2",.01,"E"
+139 ;;D^OCXO VT-BAR PIECE NUMBER
+140 ;;R^"863.3:","863.32:3",.01,"E"
+141 ;;D^OCXO VARIABLE NAME
+142 ;;R^"863.3:","863.32:3",1,"E"
+143 ;;D^OCXODATA("PID",3)
+144 ;;EOR^
+145 ;;KEY^863.3:^PATIENT.FAC_TREAT_SPEC_CURR
+146 ;;R^"863.3:",.01,"E"
+147 ;;D^PATIENT.FAC_TREAT_SPEC_CURR
+148 ;;R^"863.3:",.02,"E"
+149 ;;D^PATIENT
+150 ;;R^"863.3:",.04,"E"
+151 ;;D^DGPM
+152 ;;R^"863.3:",.05,"E"
+153 ;;D^TREATING SPECIALTY
+154 ;;R^"863.3:",.06,"E"
+155 ;;D^99
+156 ;;R^"863.3:","863.32:1",.01,"E"
+157 ;;D^OCXO VARIABLE NAME
+158 ;;R^"863.3:","863.32:1",1,"E"
+159 ;;D^DGPMA
+160 ;;R^"863.3:","863.32:2",.01,"E"
+161 ;;D^OCXO UP-ARROW PIECE NUMBER
+162 ;;R^"863.3:","863.32:2",1,"E"
+163 ;;D^9
+164 ;;R^"863.3:","863.32:3",.01,"E"
+165 ;;D^OCXO FILE POINTER
+166 ;;R^"863.3:","863.32:3",1,"E"
+167 ;;D^45.7
+168 ;;EOR^
+169 ;;KEY^863.3:^PATIENT.FAC_TREAT_SPEC_PREV
+170 ;;R^"863.3:",.01,"E"
+171 ;;D^PATIENT.FAC_TREAT_SPEC_PREV
+172 ;;R^"863.3:",.02,"E"
+173 ;;D^PATIENT
+174 ;;R^"863.3:",.04,"E"
+175 ;;D^DGPM
+176 ;;R^"863.3:",.05,"E"
+177 ;;D^TREATING SPECIALTY
+178 ;;R^"863.3:",.06,"E"
+179 ;;D^99
+180 ;;R^"863.3:","863.32:1",.01,"E"
+181 ;;D^OCXO VARIABLE NAME
+182 ;;R^"863.3:","863.32:1",1,"E"
+183 ;;D^DGPM0
+184 ;;R^"863.3:","863.32:2",.01,"E"
+185 ;;D^OCXO UP-ARROW PIECE NUMBER
+186 ;;R^"863.3:","863.32:2",1,"E"
+187 ;;D^9
+188 ;;R^"863.3:","863.32:3",.01,"E"
+189 ;;D^OCXO FILE POINTER
+190 ;;R^"863.3:","863.32:3",1,"E"
+191 ;;D^45.7
+192 ;;EOR^
+193 ;;KEY^863.3:^PATIENT.MOVE_WARD_CURR
+194 ;;R^"863.3:",.01,"E"
+195 ;;D^PATIENT.MOVE_WARD_CURR
+196 ;;R^"863.3:",.02,"E"
+197 ;;D^PATIENT
+198 ;;R^"863.3:",.04,"E"
+199 ;;D^DGPM
+200 ;;R^"863.3:",.05,"E"
+201 ;;D^WARD NAME
+202 ;;R^"863.3:",.06,"E"
+203 ;;D^99
+204 ;;R^"863.3:","863.32:1",.01,"E"
+205 ;;D^OCXO VARIABLE NAME
+206 ;;R^"863.3:","863.32:1",1,"E"
+207 ;;D^DGPMA
+208 ;;R^"863.3:","863.32:2",.01,"E"
+209 ;;D^OCXO UP-ARROW PIECE NUMBER
+210 ;;R^"863.3:","863.32:2",1,"E"
+211 ;1;
+212 ;