OCXDI02N ;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 ^OCXDI02O
;
Q
;
DATA ;
;
;;R^"860.4:",.01,"E"
;;D^LAB LOCAL ORDERABLE ITEM
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 OBSERVATION/RESULT SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.LAB_LOCAL_OI
;;EOR^
;;KEY^860.4:^ORDER D/T
;;R^"860.4:",.01,"E"
;;D^ORDER D/T
;;R^"860.4:",101,"E"
;;D^DATE/TIME
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_ORDER_PLACED_DT
;;EOR^
;;KEY^860.4:^RADIOLOGY PROCEDURE
;;R^"860.4:",.01,"E"
;;D^RADIOLOGY PROCEDURE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 OBSERVATION/RESULT SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.RADIOLOGY_PROCEDURE
;;EOR^
;;KEY^860.4:^ORDER PRIORITY (ORC)
;;R^"860.4:",.01,"E"
;;D^ORDER PRIORITY (ORC)
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.ORDER_PRIORITY(ORC)
;;EOR^
;;KEY^860.4:^ORDER STATUS
;;R^"860.4:",.01,"E"
;;D^ORDER STATUS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_ORDER_STATUS
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.ORDER STATUS
;;EOR^
;;KEY^860.4:^REQUEST STATUS (OBR)
;;R^"860.4:",.01,"E"
;;D^REQUEST STATUS (OBR)
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 OBSERVATION REQUEST SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_REQUEST_STATUS
;;EOR^
;;KEY^860.4:^ORDERABLE ITEM LOCAL TEXT
;;R^"860.4:",.01,"E"
;;D^ORDERABLE ITEM LOCAL TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 OBSERVATION REQUEST SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_LOCAL_OI_TEXT
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT TYPE CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT TYPE CURRENT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:3",.01,"E"
;;D^DGPM PATIENT MOVEMENT PROTOCOL
;;R^"860.4:","860.41:3",.02,"E"
;;D^DGPM MOVEMENT EVENTS PROTOCOL
;;R^"860.4:","860.41:3",1,"E"
;;D^PATIENT.MOVE_TYPE_CURRENT
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT DATE CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT DATE CURRENT
;;R^"860.4:",101,"E"
;;D^DATE/TIME
;;R^"860.4:","860.41:3",.01,"E"
;;D^DGPM PATIENT MOVEMENT PROTOCOL
;;R^"860.4:","860.41:3",.02,"E"
;;D^DGPM MOVEMENT EVENTS PROTOCOL
;;R^"860.4:","860.41:3",1,"E"
;;D^PATIENT.MOV_DATE_CUR
;;EOR^
;;KEY^860.4:^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.4:",.01,"E"
;;D^ORDER FLAGGED FOR CLARIFICATION
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:2",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:2",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:2",1,"E"
;;D^PATIENT.OERR_ORDER_FLAGGED
;;EOR^
;;KEY^860.4:^ORDER REQ. CHART SIGN.
;;R^"860.4:",.01,"E"
;;D^ORDER REQ. CHART SIGN.
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:2",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:2",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:2",1,"E"
;;D^PATIENT.OERR_ORD_REQ_CHART_SIG
;;EOR^
;;KEY^860.4:^SERV. ORDER REQ CHART SIG.
;;R^"860.4:",.01,"E"
;;D^SERV. ORDER REQ CHART SIG.
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:2",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:2",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:2",1,"E"
;;D^PATIENT.SERV_ORD_REQ_SIG
;;EOR^
;;KEY^860.4:^ORDER REQ. CO-SIG.
;;R^"860.4:",.01,"E"
;;D^ORDER REQ. CO-SIG.
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:2",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:2",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:2",1,"E"
;;D^PATIENT.ORD_REQ_CO_SIG
;;EOR^
;;KEY^860.4:^ORDER REQ. ELEC. SIG.
;;R^"860.4:",.01,"E"
;;D^ORDER REQ. ELEC. SIG.
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:2",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:2",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:2",1,"E"
;;D^PATIENT.ORD_REQ_ELEC_SIG
;;EOR^
;;KEY^860.4:^ORDER FLAGGED FOR RESULTS
;;R^"860.4:",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI02N 5339 printed Dec 13, 2024@02:24:02 Page 2
OCXDI02N ;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 ^OCXDI02O
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.4:",.01,"E"
+3 ;;D^LAB LOCAL ORDERABLE ITEM
+4 ;;R^"860.4:",101,"E"
+5 ;;D^FREE TEXT
+6 ;;R^"860.4:","860.41:1",.01,"E"
+7 ;;D^GENERIC HL7 MESSAGE ARRAY
+8 ;;R^"860.4:","860.41:1",.02,"E"
+9 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+10 ;;R^"860.4:","860.41:1",1,"E"
+11 ;;D^PATIENT.LAB_LOCAL_OI
+12 ;;EOR^
+13 ;;KEY^860.4:^ORDER D/T
+14 ;;R^"860.4:",.01,"E"
+15 ;;D^ORDER D/T
+16 ;;R^"860.4:",101,"E"
+17 ;;D^DATE/TIME
+18 ;;R^"860.4:","860.41:1",.01,"E"
+19 ;;D^GENERIC HL7 MESSAGE ARRAY
+20 ;;R^"860.4:","860.41:1",.02,"E"
+21 ;;D^HL7 COMMON ORDER SEGMENT
+22 ;;R^"860.4:","860.41:1",1,"E"
+23 ;;D^PATIENT.HL7_ORDER_PLACED_DT
+24 ;;EOR^
+25 ;;KEY^860.4:^RADIOLOGY PROCEDURE
+26 ;;R^"860.4:",.01,"E"
+27 ;;D^RADIOLOGY PROCEDURE
+28 ;;R^"860.4:",101,"E"
+29 ;;D^FREE TEXT
+30 ;;R^"860.4:","860.41:1",.01,"E"
+31 ;;D^GENERIC HL7 MESSAGE ARRAY
+32 ;;R^"860.4:","860.41:1",.02,"E"
+33 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+34 ;;R^"860.4:","860.41:1",1,"E"
+35 ;;D^PATIENT.RADIOLOGY_PROCEDURE
+36 ;;EOR^
+37 ;;KEY^860.4:^ORDER PRIORITY (ORC)
+38 ;;R^"860.4:",.01,"E"
+39 ;;D^ORDER PRIORITY (ORC)
+40 ;;R^"860.4:",101,"E"
+41 ;;D^FREE TEXT
+42 ;;R^"860.4:","860.41:1",.01,"E"
+43 ;;D^GENERIC HL7 MESSAGE ARRAY
+44 ;;R^"860.4:","860.41:1",.02,"E"
+45 ;;D^HL7 COMMON ORDER SEGMENT
+46 ;;R^"860.4:","860.41:1",1,"E"
+47 ;;D^PATIENT.ORDER_PRIORITY(ORC)
+48 ;;EOR^
+49 ;;KEY^860.4:^ORDER STATUS
+50 ;;R^"860.4:",.01,"E"
+51 ;;D^ORDER STATUS
+52 ;;R^"860.4:",101,"E"
+53 ;;D^FREE TEXT
+54 ;;R^"860.4:","860.41:1",.01,"E"
+55 ;;D^GENERIC HL7 MESSAGE ARRAY
+56 ;;R^"860.4:","860.41:1",.02,"E"
+57 ;;D^HL7 COMMON ORDER SEGMENT
+58 ;;R^"860.4:","860.41:1",1,"E"
+59 ;;D^PATIENT.HL7_ORDER_STATUS
+60 ;;R^"860.4:","860.41:4",.01,"E"
+61 ;;D^DATABASE LOOKUP
+62 ;;R^"860.4:","860.41:4",.02,"E"
+63 ;;D^DATABASE LOOKUP
+64 ;;R^"860.4:","860.41:4",1,"E"
+65 ;;D^PATIENT.ORDER STATUS
+66 ;;EOR^
+67 ;;KEY^860.4:^REQUEST STATUS (OBR)
+68 ;;R^"860.4:",.01,"E"
+69 ;;D^REQUEST STATUS (OBR)
+70 ;;R^"860.4:",101,"E"
+71 ;;D^FREE TEXT
+72 ;;R^"860.4:","860.41:1",.01,"E"
+73 ;;D^GENERIC HL7 MESSAGE ARRAY
+74 ;;R^"860.4:","860.41:1",.02,"E"
+75 ;;D^HL7 OBSERVATION REQUEST SEGMENT
+76 ;;R^"860.4:","860.41:1",1,"E"
+77 ;;D^PATIENT.HL7_REQUEST_STATUS
+78 ;;EOR^
+79 ;;KEY^860.4:^ORDERABLE ITEM LOCAL TEXT
+80 ;;R^"860.4:",.01,"E"
+81 ;;D^ORDERABLE ITEM LOCAL TEXT
+82 ;;R^"860.4:",101,"E"
+83 ;;D^FREE TEXT
+84 ;;R^"860.4:","860.41:1",.01,"E"
+85 ;;D^GENERIC HL7 MESSAGE ARRAY
+86 ;;R^"860.4:","860.41:1",.02,"E"
+87 ;;D^HL7 OBSERVATION REQUEST SEGMENT
+88 ;;R^"860.4:","860.41:1",1,"E"
+89 ;;D^PATIENT.HL7_LOCAL_OI_TEXT
+90 ;;EOR^
+91 ;;KEY^860.4:^PATIENT MOVEMENT TYPE CURRENT
+92 ;;R^"860.4:",.01,"E"
+93 ;;D^PATIENT MOVEMENT TYPE CURRENT
+94 ;;R^"860.4:",101,"E"
+95 ;;D^FREE TEXT
+96 ;;R^"860.4:","860.41:3",.01,"E"
+97 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+98 ;;R^"860.4:","860.41:3",.02,"E"
+99 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+100 ;;R^"860.4:","860.41:3",1,"E"
+101 ;;D^PATIENT.MOVE_TYPE_CURRENT
+102 ;;EOR^
+103 ;;KEY^860.4:^PATIENT MOVEMENT DATE CURRENT
+104 ;;R^"860.4:",.01,"E"
+105 ;;D^PATIENT MOVEMENT DATE CURRENT
+106 ;;R^"860.4:",101,"E"
+107 ;;D^DATE/TIME
+108 ;;R^"860.4:","860.41:3",.01,"E"
+109 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+110 ;;R^"860.4:","860.41:3",.02,"E"
+111 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+112 ;;R^"860.4:","860.41:3",1,"E"
+113 ;;D^PATIENT.MOV_DATE_CUR
+114 ;;EOR^
+115 ;;KEY^860.4:^ORDER FLAGGED FOR CLARIFICATION
+116 ;;R^"860.4:",.01,"E"
+117 ;;D^ORDER FLAGGED FOR CLARIFICATION
+118 ;;R^"860.4:",101,"E"
+119 ;;D^BOOLEAN
+120 ;;R^"860.4:","860.41:2",.01,"E"
+121 ;;D^CPRS ORDER PROTOCOL
+122 ;;R^"860.4:","860.41:2",.02,"E"
+123 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+124 ;;R^"860.4:","860.41:2",1,"E"
+125 ;;D^PATIENT.OERR_ORDER_FLAGGED
+126 ;;EOR^
+127 ;;KEY^860.4:^ORDER REQ. CHART SIGN.
+128 ;;R^"860.4:",.01,"E"
+129 ;;D^ORDER REQ. CHART SIGN.
+130 ;;R^"860.4:",101,"E"
+131 ;;D^BOOLEAN
+132 ;;R^"860.4:","860.41:2",.01,"E"
+133 ;;D^CPRS ORDER PROTOCOL
+134 ;;R^"860.4:","860.41:2",.02,"E"
+135 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+136 ;;R^"860.4:","860.41:2",1,"E"
+137 ;;D^PATIENT.OERR_ORD_REQ_CHART_SIG
+138 ;;EOR^
+139 ;;KEY^860.4:^SERV. ORDER REQ CHART SIG.
+140 ;;R^"860.4:",.01,"E"
+141 ;;D^SERV. ORDER REQ CHART SIG.
+142 ;;R^"860.4:",101,"E"
+143 ;;D^BOOLEAN
+144 ;;R^"860.4:","860.41:2",.01,"E"
+145 ;;D^CPRS ORDER PROTOCOL
+146 ;;R^"860.4:","860.41:2",.02,"E"
+147 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+148 ;;R^"860.4:","860.41:2",1,"E"
+149 ;;D^PATIENT.SERV_ORD_REQ_SIG
+150 ;;EOR^
+151 ;;KEY^860.4:^ORDER REQ. CO-SIG.
+152 ;;R^"860.4:",.01,"E"
+153 ;;D^ORDER REQ. CO-SIG.
+154 ;;R^"860.4:",101,"E"
+155 ;;D^BOOLEAN
+156 ;;R^"860.4:","860.41:2",.01,"E"
+157 ;;D^CPRS ORDER PROTOCOL
+158 ;;R^"860.4:","860.41:2",.02,"E"
+159 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+160 ;;R^"860.4:","860.41:2",1,"E"
+161 ;;D^PATIENT.ORD_REQ_CO_SIG
+162 ;;EOR^
+163 ;;KEY^860.4:^ORDER REQ. ELEC. SIG.
+164 ;;R^"860.4:",.01,"E"
+165 ;;D^ORDER REQ. ELEC. SIG.
+166 ;;R^"860.4:",101,"E"
+167 ;;D^BOOLEAN
+168 ;;R^"860.4:","860.41:2",.01,"E"
+169 ;;D^CPRS ORDER PROTOCOL
+170 ;;R^"860.4:","860.41:2",.02,"E"
+171 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+172 ;;R^"860.4:","860.41:2",1,"E"
+173 ;;D^PATIENT.ORD_REQ_ELEC_SIG
+174 ;;EOR^
+175 ;;KEY^860.4:^ORDER FLAGGED FOR RESULTS
+176 ;;R^"860.4:",.01,"E"
+177 ;1;
+178 ;