OCXDI02M ;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 ^OCXDI02N
;
Q
;
DATA ;
;
;;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_CONTROL_CODE
;;EOR^
;;KEY^860.4:^FILLER
;;R^"860.4:",.01,"E"
;;D^FILLER
;;R^"860.4:",1,"E"
;;D^FILL
;;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_FILLER
;;R^"860.4:","860.41:5",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:5",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:5",1,"E"
;;D^PATIENT.OPS_FILLER
;;EOR^
;;KEY^860.4:^ORDERING PROVIDER
;;R^"860.4:",.01,"E"
;;D^ORDERING PROVIDER
;;R^"860.4:",101,"E"
;;D^POINTER TO A FILEMAN FILE
;;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_ORDERING_PROVIDER
;;EOR^
;;KEY^860.4:^STATUS
;;R^"860.4:",.01,"E"
;;D^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 OBSERVATION/RESULT SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_STATUS
;;EOR^
;;KEY^860.4:^ORDER PRIORITY (OBR)
;;R^"860.4:",.01,"E"
;;D^ORDER PRIORITY (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_ORDER_PRIORITY
;;EOR^
;;KEY^860.4:^ABNORMAL FLAG
;;R^"860.4:",.01,"E"
;;D^ABNORMAL FLAG
;;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.HL7_ABNORMAL_FLAG
;;EOR^
;;KEY^860.4:^COMMENT
;;R^"860.4:",.01,"E"
;;D^COMMENT
;;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 NOTES AND COMMENTS SECTION
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_COMMENT
;;EOR^
;;KEY^860.4:^EXAM/ORDER ID
;;R^"860.4:",.01,"E"
;;D^EXAM/ORDER ID
;;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_EXAM/ORDER_ID
;;EOR^
;;KEY^860.4:^ORDER ST D/T
;;R^"860.4:",.01,"E"
;;D^ORDER ST 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_ST_D/T
;;EOR^
;;KEY^860.4:^LAB TEST NAME
;;R^"860.4:",.01,"E"
;;D^LAB TEST NAME
;;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.HL7_LAB_LOCAL_TEST
;;EOR^
;;KEY^860.4:^CONSULT/REQUEST NAME
;;R^"860.4:",.01,"E"
;;D^CONSULT/REQUEST NAME
;;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.HL7_CON_REQ_NAME
;;EOR^
;;KEY^860.4:^LAB RESULT
;;R^"860.4:",.01,"E"
;;D^LAB RESULT
;;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_RESULT
;;EOR^
;;KEY^860.4:^LAB COLLECTION D/T
;;R^"860.4:",.01,"E"
;;D^LAB COLLECTION 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 OBSERVATION/RESULT SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.LAB_COLLECTION_D/T
;;EOR^
;;KEY^860.4:^LAB SPECIMEN
;;R^"860.4:",.01,"E"
;;D^LAB SPECIMEN
;;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_SPECIMEN
;;EOR^
;;KEY^860.4:^RESULT STATUS (OBX)
;;R^"860.4:",.01,"E"
;;D^RESULT STATUS (OBX)
;;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.RESULT_STATUS
;;EOR^
;;KEY^860.4:^LAB LOCAL ORDERABLE ITEM
;1;
;
OCXDI02M ;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 ^OCXDI02N
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^FREE TEXT
+3 ;;R^"860.4:","860.41:1",.01,"E"
+4 ;;D^GENERIC HL7 MESSAGE ARRAY
+5 ;;R^"860.4:","860.41:1",.02,"E"
+6 ;;D^HL7 COMMON ORDER SEGMENT
+7 ;;R^"860.4:","860.41:1",1,"E"
+8 ;;D^PATIENT.HL7_CONTROL_CODE
+9 ;;EOR^
+10 ;;KEY^860.4:^FILLER
+11 ;;R^"860.4:",.01,"E"
+12 ;;D^FILLER
+13 ;;R^"860.4:",1,"E"
+14 ;;D^FILL
+15 ;;R^"860.4:",101,"E"
+16 ;;D^FREE TEXT
+17 ;;R^"860.4:","860.41:1",.01,"E"
+18 ;;D^GENERIC HL7 MESSAGE ARRAY
+19 ;;R^"860.4:","860.41:1",.02,"E"
+20 ;;D^HL7 COMMON ORDER SEGMENT
+21 ;;R^"860.4:","860.41:1",1,"E"
+22 ;;D^PATIENT.HL7_FILLER
+23 ;;R^"860.4:","860.41:5",.01,"E"
+24 ;;D^CPRS ORDER PRESCAN
+25 ;;R^"860.4:","860.41:5",.02,"E"
+26 ;;D^ORDER ENTRY ORDER PRESCAN
+27 ;;R^"860.4:","860.41:5",1,"E"
+28 ;;D^PATIENT.OPS_FILLER
+29 ;;EOR^
+30 ;;KEY^860.4:^ORDERING PROVIDER
+31 ;;R^"860.4:",.01,"E"
+32 ;;D^ORDERING PROVIDER
+33 ;;R^"860.4:",101,"E"
+34 ;;D^POINTER TO A FILEMAN FILE
+35 ;;R^"860.4:","860.41:1",.01,"E"
+36 ;;D^GENERIC HL7 MESSAGE ARRAY
+37 ;;R^"860.4:","860.41:1",.02,"E"
+38 ;;D^HL7 COMMON ORDER SEGMENT
+39 ;;R^"860.4:","860.41:1",1,"E"
+40 ;;D^PATIENT.HL7_ORDERING_PROVIDER
+41 ;;EOR^
+42 ;;KEY^860.4:^STATUS
+43 ;;R^"860.4:",.01,"E"
+44 ;;D^STATUS
+45 ;;R^"860.4:",101,"E"
+46 ;;D^FREE TEXT
+47 ;;R^"860.4:","860.41:1",.01,"E"
+48 ;;D^GENERIC HL7 MESSAGE ARRAY
+49 ;;R^"860.4:","860.41:1",.02,"E"
+50 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+51 ;;R^"860.4:","860.41:1",1,"E"
+52 ;;D^PATIENT.HL7_STATUS
+53 ;;EOR^
+54 ;;KEY^860.4:^ORDER PRIORITY (OBR)
+55 ;;R^"860.4:",.01,"E"
+56 ;;D^ORDER PRIORITY (OBR)
+57 ;;R^"860.4:",101,"E"
+58 ;;D^FREE TEXT
+59 ;;R^"860.4:","860.41:1",.01,"E"
+60 ;;D^GENERIC HL7 MESSAGE ARRAY
+61 ;;R^"860.4:","860.41:1",.02,"E"
+62 ;;D^HL7 OBSERVATION REQUEST SEGMENT
+63 ;;R^"860.4:","860.41:1",1,"E"
+64 ;;D^PATIENT.HL7_ORDER_PRIORITY
+65 ;;EOR^
+66 ;;KEY^860.4:^ABNORMAL FLAG
+67 ;;R^"860.4:",.01,"E"
+68 ;;D^ABNORMAL FLAG
+69 ;;R^"860.4:",101,"E"
+70 ;;D^FREE TEXT
+71 ;;R^"860.4:","860.41:1",.01,"E"
+72 ;;D^GENERIC HL7 MESSAGE ARRAY
+73 ;;R^"860.4:","860.41:1",.02,"E"
+74 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+75 ;;R^"860.4:","860.41:1",1,"E"
+76 ;;D^PATIENT.HL7_ABNORMAL_FLAG
+77 ;;EOR^
+78 ;;KEY^860.4:^COMMENT
+79 ;;R^"860.4:",.01,"E"
+80 ;;D^COMMENT
+81 ;;R^"860.4:",101,"E"
+82 ;;D^FREE TEXT
+83 ;;R^"860.4:","860.41:1",.01,"E"
+84 ;;D^GENERIC HL7 MESSAGE ARRAY
+85 ;;R^"860.4:","860.41:1",.02,"E"
+86 ;;D^HL7 NOTES AND COMMENTS SECTION
+87 ;;R^"860.4:","860.41:1",1,"E"
+88 ;;D^PATIENT.HL7_COMMENT
+89 ;;EOR^
+90 ;;KEY^860.4:^EXAM/ORDER ID
+91 ;;R^"860.4:",.01,"E"
+92 ;;D^EXAM/ORDER ID
+93 ;;R^"860.4:",101,"E"
+94 ;;D^FREE TEXT
+95 ;;R^"860.4:","860.41:1",.01,"E"
+96 ;;D^GENERIC HL7 MESSAGE ARRAY
+97 ;;R^"860.4:","860.41:1",.02,"E"
+98 ;;D^HL7 COMMON ORDER SEGMENT
+99 ;;R^"860.4:","860.41:1",1,"E"
+100 ;;D^PATIENT.HL7_EXAM/ORDER_ID
+101 ;;EOR^
+102 ;;KEY^860.4:^ORDER ST D/T
+103 ;;R^"860.4:",.01,"E"
+104 ;;D^ORDER ST D/T
+105 ;;R^"860.4:",101,"E"
+106 ;;D^DATE/TIME
+107 ;;R^"860.4:","860.41:1",.01,"E"
+108 ;;D^GENERIC HL7 MESSAGE ARRAY
+109 ;;R^"860.4:","860.41:1",.02,"E"
+110 ;;D^HL7 COMMON ORDER SEGMENT
+111 ;;R^"860.4:","860.41:1",1,"E"
+112 ;;D^PATIENT.HL7_ORDER_ST_D/T
+113 ;;EOR^
+114 ;;KEY^860.4:^LAB TEST NAME
+115 ;;R^"860.4:",.01,"E"
+116 ;;D^LAB TEST NAME
+117 ;;R^"860.4:",101,"E"
+118 ;;D^FREE TEXT
+119 ;;R^"860.4:","860.41:1",.01,"E"
+120 ;;D^GENERIC HL7 MESSAGE ARRAY
+121 ;;R^"860.4:","860.41:1",.02,"E"
+122 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+123 ;;R^"860.4:","860.41:1",1,"E"
+124 ;;D^PATIENT.HL7_LAB_LOCAL_TEST
+125 ;;EOR^
+126 ;;KEY^860.4:^CONSULT/REQUEST NAME
+127 ;;R^"860.4:",.01,"E"
+128 ;;D^CONSULT/REQUEST NAME
+129 ;;R^"860.4:",101,"E"
+130 ;;D^FREE TEXT
+131 ;;R^"860.4:","860.41:1",.01,"E"
+132 ;;D^GENERIC HL7 MESSAGE ARRAY
+133 ;;R^"860.4:","860.41:1",.02,"E"
+134 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+135 ;;R^"860.4:","860.41:1",1,"E"
+136 ;;D^PATIENT.HL7_CON_REQ_NAME
+137 ;;EOR^
+138 ;;KEY^860.4:^LAB RESULT
+139 ;;R^"860.4:",.01,"E"
+140 ;;D^LAB RESULT
+141 ;;R^"860.4:",101,"E"
+142 ;;D^FREE TEXT
+143 ;;R^"860.4:","860.41:1",.01,"E"
+144 ;;D^GENERIC HL7 MESSAGE ARRAY
+145 ;;R^"860.4:","860.41:1",.02,"E"
+146 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+147 ;;R^"860.4:","860.41:1",1,"E"
+148 ;;D^PATIENT.LAB_RESULT
+149 ;;EOR^
+150 ;;KEY^860.4:^LAB COLLECTION D/T
+151 ;;R^"860.4:",.01,"E"
+152 ;;D^LAB COLLECTION D/T
+153 ;;R^"860.4:",101,"E"
+154 ;;D^DATE/TIME
+155 ;;R^"860.4:","860.41:1",.01,"E"
+156 ;;D^GENERIC HL7 MESSAGE ARRAY
+157 ;;R^"860.4:","860.41:1",.02,"E"
+158 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+159 ;;R^"860.4:","860.41:1",1,"E"
+160 ;;D^PATIENT.LAB_COLLECTION_D/T
+161 ;;EOR^
+162 ;;KEY^860.4:^LAB SPECIMEN
+163 ;;R^"860.4:",.01,"E"
+164 ;;D^LAB SPECIMEN
+165 ;;R^"860.4:",101,"E"
+166 ;;D^FREE TEXT
+167 ;;R^"860.4:","860.41:1",.01,"E"
+168 ;;D^GENERIC HL7 MESSAGE ARRAY
+169 ;;R^"860.4:","860.41:1",.02,"E"
+170 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+171 ;;R^"860.4:","860.41:1",1,"E"
+172 ;;D^PATIENT.LAB_SPECIMEN
+173 ;;EOR^
+174 ;;KEY^860.4:^RESULT STATUS (OBX)
+175 ;;R^"860.4:",.01,"E"
+176 ;;D^RESULT STATUS (OBX)
+177 ;;R^"860.4:",101,"E"
+178 ;;D^FREE TEXT
+179 ;;R^"860.4:","860.41:1",.01,"E"
+180 ;;D^GENERIC HL7 MESSAGE ARRAY
+181 ;;R^"860.4:","860.41:1",.02,"E"
+182 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+183 ;;R^"860.4:","860.41:1",1,"E"
+184 ;;D^PATIENT.RESULT_STATUS
+185 ;;EOR^
+186 ;;KEY^860.4:^LAB LOCAL ORDERABLE ITEM
+187 ;1;
+188 ;