OCXDI02R ;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 ^OCXDI02S
;
Q
;
DATA ;
;
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_RX_OI_TEXT
;;EOR^
;;KEY^860.4:^PATIENT WARD ROOM-BED
;;R^"860.4:",.01,"E"
;;D^PATIENT WARD ROOM-BED
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.WARD_ROOM-BED
;;EOR^
;;KEY^860.4:^INPATIENT
;;R^"860.4:",.01,"E"
;;D^INPATIENT
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;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^INPATIENT
;;EOR^
;;KEY^860.4:^SENDING APPLICATION
;;R^"860.4:",.01,"E"
;;D^SENDING APPLICATION
;;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 MESSAGE HEADER
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_SEND_APP
;;EOR^
;;KEY^860.4:^RECIEVING APPLICATION
;;R^"860.4:",.01,"E"
;;D^RECIEVING APPLICATION
;;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 MESSAGE HEADER
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_RECV_APP
;;EOR^
;;KEY^860.4:^EXTERNAL APPLICATION
;;R^"860.4:",.01,"E"
;;D^EXTERNAL APPLICATION
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.HL7_EXT_APP
;;EOR^
;;KEY^860.4:^PATIENT FAC. TREAT. SPEC. CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT FAC. TREAT. SPEC. CURRENT
;;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.FAC_TREAT_SPEC_CURR
;;EOR^
;;KEY^860.4:^PATIENT FAC. TREAT. SPEC. PREVIOUS
;;R^"860.4:",.01,"E"
;;D^PATIENT FAC. TREAT. SPEC. PREVIOUS
;;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.FAC_TREAT_SPEC_PREV
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT WARD CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT WARD 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_WARD_CURR
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT SERVICE CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT SERVICE CURRENT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.MOVE_SERV_CURR
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT WARD IEN CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT WARD IEN CURRENT
;;R^"860.4:",1,"E"
;;D^PMWIENC
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;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_WARD_IEN_CURR
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT WARD IEN PREVIOUS
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT WARD IEN PREVIOUS
;;R^"860.4:",1,"E"
;;D^PMWIENP
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;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_WARD_IEN_PREV
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT SERVICE PREVIOUS
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT SERVICE PREVIOUS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.MOVE_SERV_PREV
;;EOR^
;;KEY^860.4:^PATIENT MOVEMENT WARD PREVIOUS
;;R^"860.4:",.01,"E"
;;D^PATIENT MOVEMENT WARD PREVIOUS
;;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_WARD_PREV
;;EOR^
;;KEY^860.4:^ORDERABLE ITEM NAME
;;R^"860.4:",.01,"E"
;;D^ORDERABLE ITEM NAME
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;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.ORD_ITEM_NAME
;;EOR^
;;KEY^860.4:^NEW PATIENT MOVEMENT
;;R^"860.4:",.01,"E"
;1;
;
OCXDI02R ;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 ^OCXDI02S
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^GENERIC HL7 MESSAGE ARRAY
+3 ;;R^"860.4:","860.41:1",.02,"E"
+4 ;;D^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
+5 ;;R^"860.4:","860.41:1",1,"E"
+6 ;;D^PATIENT.HL7_RX_OI_TEXT
+7 ;;EOR^
+8 ;;KEY^860.4:^PATIENT WARD ROOM-BED
+9 ;;R^"860.4:",.01,"E"
+10 ;;D^PATIENT WARD ROOM-BED
+11 ;;R^"860.4:",101,"E"
+12 ;;D^FREE TEXT
+13 ;;R^"860.4:","860.41:4",.01,"E"
+14 ;;D^DATABASE LOOKUP
+15 ;;R^"860.4:","860.41:4",.02,"E"
+16 ;;D^DATABASE LOOKUP
+17 ;;R^"860.4:","860.41:4",1,"E"
+18 ;;D^PATIENT.WARD_ROOM-BED
+19 ;;EOR^
+20 ;;KEY^860.4:^INPATIENT
+21 ;;R^"860.4:",.01,"E"
+22 ;;D^INPATIENT
+23 ;;R^"860.4:",101,"E"
+24 ;;D^BOOLEAN
+25 ;;R^"860.4:","860.41:4",.01,"E"
+26 ;;D^DATABASE LOOKUP
+27 ;;R^"860.4:","860.41:4",.02,"E"
+28 ;;D^DATABASE LOOKUP
+29 ;;R^"860.4:","860.41:4",1,"E"
+30 ;;D^INPATIENT
+31 ;;EOR^
+32 ;;KEY^860.4:^SENDING APPLICATION
+33 ;;R^"860.4:",.01,"E"
+34 ;;D^SENDING APPLICATION
+35 ;;R^"860.4:",101,"E"
+36 ;;D^FREE TEXT
+37 ;;R^"860.4:","860.41:1",.01,"E"
+38 ;;D^GENERIC HL7 MESSAGE ARRAY
+39 ;;R^"860.4:","860.41:1",.02,"E"
+40 ;;D^HL7 MESSAGE HEADER
+41 ;;R^"860.4:","860.41:1",1,"E"
+42 ;;D^PATIENT.HL7_SEND_APP
+43 ;;EOR^
+44 ;;KEY^860.4:^RECIEVING APPLICATION
+45 ;;R^"860.4:",.01,"E"
+46 ;;D^RECIEVING APPLICATION
+47 ;;R^"860.4:",101,"E"
+48 ;;D^FREE TEXT
+49 ;;R^"860.4:","860.41:1",.01,"E"
+50 ;;D^GENERIC HL7 MESSAGE ARRAY
+51 ;;R^"860.4:","860.41:1",.02,"E"
+52 ;;D^HL7 MESSAGE HEADER
+53 ;;R^"860.4:","860.41:1",1,"E"
+54 ;;D^PATIENT.HL7_RECV_APP
+55 ;;EOR^
+56 ;;KEY^860.4:^EXTERNAL APPLICATION
+57 ;;R^"860.4:",.01,"E"
+58 ;;D^EXTERNAL APPLICATION
+59 ;;R^"860.4:",101,"E"
+60 ;;D^FREE TEXT
+61 ;;R^"860.4:","860.41:4",.01,"E"
+62 ;;D^DATABASE LOOKUP
+63 ;;R^"860.4:","860.41:4",.02,"E"
+64 ;;D^DATABASE LOOKUP
+65 ;;R^"860.4:","860.41:4",1,"E"
+66 ;;D^PATIENT.HL7_EXT_APP
+67 ;;EOR^
+68 ;;KEY^860.4:^PATIENT FAC. TREAT. SPEC. CURRENT
+69 ;;R^"860.4:",.01,"E"
+70 ;;D^PATIENT FAC. TREAT. SPEC. CURRENT
+71 ;;R^"860.4:","860.41:3",.01,"E"
+72 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+73 ;;R^"860.4:","860.41:3",.02,"E"
+74 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+75 ;;R^"860.4:","860.41:3",1,"E"
+76 ;;D^PATIENT.FAC_TREAT_SPEC_CURR
+77 ;;EOR^
+78 ;;KEY^860.4:^PATIENT FAC. TREAT. SPEC. PREVIOUS
+79 ;;R^"860.4:",.01,"E"
+80 ;;D^PATIENT FAC. TREAT. SPEC. PREVIOUS
+81 ;;R^"860.4:","860.41:3",.01,"E"
+82 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+83 ;;R^"860.4:","860.41:3",.02,"E"
+84 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+85 ;;R^"860.4:","860.41:3",1,"E"
+86 ;;D^PATIENT.FAC_TREAT_SPEC_PREV
+87 ;;EOR^
+88 ;;KEY^860.4:^PATIENT MOVEMENT WARD CURRENT
+89 ;;R^"860.4:",.01,"E"
+90 ;;D^PATIENT MOVEMENT WARD CURRENT
+91 ;;R^"860.4:",101,"E"
+92 ;;D^FREE TEXT
+93 ;;R^"860.4:","860.41:3",.01,"E"
+94 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+95 ;;R^"860.4:","860.41:3",.02,"E"
+96 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+97 ;;R^"860.4:","860.41:3",1,"E"
+98 ;;D^PATIENT.MOVE_WARD_CURR
+99 ;;EOR^
+100 ;;KEY^860.4:^PATIENT MOVEMENT SERVICE CURRENT
+101 ;;R^"860.4:",.01,"E"
+102 ;;D^PATIENT MOVEMENT SERVICE CURRENT
+103 ;;R^"860.4:",101,"E"
+104 ;;D^FREE TEXT
+105 ;;R^"860.4:","860.41:4",.01,"E"
+106 ;;D^DATABASE LOOKUP
+107 ;;R^"860.4:","860.41:4",.02,"E"
+108 ;;D^DATABASE LOOKUP
+109 ;;R^"860.4:","860.41:4",1,"E"
+110 ;;D^PATIENT.MOVE_SERV_CURR
+111 ;;EOR^
+112 ;;KEY^860.4:^PATIENT MOVEMENT WARD IEN CURRENT
+113 ;;R^"860.4:",.01,"E"
+114 ;;D^PATIENT MOVEMENT WARD IEN CURRENT
+115 ;;R^"860.4:",1,"E"
+116 ;;D^PMWIENC
+117 ;;R^"860.4:",101,"E"
+118 ;;D^NUMERIC
+119 ;;R^"860.4:","860.41:3",.01,"E"
+120 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+121 ;;R^"860.4:","860.41:3",.02,"E"
+122 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+123 ;;R^"860.4:","860.41:3",1,"E"
+124 ;;D^PATIENT.MOV_WARD_IEN_CURR
+125 ;;EOR^
+126 ;;KEY^860.4:^PATIENT MOVEMENT WARD IEN PREVIOUS
+127 ;;R^"860.4:",.01,"E"
+128 ;;D^PATIENT MOVEMENT WARD IEN PREVIOUS
+129 ;;R^"860.4:",1,"E"
+130 ;;D^PMWIENP
+131 ;;R^"860.4:",101,"E"
+132 ;;D^NUMERIC
+133 ;;R^"860.4:","860.41:3",.01,"E"
+134 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+135 ;;R^"860.4:","860.41:3",.02,"E"
+136 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+137 ;;R^"860.4:","860.41:3",1,"E"
+138 ;;D^PATIENT.MOV_WARD_IEN_PREV
+139 ;;EOR^
+140 ;;KEY^860.4:^PATIENT MOVEMENT SERVICE PREVIOUS
+141 ;;R^"860.4:",.01,"E"
+142 ;;D^PATIENT MOVEMENT SERVICE PREVIOUS
+143 ;;R^"860.4:",101,"E"
+144 ;;D^FREE TEXT
+145 ;;R^"860.4:","860.41:4",.01,"E"
+146 ;;D^DATABASE LOOKUP
+147 ;;R^"860.4:","860.41:4",.02,"E"
+148 ;;D^DATABASE LOOKUP
+149 ;;R^"860.4:","860.41:4",1,"E"
+150 ;;D^PATIENT.MOVE_SERV_PREV
+151 ;;EOR^
+152 ;;KEY^860.4:^PATIENT MOVEMENT WARD PREVIOUS
+153 ;;R^"860.4:",.01,"E"
+154 ;;D^PATIENT MOVEMENT WARD PREVIOUS
+155 ;;R^"860.4:",101,"E"
+156 ;;D^FREE TEXT
+157 ;;R^"860.4:","860.41:3",.01,"E"
+158 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+159 ;;R^"860.4:","860.41:3",.02,"E"
+160 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+161 ;;R^"860.4:","860.41:3",1,"E"
+162 ;;D^PATIENT.MOVE_WARD_PREV
+163 ;;EOR^
+164 ;;KEY^860.4:^ORDERABLE ITEM NAME
+165 ;;R^"860.4:",.01,"E"
+166 ;;D^ORDERABLE ITEM NAME
+167 ;;R^"860.4:",101,"E"
+168 ;;D^FREE TEXT
+169 ;;R^"860.4:","860.41:4",.01,"E"
+170 ;;D^DATABASE LOOKUP
+171 ;;R^"860.4:","860.41:4",.02,"E"
+172 ;;D^DATABASE LOOKUP
+173 ;;R^"860.4:","860.41:4",1,"E"
+174 ;;D^PATIENT.ORD_ITEM_NAME
+175 ;;EOR^
+176 ;;KEY^860.4:^NEW PATIENT MOVEMENT
+177 ;;R^"860.4:",.01,"E"
+178 ;1;
+179 ;