OCXDI021 ;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 ^OCXDI022
;
Q
;
DATA ;
;
;;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^STATUS^ORQOR2(|ORDER NUMBER|)
;;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.ORD_ITEM_IEN
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORD_ITEM_IEN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM IEN
;;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:2",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:2",1,"E"
;;D^OCXPSD
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.OPS_FILLER
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_FILLER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^FILLER
;;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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.OPS_NAT_ID
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_NAT_ID
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^NATIONAL 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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.OPS_NAT_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_NAT_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^NATIONAL ID TEXT
;;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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;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.OPS_NAT_COD_SYS
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_NAT_COD_SYS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^CODING SYSTEM
;;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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^3
;;EOR^
;;KEY^863.3:^PATIENT.OPS_LOCAL ID
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_LOCAL ID
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^LOCAL 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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^0
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO FILE POINTER
;;EOR^
;;KEY^863.3:^PATIENT.OPS_LOCAL_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_LOCAL_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^LOCAL TEXT
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:1",1,"E"
;;D^5
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:3",1,"E"
;;D^OCXPSD
;;EOR^
;;KEY^863.3:^PATIENT.OPS_ORD_EFF_DATE
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_ORD_EFF_DATE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^ORDER EFFECTIVE DATE
;;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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^3
;;EOR^
;;KEY^863.3:^PATIENT.OPS_ORDER NUMBER
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_ORDER NUMBER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;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^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^4
;;EOR^
;;KEY^863.3:^PATIENT.OPS_ORD_MODE
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_ORD_MODE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI021 5562 printed Nov 22, 2024@17:33:40 Page 2
OCXDI021 ;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 ^OCXDI022
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.3:",.06,"E"
+3 ;;D^99
+4 ;;R^"863.3:","863.32:1",.01,"E"
+5 ;;D^OCXO EXTERNAL FUNCTION CALL
+6 ;;R^"863.3:","863.32:1",1,"E"
+7 ;;D^STATUS^ORQOR2(|ORDER NUMBER|)
+8 ;;R^"863.3:","863.32:2",.01,"E"
+9 ;;D^OCXO UP-ARROW PIECE NUMBER
+10 ;;R^"863.3:","863.32:2",1,"E"
+11 ;;D^2
+12 ;;EOR^
+13 ;;KEY^863.3:^PATIENT.ORD_ITEM_IEN
+14 ;;R^"863.3:",.01,"E"
+15 ;;D^PATIENT.ORD_ITEM_IEN
+16 ;;R^"863.3:",.02,"E"
+17 ;;D^PATIENT
+18 ;;R^"863.3:",.04,"E"
+19 ;;D^OPS
+20 ;;R^"863.3:",.05,"E"
+21 ;;D^ORDERABLE ITEM IEN
+22 ;;R^"863.3:",.06,"E"
+23 ;;D^99
+24 ;;R^"863.3:","863.32:1",.01,"E"
+25 ;;D^OCXO EXTERNAL FUNCTION CALL
+26 ;;R^"863.3:","863.32:2",.01,"E"
+27 ;;D^OCXO VARIABLE NAME
+28 ;;R^"863.3:","863.32:2",1,"E"
+29 ;;D^OCXPSD
+30 ;;R^"863.3:","863.32:3",.01,"E"
+31 ;;D^OCXO VT-BAR PIECE NUMBER
+32 ;;R^"863.3:","863.32:3",1,"E"
+33 ;;D^1
+34 ;;EOR^
+35 ;;KEY^863.3:^PATIENT.OPS_FILLER
+36 ;;R^"863.3:",.01,"E"
+37 ;;D^PATIENT.OPS_FILLER
+38 ;;R^"863.3:",.02,"E"
+39 ;;D^PATIENT
+40 ;;R^"863.3:",.04,"E"
+41 ;;D^OPS
+42 ;;R^"863.3:",.05,"E"
+43 ;;D^FILLER
+44 ;;R^"863.3:",.06,"E"
+45 ;;D^99
+46 ;;R^"863.3:","863.32:1",.01,"E"
+47 ;;D^OCXO VARIABLE NAME
+48 ;;R^"863.3:","863.32:1",1,"E"
+49 ;;D^OCXPSD
+50 ;;R^"863.3:","863.32:2",.01,"E"
+51 ;;D^OCXO VT-BAR PIECE NUMBER
+52 ;;R^"863.3:","863.32:2",1,"E"
+53 ;;D^1
+54 ;;EOR^
+55 ;;KEY^863.3:^PATIENT.OPS_NAT_ID
+56 ;;R^"863.3:",.01,"E"
+57 ;;D^PATIENT.OPS_NAT_ID
+58 ;;R^"863.3:",.02,"E"
+59 ;;D^PATIENT
+60 ;;R^"863.3:",.04,"E"
+61 ;;D^OPS
+62 ;;R^"863.3:",.05,"E"
+63 ;;D^NATIONAL ID
+64 ;;R^"863.3:",.06,"E"
+65 ;;D^99
+66 ;;R^"863.3:","863.32:1",.01,"E"
+67 ;;D^OCXO VARIABLE NAME
+68 ;;R^"863.3:","863.32:1",1,"E"
+69 ;;D^OCXPSD
+70 ;;R^"863.3:","863.32:2",.01,"E"
+71 ;;D^OCXO VT-BAR PIECE NUMBER
+72 ;;R^"863.3:","863.32:2",1,"E"
+73 ;;D^2
+74 ;;R^"863.3:","863.32:3",.01,"E"
+75 ;;D^OCXO UP-ARROW PIECE NUMBER
+76 ;;R^"863.3:","863.32:3",1,"E"
+77 ;;D^1
+78 ;;EOR^
+79 ;;KEY^863.3:^PATIENT.OPS_NAT_TEXT
+80 ;;R^"863.3:",.01,"E"
+81 ;;D^PATIENT.OPS_NAT_TEXT
+82 ;;R^"863.3:",.02,"E"
+83 ;;D^PATIENT
+84 ;;R^"863.3:",.04,"E"
+85 ;;D^OPS
+86 ;;R^"863.3:",.05,"E"
+87 ;;D^NATIONAL ID TEXT
+88 ;;R^"863.3:",.06,"E"
+89 ;;D^99
+90 ;;R^"863.3:","863.32:1",.01,"E"
+91 ;;D^OCXO VARIABLE NAME
+92 ;;R^"863.3:","863.32:1",1,"E"
+93 ;;D^OCXPSD
+94 ;;R^"863.3:","863.32:2",.01,"E"
+95 ;;D^OCXO VT-BAR PIECE NUMBER
+96 ;;R^"863.3:","863.32:2",1,"E"
+97 ;;D^2
+98 ;;R^"863.3:","863.32:3",.01,"E"
+99 ;;D^OCXO UP-ARROW PIECE NUMBER
+100 ;;R^"863.3:","863.32:3",1,"E"
+101 ;;D^2
+102 ;;EOR^
+103 ;;KEY^863.3:^PATIENT.OPS_NAT_COD_SYS
+104 ;;R^"863.3:",.01,"E"
+105 ;;D^PATIENT.OPS_NAT_COD_SYS
+106 ;;R^"863.3:",.02,"E"
+107 ;;D^PATIENT
+108 ;;R^"863.3:",.04,"E"
+109 ;;D^OPS
+110 ;;R^"863.3:",.05,"E"
+111 ;;D^CODING SYSTEM
+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^OCXPSD
+118 ;;R^"863.3:","863.32:2",.01,"E"
+119 ;;D^OCXO VT-BAR PIECE NUMBER
+120 ;;R^"863.3:","863.32:2",1,"E"
+121 ;;D^2
+122 ;;R^"863.3:","863.32:3",.01,"E"
+123 ;;D^OCXO UP-ARROW PIECE NUMBER
+124 ;;R^"863.3:","863.32:3",1,"E"
+125 ;;D^3
+126 ;;EOR^
+127 ;;KEY^863.3:^PATIENT.OPS_LOCAL ID
+128 ;;R^"863.3:",.01,"E"
+129 ;;D^PATIENT.OPS_LOCAL ID
+130 ;;R^"863.3:",.02,"E"
+131 ;;D^PATIENT
+132 ;;R^"863.3:",.04,"E"
+133 ;;D^OPS
+134 ;;R^"863.3:",.05,"E"
+135 ;;D^LOCAL ID
+136 ;;R^"863.3:",.06,"E"
+137 ;;D^99
+138 ;;R^"863.3:","863.32:1",.01,"E"
+139 ;;D^OCXO VARIABLE NAME
+140 ;;R^"863.3:","863.32:1",1,"E"
+141 ;;D^OCXPSD
+142 ;;R^"863.3:","863.32:2",.01,"E"
+143 ;;D^OCXO VT-BAR PIECE NUMBER
+144 ;;R^"863.3:","863.32:2",1,"E"
+145 ;;D^0
+146 ;;R^"863.3:","863.32:3",.01,"E"
+147 ;;D^OCXO UP-ARROW PIECE NUMBER
+148 ;;R^"863.3:","863.32:4",.01,"E"
+149 ;;D^OCXO FILE POINTER
+150 ;;EOR^
+151 ;;KEY^863.3:^PATIENT.OPS_LOCAL_TEXT
+152 ;;R^"863.3:",.01,"E"
+153 ;;D^PATIENT.OPS_LOCAL_TEXT
+154 ;;R^"863.3:",.02,"E"
+155 ;;D^PATIENT
+156 ;;R^"863.3:",.04,"E"
+157 ;;D^OPS
+158 ;;R^"863.3:",.05,"E"
+159 ;;D^LOCAL TEXT
+160 ;;R^"863.3:",.06,"E"
+161 ;;D^99
+162 ;;R^"863.3:","863.32:1",.01,"E"
+163 ;;D^OCXO UP-ARROW PIECE NUMBER
+164 ;;R^"863.3:","863.32:1",1,"E"
+165 ;;D^5
+166 ;;R^"863.3:","863.32:2",.01,"E"
+167 ;;D^OCXO VT-BAR PIECE NUMBER
+168 ;;R^"863.3:","863.32:2",1,"E"
+169 ;;D^2
+170 ;;R^"863.3:","863.32:3",.01,"E"
+171 ;;D^OCXO VARIABLE NAME
+172 ;;R^"863.3:","863.32:3",1,"E"
+173 ;;D^OCXPSD
+174 ;;EOR^
+175 ;;KEY^863.3:^PATIENT.OPS_ORD_EFF_DATE
+176 ;;R^"863.3:",.01,"E"
+177 ;;D^PATIENT.OPS_ORD_EFF_DATE
+178 ;;R^"863.3:",.02,"E"
+179 ;;D^PATIENT
+180 ;;R^"863.3:",.04,"E"
+181 ;;D^OPS
+182 ;;R^"863.3:",.05,"E"
+183 ;;D^ORDER EFFECTIVE DATE
+184 ;;R^"863.3:",.06,"E"
+185 ;;D^99
+186 ;;R^"863.3:","863.32:1",.01,"E"
+187 ;;D^OCXO VARIABLE NAME
+188 ;;R^"863.3:","863.32:1",1,"E"
+189 ;;D^OCXPSD
+190 ;;R^"863.3:","863.32:2",.01,"E"
+191 ;;D^OCXO VT-BAR PIECE NUMBER
+192 ;;R^"863.3:","863.32:2",1,"E"
+193 ;;D^3
+194 ;;EOR^
+195 ;;KEY^863.3:^PATIENT.OPS_ORDER NUMBER
+196 ;;R^"863.3:",.01,"E"
+197 ;;D^PATIENT.OPS_ORDER NUMBER
+198 ;;R^"863.3:",.02,"E"
+199 ;;D^PATIENT
+200 ;;R^"863.3:",.04,"E"
+201 ;;D^OPS
+202 ;;R^"863.3:",.05,"E"
+203 ;;D^ORDER NUMBER
+204 ;;R^"863.3:",.06,"E"
+205 ;;D^99
+206 ;;R^"863.3:","863.32:1",.01,"E"
+207 ;;D^OCXO VARIABLE NAME
+208 ;;R^"863.3:","863.32:1",1,"E"
+209 ;;D^OCXPSD
+210 ;;R^"863.3:","863.32:2",.01,"E"
+211 ;;D^OCXO VT-BAR PIECE NUMBER
+212 ;;R^"863.3:","863.32:2",1,"E"
+213 ;;D^4
+214 ;;EOR^
+215 ;;KEY^863.3:^PATIENT.OPS_ORD_MODE
+216 ;;R^"863.3:",.01,"E"
+217 ;;D^PATIENT.OPS_ORD_MODE
+218 ;;R^"863.3:",.02,"E"
+219 ;;D^PATIENT
+220 ;;R^"863.3:",.04,"E"
+221 ;1;
+222 ;