OCXDI01Q ;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 ^OCXDI01R
;
Q
;
DATA ;
;
;;KEY^863.4:^DATE OF BIRTH
;;R^"863.4:",.01,"E"
;;D^DATE OF BIRTH
;;R^"863.4:","863.41:1",.01,"E"
;;D^QUERY
;;R^"863.4:","863.41:1",1,"E"
;;D^Enter DOB
;;R^"863.4:","863.41:13",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:13",1,"E"
;;D^DATE/TIME
;;R^"863.4:","863.41:3",.01,"E"
;;D^HELP MESSAGE
;;R^"863.4:","863.41:3",1,"E"
;;D^Enter the date of birth in any convenient format; e.g., MM/DD/YY
;;R^"863.4:","863.41:5",.01,"E"
;;D^DATE EXACT
;;R^"863.4:","863.41:5",1,"E"
;;D^X
;;R^"863.4:","863.41:7",.01,"E"
;;D^DATE LIMIT
;;R^"863.4:","863.41:7",1,"E"
;;D^-T
;;R^"863.4:","863.41:8",.01,"E"
;;D^DATE MINIMUM
;;R^"863.4:","863.41:8",1,"E"
;;D^1850101
;;R^"863.4:","863.41:9",.01,"E"
;;D^DATE MAXIMUM
;;R^"863.4:","863.41:9",1,"E"
;;D^T
;;EOR^
;;KEY^863.4:^BLOOD TYPE
;;R^"863.4:",.01,"E"
;;D^BLOOD TYPE
;;EOR^
;;KEY^863.4:^DATE OF VISIT
;;R^"863.4:",.01,"E"
;;D^DATE OF VISIT
;;EOR^
;;KEY^863.4:^TYPE OF VISIT
;;R^"863.4:",.01,"E"
;;D^TYPE OF VISIT
;;EOR^
;;KEY^863.4:^SERVICE CATEGORY
;;R^"863.4:",.01,"E"
;;D^SERVICE CATEGORY
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^SOCIAL SECURITY NUMBER
;;R^"863.4:",.01,"E"
;;D^SOCIAL SECURITY NUMBER
;;EOR^
;;KEY^863.4:^CITY
;;R^"863.4:",.01,"E"
;;D^CITY
;;EOR^
;;KEY^863.4:^AGE
;;R^"863.4:",.01,"E"
;;D^AGE
;;R^"863.4:","863.41:2",.01,"E"
;;D^HELP MESSAGE
;;R^"863.4:","863.41:2",1,"E"
;;D^Enter an age.
;;R^"863.4:","863.41:3",.01,"E"
;;D^NUMERIC MINIMUM
;;R^"863.4:","863.41:3",1,"E"
;;D^0
;;R^"863.4:","863.41:4",.01,"E"
;;D^NUMERIC MAXIMUM
;;R^"863.4:","863.41:4",1,"E"
;;D^150
;;R^"863.4:","863.41:5",.01,"E"
;;D^NUMERIC DECIMAL PLACES
;;R^"863.4:","863.41:5",1,"E"
;;D^0
;;R^"863.4:","863.41:6",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:6",1,"E"
;;D^NUMERIC
;;EOR^
;;KEY^863.4:^GENERIC NAME
;;R^"863.4:",.01,"E"
;;D^GENERIC NAME
;;R^"863.4:",.02,"E"
;;D^GNAME
;;R^"863.4:","863.41:1",.01,"E"
;;D^QUERY
;;R^"863.4:","863.41:1",1,"E"
;;D^Enter generic name
;;R^"863.4:","863.41:2",.01,"E"
;;D^HELP MESSAGE
;;R^"863.4:","863.41:2",1,"E"
;;D^Enter the name of your choice. |FTMM HELP|
;;R^"863.4:","863.41:3",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:3",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^HL7 FILLER
;;R^"863.4:",.01,"E"
;;D^HL7 FILLER
;;R^"863.4:",.02,"E"
;;D^HL7FILLR
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^HL7 CONTROL CODE
;;R^"863.4:",.01,"E"
;;D^HL7 CONTROL CODE
;;R^"863.4:",.02,"E"
;;D^HL7CCODE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^HL7 ORDERING PROVIDER
;;R^"863.4:",.01,"E"
;;D^HL7 ORDERING PROVIDER
;;R^"863.4:",.02,"E"
;;D^HL7ORDPROV
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;R^"863.4:","863.41:3",.01,"E"
;;D^FILEMAN FILE NUMBER
;;R^"863.4:","863.41:3",1,"E"
;;D^200
;;EOR^
;;KEY^863.4:^HL7 STATUS
;;R^"863.4:",.01,"E"
;;D^HL7 STATUS
;;R^"863.4:",.02,"E"
;;D^HL7STAT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^HL7 ORDER START D/T
;;R^"863.4:",.01,"E"
;;D^HL7 ORDER START D/T
;;R^"863.4:",.02,"E"
;;D^HL7STDATE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^DATE/TIME
;;EOR^
;;KEY^863.4:^ORDER PRIORITY
;;R^"863.4:",.01,"E"
;;D^ORDER PRIORITY
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^RESULT STATUS
;;R^"863.4:",.01,"E"
;;D^RESULT STATUS
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ABNORM FLAG
;;R^"863.4:",.01,"E"
;;D^ABNORM FLAG
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^START DATE
;;R^"863.4:",.01,"E"
;;D^START DATE
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^DATE/TIME
;;EOR^
;;KEY^863.4:^LAB LOCAL OI
;;R^"863.4:",.01,"E"
;;D^LAB LOCAL OI
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^ORD PLACE DT
;;R^"863.4:",.01,"E"
;;D^ORD PLACE DT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^DATE/TIME
;;EOR^
;;KEY^863.4:^EXAM/ORDER ID
;;R^"863.4:",.01,"E"
;;D^EXAM/ORDER ID
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^COMMENT
;;R^"863.4:",.01,"E"
;;D^COMMENT
;;R^"863.4:","863.41:1",.01,"E"
;;D^DATA TYPE
;;R^"863.4:","863.41:1",1,"E"
;;D^FREE TEXT
;;EOR^
;;KEY^863.4:^CONSULT/REQUEST NAME
;;R^"863.4:",.01,"E"
;;D^CONSULT/REQUEST NAME
;;R^"863.4:","863.41:1",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI01Q 5593 printed Oct 16, 2024@18:24:07 Page 2
OCXDI01Q ;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 ^OCXDI01R
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;KEY^863.4:^DATE OF BIRTH
+3 ;;R^"863.4:",.01,"E"
+4 ;;D^DATE OF BIRTH
+5 ;;R^"863.4:","863.41:1",.01,"E"
+6 ;;D^QUERY
+7 ;;R^"863.4:","863.41:1",1,"E"
+8 ;;D^Enter DOB
+9 ;;R^"863.4:","863.41:13",.01,"E"
+10 ;;D^DATA TYPE
+11 ;;R^"863.4:","863.41:13",1,"E"
+12 ;;D^DATE/TIME
+13 ;;R^"863.4:","863.41:3",.01,"E"
+14 ;;D^HELP MESSAGE
+15 ;;R^"863.4:","863.41:3",1,"E"
+16 ;;D^Enter the date of birth in any convenient format; e.g., MM/DD/YY
+17 ;;R^"863.4:","863.41:5",.01,"E"
+18 ;;D^DATE EXACT
+19 ;;R^"863.4:","863.41:5",1,"E"
+20 ;;D^X
+21 ;;R^"863.4:","863.41:7",.01,"E"
+22 ;;D^DATE LIMIT
+23 ;;R^"863.4:","863.41:7",1,"E"
+24 ;;D^-T
+25 ;;R^"863.4:","863.41:8",.01,"E"
+26 ;;D^DATE MINIMUM
+27 ;;R^"863.4:","863.41:8",1,"E"
+28 ;;D^1850101
+29 ;;R^"863.4:","863.41:9",.01,"E"
+30 ;;D^DATE MAXIMUM
+31 ;;R^"863.4:","863.41:9",1,"E"
+32 ;;D^T
+33 ;;EOR^
+34 ;;KEY^863.4:^BLOOD TYPE
+35 ;;R^"863.4:",.01,"E"
+36 ;;D^BLOOD TYPE
+37 ;;EOR^
+38 ;;KEY^863.4:^DATE OF VISIT
+39 ;;R^"863.4:",.01,"E"
+40 ;;D^DATE OF VISIT
+41 ;;EOR^
+42 ;;KEY^863.4:^TYPE OF VISIT
+43 ;;R^"863.4:",.01,"E"
+44 ;;D^TYPE OF VISIT
+45 ;;EOR^
+46 ;;KEY^863.4:^SERVICE CATEGORY
+47 ;;R^"863.4:",.01,"E"
+48 ;;D^SERVICE CATEGORY
+49 ;;R^"863.4:","863.41:1",.01,"E"
+50 ;;D^DATA TYPE
+51 ;;R^"863.4:","863.41:1",1,"E"
+52 ;;D^FREE TEXT
+53 ;;EOR^
+54 ;;KEY^863.4:^SOCIAL SECURITY NUMBER
+55 ;;R^"863.4:",.01,"E"
+56 ;;D^SOCIAL SECURITY NUMBER
+57 ;;EOR^
+58 ;;KEY^863.4:^CITY
+59 ;;R^"863.4:",.01,"E"
+60 ;;D^CITY
+61 ;;EOR^
+62 ;;KEY^863.4:^AGE
+63 ;;R^"863.4:",.01,"E"
+64 ;;D^AGE
+65 ;;R^"863.4:","863.41:2",.01,"E"
+66 ;;D^HELP MESSAGE
+67 ;;R^"863.4:","863.41:2",1,"E"
+68 ;;D^Enter an age.
+69 ;;R^"863.4:","863.41:3",.01,"E"
+70 ;;D^NUMERIC MINIMUM
+71 ;;R^"863.4:","863.41:3",1,"E"
+72 ;;D^0
+73 ;;R^"863.4:","863.41:4",.01,"E"
+74 ;;D^NUMERIC MAXIMUM
+75 ;;R^"863.4:","863.41:4",1,"E"
+76 ;;D^150
+77 ;;R^"863.4:","863.41:5",.01,"E"
+78 ;;D^NUMERIC DECIMAL PLACES
+79 ;;R^"863.4:","863.41:5",1,"E"
+80 ;;D^0
+81 ;;R^"863.4:","863.41:6",.01,"E"
+82 ;;D^DATA TYPE
+83 ;;R^"863.4:","863.41:6",1,"E"
+84 ;;D^NUMERIC
+85 ;;EOR^
+86 ;;KEY^863.4:^GENERIC NAME
+87 ;;R^"863.4:",.01,"E"
+88 ;;D^GENERIC NAME
+89 ;;R^"863.4:",.02,"E"
+90 ;;D^GNAME
+91 ;;R^"863.4:","863.41:1",.01,"E"
+92 ;;D^QUERY
+93 ;;R^"863.4:","863.41:1",1,"E"
+94 ;;D^Enter generic name
+95 ;;R^"863.4:","863.41:2",.01,"E"
+96 ;;D^HELP MESSAGE
+97 ;;R^"863.4:","863.41:2",1,"E"
+98 ;;D^Enter the name of your choice. |FTMM HELP|
+99 ;;R^"863.4:","863.41:3",.01,"E"
+100 ;;D^DATA TYPE
+101 ;;R^"863.4:","863.41:3",1,"E"
+102 ;;D^FREE TEXT
+103 ;;EOR^
+104 ;;KEY^863.4:^HL7 FILLER
+105 ;;R^"863.4:",.01,"E"
+106 ;;D^HL7 FILLER
+107 ;;R^"863.4:",.02,"E"
+108 ;;D^HL7FILLR
+109 ;;R^"863.4:","863.41:1",.01,"E"
+110 ;;D^DATA TYPE
+111 ;;R^"863.4:","863.41:1",1,"E"
+112 ;;D^FREE TEXT
+113 ;;EOR^
+114 ;;KEY^863.4:^HL7 CONTROL CODE
+115 ;;R^"863.4:",.01,"E"
+116 ;;D^HL7 CONTROL CODE
+117 ;;R^"863.4:",.02,"E"
+118 ;;D^HL7CCODE
+119 ;;R^"863.4:","863.41:1",.01,"E"
+120 ;;D^DATA TYPE
+121 ;;R^"863.4:","863.41:1",1,"E"
+122 ;;D^FREE TEXT
+123 ;;EOR^
+124 ;;KEY^863.4:^HL7 ORDERING PROVIDER
+125 ;;R^"863.4:",.01,"E"
+126 ;;D^HL7 ORDERING PROVIDER
+127 ;;R^"863.4:",.02,"E"
+128 ;;D^HL7ORDPROV
+129 ;;R^"863.4:","863.41:1",.01,"E"
+130 ;;D^DATA TYPE
+131 ;;R^"863.4:","863.41:1",1,"E"
+132 ;;D^FREE TEXT
+133 ;;R^"863.4:","863.41:3",.01,"E"
+134 ;;D^FILEMAN FILE NUMBER
+135 ;;R^"863.4:","863.41:3",1,"E"
+136 ;;D^200
+137 ;;EOR^
+138 ;;KEY^863.4:^HL7 STATUS
+139 ;;R^"863.4:",.01,"E"
+140 ;;D^HL7 STATUS
+141 ;;R^"863.4:",.02,"E"
+142 ;;D^HL7STAT
+143 ;;R^"863.4:","863.41:1",.01,"E"
+144 ;;D^DATA TYPE
+145 ;;R^"863.4:","863.41:1",1,"E"
+146 ;;D^FREE TEXT
+147 ;;EOR^
+148 ;;KEY^863.4:^HL7 ORDER START D/T
+149 ;;R^"863.4:",.01,"E"
+150 ;;D^HL7 ORDER START D/T
+151 ;;R^"863.4:",.02,"E"
+152 ;;D^HL7STDATE
+153 ;;R^"863.4:","863.41:1",.01,"E"
+154 ;;D^DATA TYPE
+155 ;;R^"863.4:","863.41:1",1,"E"
+156 ;;D^DATE/TIME
+157 ;;EOR^
+158 ;;KEY^863.4:^ORDER PRIORITY
+159 ;;R^"863.4:",.01,"E"
+160 ;;D^ORDER PRIORITY
+161 ;;R^"863.4:","863.41:1",.01,"E"
+162 ;;D^DATA TYPE
+163 ;;R^"863.4:","863.41:1",1,"E"
+164 ;;D^FREE TEXT
+165 ;;EOR^
+166 ;;KEY^863.4:^RESULT STATUS
+167 ;;R^"863.4:",.01,"E"
+168 ;;D^RESULT STATUS
+169 ;;R^"863.4:","863.41:1",.01,"E"
+170 ;;D^DATA TYPE
+171 ;;R^"863.4:","863.41:1",1,"E"
+172 ;;D^FREE TEXT
+173 ;;EOR^
+174 ;;KEY^863.4:^ABNORM FLAG
+175 ;;R^"863.4:",.01,"E"
+176 ;;D^ABNORM FLAG
+177 ;;R^"863.4:","863.41:1",.01,"E"
+178 ;;D^DATA TYPE
+179 ;;R^"863.4:","863.41:1",1,"E"
+180 ;;D^FREE TEXT
+181 ;;EOR^
+182 ;;KEY^863.4:^START DATE
+183 ;;R^"863.4:",.01,"E"
+184 ;;D^START DATE
+185 ;;R^"863.4:","863.41:1",.01,"E"
+186 ;;D^DATA TYPE
+187 ;;R^"863.4:","863.41:1",1,"E"
+188 ;;D^DATE/TIME
+189 ;;EOR^
+190 ;;KEY^863.4:^LAB LOCAL OI
+191 ;;R^"863.4:",.01,"E"
+192 ;;D^LAB LOCAL OI
+193 ;;R^"863.4:","863.41:1",.01,"E"
+194 ;;D^DATA TYPE
+195 ;;R^"863.4:","863.41:1",1,"E"
+196 ;;D^FREE TEXT
+197 ;;EOR^
+198 ;;KEY^863.4:^ORD PLACE DT
+199 ;;R^"863.4:",.01,"E"
+200 ;;D^ORD PLACE DT
+201 ;;R^"863.4:","863.41:1",.01,"E"
+202 ;;D^DATA TYPE
+203 ;;R^"863.4:","863.41:1",1,"E"
+204 ;;D^DATE/TIME
+205 ;;EOR^
+206 ;;KEY^863.4:^EXAM/ORDER ID
+207 ;;R^"863.4:",.01,"E"
+208 ;;D^EXAM/ORDER ID
+209 ;;R^"863.4:","863.41:1",.01,"E"
+210 ;;D^DATA TYPE
+211 ;;R^"863.4:","863.41:1",1,"E"
+212 ;;D^FREE TEXT
+213 ;;EOR^
+214 ;;KEY^863.4:^COMMENT
+215 ;;R^"863.4:",.01,"E"
+216 ;;D^COMMENT
+217 ;;R^"863.4:","863.41:1",.01,"E"
+218 ;;D^DATA TYPE
+219 ;;R^"863.4:","863.41:1",1,"E"
+220 ;;D^FREE TEXT
+221 ;;EOR^
+222 ;;KEY^863.4:^CONSULT/REQUEST NAME
+223 ;;R^"863.4:",.01,"E"
+224 ;;D^CONSULT/REQUEST NAME
+225 ;;R^"863.4:","863.41:1",.01,"E"
+226 ;1;
+227 ;