OCXDI032 ;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 ^OCXDI033
;
Q
;
DATA ;
;
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^RE
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:4",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:4",3,"E"
;;D^LR
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^ORDER PRIORITY (OBR)
;;R^"860.3:","860.31:5",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:5",3,"E"
;;D^S
;;EOR^
;;KEY^860.3:^COUMADIN ORDER
;;R^"860.3:",.01,"E"
;;D^COUMADIN ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:3",3,"E"
;;D^COUMADIN
;;EOR^
;;KEY^860.3:^WARFARIN ORDER
;;R^"860.3:",.01,"E"
;;D^WARFARIN ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^WARFARIN
;;EOR^
;;KEY^860.3:^DISULFIRAM ORDER
;;R^"860.3:",.01,"E"
;;D^DISULFIRAM ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^DISULFIRAM
;;EOR^
;;KEY^860.3:^PHENELZINE ORDER
;;R^"860.3:",.01,"E"
;;D^PHENELZINE ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^PHENELZINE
;;EOR^
;;KEY^860.3:^TRANYLCYPROMINE ORDER
;;R^"860.3:",.01,"E"
;;D^TRANYLCYPROMINE ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^TRANYLCYPROMINE
;;EOR^
;;KEY^860.3:^PARNATE ORDER
;;R^"860.3:",.01,"E"
;;D^PARNATE ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:2",2,"E"
;;D^CONTAINS
;;R^"860.3:","860.31:2",3,"E"
;;D^PARNATE
;;EOR^
;;KEY^860.3:^INPATIENT FOOD-DRUG REACTION
;;R^"860.3:",.01,"E"
;;D^INPATIENT FOOD-DRUG REACTION
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.3:","860.31:1",2,"E"
;;D^CONTAINS ELEMENT IN SET
;;R^"860.3:","860.31:1",3,"E"
;;D^COUMADIN,WARFARIN,DISULFIRAM,PHENELZINE,TRANYLCYPROMINE,PARNATE
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^INPATIENT
;;R^"860.3:","860.31:2",2,"E"
;;D^LOGICAL TRUE
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^NW,SN
;;EOR^
;;KEY^860.3:^RADIOLOGY PROCEDURE CONTAINS CONTRAST MEDIA
;;R^"860.3:",.01,"E"
;;D^RADIOLOGY PROCEDURE CONTAINS CONTRAST MEDIA
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:2",3,"E"
;;D^RA
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTRAST MEDIA FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^GLUCOPHAGE ORDER
;;R^"860.3:",.01,"E"
;;D^GLUCOPHAGE ORDER
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^OI LOCAL TEXT
;;R^"860.3:","860.31:3",2,"E"
;;D^CONTAINS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^GLUCOPHAGE,METFORMIN
;;EOR^
;;KEY^860.3:^LITHIUM ORDER
;;R^"860.3:",.01,"E"
;;D^LITHIUM ORDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI032 5471 printed Nov 22, 2024@17:34:15 Page 2
OCXDI032 ;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 ^OCXDI033
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^3
+3 ;;R^"860.3:","860.31:3",1,"E"
+4 ;;D^CONTROL CODE
+5 ;;R^"860.3:","860.31:3",2,"E"
+6 ;;D^EQUALS ELEMENT IN SET
+7 ;;R^"860.3:","860.31:3",3,"E"
+8 ;;D^RE
+9 ;;R^"860.3:","860.31:4",.01,"E"
+10 ;;D^4
+11 ;;R^"860.3:","860.31:4",1,"E"
+12 ;;D^FILLER
+13 ;;R^"860.3:","860.31:4",2,"E"
+14 ;;D^STARTS WITH
+15 ;;R^"860.3:","860.31:4",3,"E"
+16 ;;D^LR
+17 ;;R^"860.3:","860.31:5",.01,"E"
+18 ;;D^5
+19 ;;R^"860.3:","860.31:5",1,"E"
+20 ;;D^ORDER PRIORITY (OBR)
+21 ;;R^"860.3:","860.31:5",2,"E"
+22 ;;D^EQ FREE TEXT
+23 ;;R^"860.3:","860.31:5",3,"E"
+24 ;;D^S
+25 ;;EOR^
+26 ;;KEY^860.3:^COUMADIN ORDER
+27 ;;R^"860.3:",.01,"E"
+28 ;;D^COUMADIN ORDER
+29 ;;R^"860.3:",.02,"E"
+30 ;;D^GENERIC HL7 MESSAGE ARRAY
+31 ;;R^"860.3:","860.31:3",.01,"E"
+32 ;;D^3
+33 ;;R^"860.3:","860.31:3",1,"E"
+34 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+35 ;;R^"860.3:","860.31:3",2,"E"
+36 ;;D^CONTAINS
+37 ;;R^"860.3:","860.31:3",3,"E"
+38 ;;D^COUMADIN
+39 ;;EOR^
+40 ;;KEY^860.3:^WARFARIN ORDER
+41 ;;R^"860.3:",.01,"E"
+42 ;;D^WARFARIN ORDER
+43 ;;R^"860.3:",.02,"E"
+44 ;;D^GENERIC HL7 MESSAGE ARRAY
+45 ;;R^"860.3:","860.31:2",.01,"E"
+46 ;;D^2
+47 ;;R^"860.3:","860.31:2",1,"E"
+48 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+49 ;;R^"860.3:","860.31:2",2,"E"
+50 ;;D^CONTAINS
+51 ;;R^"860.3:","860.31:2",3,"E"
+52 ;;D^WARFARIN
+53 ;;EOR^
+54 ;;KEY^860.3:^DISULFIRAM ORDER
+55 ;;R^"860.3:",.01,"E"
+56 ;;D^DISULFIRAM ORDER
+57 ;;R^"860.3:",.02,"E"
+58 ;;D^GENERIC HL7 MESSAGE ARRAY
+59 ;;R^"860.3:","860.31:2",.01,"E"
+60 ;;D^2
+61 ;;R^"860.3:","860.31:2",1,"E"
+62 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+63 ;;R^"860.3:","860.31:2",2,"E"
+64 ;;D^CONTAINS
+65 ;;R^"860.3:","860.31:2",3,"E"
+66 ;;D^DISULFIRAM
+67 ;;EOR^
+68 ;;KEY^860.3:^PHENELZINE ORDER
+69 ;;R^"860.3:",.01,"E"
+70 ;;D^PHENELZINE ORDER
+71 ;;R^"860.3:",.02,"E"
+72 ;;D^GENERIC HL7 MESSAGE ARRAY
+73 ;;R^"860.3:","860.31:2",.01,"E"
+74 ;;D^2
+75 ;;R^"860.3:","860.31:2",1,"E"
+76 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+77 ;;R^"860.3:","860.31:2",2,"E"
+78 ;;D^CONTAINS
+79 ;;R^"860.3:","860.31:2",3,"E"
+80 ;;D^PHENELZINE
+81 ;;EOR^
+82 ;;KEY^860.3:^TRANYLCYPROMINE ORDER
+83 ;;R^"860.3:",.01,"E"
+84 ;;D^TRANYLCYPROMINE ORDER
+85 ;;R^"860.3:",.02,"E"
+86 ;;D^GENERIC HL7 MESSAGE ARRAY
+87 ;;R^"860.3:","860.31:2",.01,"E"
+88 ;;D^2
+89 ;;R^"860.3:","860.31:2",1,"E"
+90 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+91 ;;R^"860.3:","860.31:2",2,"E"
+92 ;;D^CONTAINS
+93 ;;R^"860.3:","860.31:2",3,"E"
+94 ;;D^TRANYLCYPROMINE
+95 ;;EOR^
+96 ;;KEY^860.3:^PARNATE ORDER
+97 ;;R^"860.3:",.01,"E"
+98 ;;D^PARNATE ORDER
+99 ;;R^"860.3:",.02,"E"
+100 ;;D^GENERIC HL7 MESSAGE ARRAY
+101 ;;R^"860.3:","860.31:2",.01,"E"
+102 ;;D^2
+103 ;;R^"860.3:","860.31:2",1,"E"
+104 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+105 ;;R^"860.3:","860.31:2",2,"E"
+106 ;;D^CONTAINS
+107 ;;R^"860.3:","860.31:2",3,"E"
+108 ;;D^PARNATE
+109 ;;EOR^
+110 ;;KEY^860.3:^INPATIENT FOOD-DRUG REACTION
+111 ;;R^"860.3:",.01,"E"
+112 ;;D^INPATIENT FOOD-DRUG REACTION
+113 ;;R^"860.3:",.02,"E"
+114 ;;D^GENERIC HL7 MESSAGE ARRAY
+115 ;;R^"860.3:","860.31:1",.01,"E"
+116 ;;D^1
+117 ;;R^"860.3:","860.31:1",1,"E"
+118 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+119 ;;R^"860.3:","860.31:1",2,"E"
+120 ;;D^CONTAINS ELEMENT IN SET
+121 ;;R^"860.3:","860.31:1",3,"E"
+122 ;;D^COUMADIN,WARFARIN,DISULFIRAM,PHENELZINE,TRANYLCYPROMINE,PARNATE
+123 ;;R^"860.3:","860.31:2",.01,"E"
+124 ;;D^2
+125 ;;R^"860.3:","860.31:2",1,"E"
+126 ;;D^INPATIENT
+127 ;;R^"860.3:","860.31:2",2,"E"
+128 ;;D^LOGICAL TRUE
+129 ;;R^"860.3:","860.31:3",.01,"E"
+130 ;;D^3
+131 ;;R^"860.3:","860.31:3",1,"E"
+132 ;;D^CONTROL CODE
+133 ;;R^"860.3:","860.31:3",2,"E"
+134 ;;D^EQUALS ELEMENT IN SET
+135 ;;R^"860.3:","860.31:3",3,"E"
+136 ;;D^NW,SN
+137 ;;EOR^
+138 ;;KEY^860.3:^RADIOLOGY PROCEDURE CONTAINS CONTRAST MEDIA
+139 ;;R^"860.3:",.01,"E"
+140 ;;D^RADIOLOGY PROCEDURE CONTAINS CONTRAST MEDIA
+141 ;;R^"860.3:",.02,"E"
+142 ;;D^CPRS ORDER PRESCAN
+143 ;;R^"860.3:","860.31:1",.01,"E"
+144 ;;D^1
+145 ;;R^"860.3:","860.31:1",1,"E"
+146 ;;D^ORDER MODE
+147 ;;R^"860.3:","860.31:1",2,"E"
+148 ;;D^EQ FREE TEXT
+149 ;;R^"860.3:","860.31:1",3,"E"
+150 ;;D^SELECT
+151 ;;R^"860.3:","860.31:2",.01,"E"
+152 ;;D^2
+153 ;;R^"860.3:","860.31:2",1,"E"
+154 ;;D^FILLER
+155 ;;R^"860.3:","860.31:2",2,"E"
+156 ;;D^EQ FREE TEXT
+157 ;;R^"860.3:","860.31:2",3,"E"
+158 ;;D^RA
+159 ;;R^"860.3:","860.31:3",.01,"E"
+160 ;;D^3
+161 ;;R^"860.3:","860.31:3",1,"E"
+162 ;;D^CONTRAST MEDIA FLAG
+163 ;;R^"860.3:","860.31:3",2,"E"
+164 ;;D^LOGICAL TRUE
+165 ;;EOR^
+166 ;;KEY^860.3:^GLUCOPHAGE ORDER
+167 ;;R^"860.3:",.01,"E"
+168 ;;D^GLUCOPHAGE ORDER
+169 ;;R^"860.3:",.02,"E"
+170 ;;D^CPRS ORDER PRESCAN
+171 ;;R^"860.3:","860.31:1",.01,"E"
+172 ;;D^1
+173 ;;R^"860.3:","860.31:1",1,"E"
+174 ;;D^ORDER MODE
+175 ;;R^"860.3:","860.31:1",2,"E"
+176 ;;D^EQ FREE TEXT
+177 ;;R^"860.3:","860.31:1",3,"E"
+178 ;;D^SELECT
+179 ;;R^"860.3:","860.31:2",.01,"E"
+180 ;;D^2
+181 ;;R^"860.3:","860.31:2",1,"E"
+182 ;;D^FILLER
+183 ;;R^"860.3:","860.31:2",2,"E"
+184 ;;D^STARTS WITH
+185 ;;R^"860.3:","860.31:2",3,"E"
+186 ;;D^PS
+187 ;;R^"860.3:","860.31:3",.01,"E"
+188 ;;D^3
+189 ;;R^"860.3:","860.31:3",1,"E"
+190 ;;D^OI LOCAL TEXT
+191 ;;R^"860.3:","860.31:3",2,"E"
+192 ;;D^CONTAINS ELEMENT IN SET
+193 ;;R^"860.3:","860.31:3",3,"E"
+194 ;;D^GLUCOPHAGE,METFORMIN
+195 ;;EOR^
+196 ;;KEY^860.3:^LITHIUM ORDER
+197 ;;R^"860.3:",.01,"E"
+198 ;;D^LITHIUM ORDER
+199 ;;R^"860.3:",.02,"E"
+200 ;;D^GENERIC HL7 MESSAGE ARRAY
+201 ;;R^"860.3:","860.31:1",.01,"E"
+202 ;1;
+203 ;