- OCXDI02X ;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 ^OCXDI02Y
- ;
- Q
- ;
- DATA ;
- ;
- ;;D^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^RA
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^CONTROL CODE
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^OH
- ;;EOR^
- ;;KEY^860.3:^RADIOLOGY ORDER CANCELLED
- ;;R^"860.3:",.01,"E"
- ;;D^RADIOLOGY ORDER CANCELLED
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^RA
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^CONTROL CODE
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^OD
- ;;EOR^
- ;;KEY^860.3:^RADIOLOGY ORDER DISCONTINUED
- ;;R^"860.3:",.01,"E"
- ;;D^RADIOLOGY ORDER DISCONTINUED
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^RA
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^CONTROL CODE
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^DC
- ;;EOR^
- ;;KEY^860.3:^HL7 ORC STAT ORDER
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 ORC STAT ORDER
- ;;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^ORDER PRIORITY (ORC)
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^S
- ;;EOR^
- ;;KEY^860.3:^HL7 OBR FINAL RESULTS
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 OBR FINAL RESULTS
- ;;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^REQUEST STATUS (OBR)
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^F
- ;;EOR^
- ;;KEY^860.3:^HL7 OBX FINAL RESULTS
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 OBX FINAL RESULTS
- ;;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^RESULT STATUS (OBX)
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^F
- ;;EOR^
- ;;KEY^860.3:^HL7 MED ORDER CANCELLED
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 MED ORDER CANCELLED
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^STARTS WITH
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^PS
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^CONTROL CODE
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^OC
- ;;EOR^
- ;;KEY^860.3:^HL7 ORDER STATUS CHANGED
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 ORDER STATUS CHANGED
- ;;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^CONTROL CODE
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^SC
- ;;EOR^
- ;;KEY^860.3:^RADIOLOGY EXAM ID IN LONG FORMAT
- ;;R^"860.3:",.01,"E"
- ;;D^RADIOLOGY EXAM ID IN LONG FORMAT
- ;;R^"860.3:",.02,"E"
- ;;D^GENERIC HL7 MESSAGE ARRAY
- ;;EOR^
- ;;KEY^860.3:^RAD RESULTS VERIFIED
- ;;R^"860.3:",.01,"E"
- ;;D^RAD RESULTS VERIFIED
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^RA
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^REQUEST STATUS (OBR)
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^F
- ;;R^"860.3:","860.31:3",.01,"E"
- ;;D^3
- ;;R^"860.3:","860.31:3",1,"E"
- ;;D^ABNORMAL FLAG
- ;;R^"860.3:","860.31:3",2,"E"
- ;;D^NOT EQUAL TO
- ;;R^"860.3:","860.31:3",3,"E"
- ;;D^A
- ;;EOR^
- ;;KEY^860.3:^HL7 LAB REQUEST CANCELLED
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 LAB REQUEST CANCELLED
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^STARTS WITH
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^LR
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;;D^CONTROL CODE
- ;;R^"860.3:","860.31:2",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:2",3,"E"
- ;;D^CA
- ;;EOR^
- ;;KEY^860.3:^HL7 RADIOLOGY RESULT ABNORMAL
- ;;R^"860.3:",.01,"E"
- ;;D^HL7 RADIOLOGY RESULT ABNORMAL
- ;;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^FILLER
- ;;R^"860.3:","860.31:1",2,"E"
- ;;D^EQ FREE TEXT
- ;;R^"860.3:","860.31:1",3,"E"
- ;;D^RA
- ;;R^"860.3:","860.31:2",.01,"E"
- ;;D^2
- ;;R^"860.3:","860.31:2",1,"E"
- ;1;
- ;
- OCXDI02X ;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 ^OCXDI02Y
- +10 ;
- +11 QUIT
- +12 ;
- DATA ;
- +1 ;
- +2 ;;D^FILLER
- +3 ;;R^"860.3:","860.31:1",2,"E"
- +4 ;;D^EQ FREE TEXT
- +5 ;;R^"860.3:","860.31:1",3,"E"
- +6 ;;D^RA
- +7 ;;R^"860.3:","860.31:2",.01,"E"
- +8 ;;D^2
- +9 ;;R^"860.3:","860.31:2",1,"E"
- +10 ;;D^CONTROL CODE
- +11 ;;R^"860.3:","860.31:2",2,"E"
- +12 ;;D^EQ FREE TEXT
- +13 ;;R^"860.3:","860.31:2",3,"E"
- +14 ;;D^OH
- +15 ;;EOR^
- +16 ;;KEY^860.3:^RADIOLOGY ORDER CANCELLED
- +17 ;;R^"860.3:",.01,"E"
- +18 ;;D^RADIOLOGY ORDER CANCELLED
- +19 ;;R^"860.3:",.02,"E"
- +20 ;;D^GENERIC HL7 MESSAGE ARRAY
- +21 ;;R^"860.3:","860.31:1",.01,"E"
- +22 ;;D^1
- +23 ;;R^"860.3:","860.31:1",1,"E"
- +24 ;;D^FILLER
- +25 ;;R^"860.3:","860.31:1",2,"E"
- +26 ;;D^EQ FREE TEXT
- +27 ;;R^"860.3:","860.31:1",3,"E"
- +28 ;;D^RA
- +29 ;;R^"860.3:","860.31:2",.01,"E"
- +30 ;;D^2
- +31 ;;R^"860.3:","860.31:2",1,"E"
- +32 ;;D^CONTROL CODE
- +33 ;;R^"860.3:","860.31:2",2,"E"
- +34 ;;D^EQ FREE TEXT
- +35 ;;R^"860.3:","860.31:2",3,"E"
- +36 ;;D^OD
- +37 ;;EOR^
- +38 ;;KEY^860.3:^RADIOLOGY ORDER DISCONTINUED
- +39 ;;R^"860.3:",.01,"E"
- +40 ;;D^RADIOLOGY ORDER DISCONTINUED
- +41 ;;R^"860.3:",.02,"E"
- +42 ;;D^GENERIC HL7 MESSAGE ARRAY
- +43 ;;R^"860.3:","860.31:1",.01,"E"
- +44 ;;D^1
- +45 ;;R^"860.3:","860.31:1",1,"E"
- +46 ;;D^FILLER
- +47 ;;R^"860.3:","860.31:1",2,"E"
- +48 ;;D^EQ FREE TEXT
- +49 ;;R^"860.3:","860.31:1",3,"E"
- +50 ;;D^RA
- +51 ;;R^"860.3:","860.31:2",.01,"E"
- +52 ;;D^2
- +53 ;;R^"860.3:","860.31:2",1,"E"
- +54 ;;D^CONTROL CODE
- +55 ;;R^"860.3:","860.31:2",2,"E"
- +56 ;;D^EQ FREE TEXT
- +57 ;;R^"860.3:","860.31:2",3,"E"
- +58 ;;D^DC
- +59 ;;EOR^
- +60 ;;KEY^860.3:^HL7 ORC STAT ORDER
- +61 ;;R^"860.3:",.01,"E"
- +62 ;;D^HL7 ORC STAT ORDER
- +63 ;;R^"860.3:",.02,"E"
- +64 ;;D^GENERIC HL7 MESSAGE ARRAY
- +65 ;;R^"860.3:","860.31:1",.01,"E"
- +66 ;;D^1
- +67 ;;R^"860.3:","860.31:1",1,"E"
- +68 ;;D^ORDER PRIORITY (ORC)
- +69 ;;R^"860.3:","860.31:1",2,"E"
- +70 ;;D^EQ FREE TEXT
- +71 ;;R^"860.3:","860.31:1",3,"E"
- +72 ;;D^S
- +73 ;;EOR^
- +74 ;;KEY^860.3:^HL7 OBR FINAL RESULTS
- +75 ;;R^"860.3:",.01,"E"
- +76 ;;D^HL7 OBR FINAL RESULTS
- +77 ;;R^"860.3:",.02,"E"
- +78 ;;D^GENERIC HL7 MESSAGE ARRAY
- +79 ;;R^"860.3:","860.31:1",.01,"E"
- +80 ;;D^1
- +81 ;;R^"860.3:","860.31:1",1,"E"
- +82 ;;D^REQUEST STATUS (OBR)
- +83 ;;R^"860.3:","860.31:1",2,"E"
- +84 ;;D^EQ FREE TEXT
- +85 ;;R^"860.3:","860.31:1",3,"E"
- +86 ;;D^F
- +87 ;;EOR^
- +88 ;;KEY^860.3:^HL7 OBX FINAL RESULTS
- +89 ;;R^"860.3:",.01,"E"
- +90 ;;D^HL7 OBX FINAL RESULTS
- +91 ;;R^"860.3:",.02,"E"
- +92 ;;D^GENERIC HL7 MESSAGE ARRAY
- +93 ;;R^"860.3:","860.31:1",.01,"E"
- +94 ;;D^1
- +95 ;;R^"860.3:","860.31:1",1,"E"
- +96 ;;D^RESULT STATUS (OBX)
- +97 ;;R^"860.3:","860.31:1",2,"E"
- +98 ;;D^EQ FREE TEXT
- +99 ;;R^"860.3:","860.31:1",3,"E"
- +100 ;;D^F
- +101 ;;EOR^
- +102 ;;KEY^860.3:^HL7 MED ORDER CANCELLED
- +103 ;;R^"860.3:",.01,"E"
- +104 ;;D^HL7 MED ORDER CANCELLED
- +105 ;;R^"860.3:",.02,"E"
- +106 ;;D^GENERIC HL7 MESSAGE ARRAY
- +107 ;;R^"860.3:","860.31:1",.01,"E"
- +108 ;;D^1
- +109 ;;R^"860.3:","860.31:1",1,"E"
- +110 ;;D^FILLER
- +111 ;;R^"860.3:","860.31:1",2,"E"
- +112 ;;D^STARTS WITH
- +113 ;;R^"860.3:","860.31:1",3,"E"
- +114 ;;D^PS
- +115 ;;R^"860.3:","860.31:2",.01,"E"
- +116 ;;D^2
- +117 ;;R^"860.3:","860.31:2",1,"E"
- +118 ;;D^CONTROL CODE
- +119 ;;R^"860.3:","860.31:2",2,"E"
- +120 ;;D^EQ FREE TEXT
- +121 ;;R^"860.3:","860.31:2",3,"E"
- +122 ;;D^OC
- +123 ;;EOR^
- +124 ;;KEY^860.3:^HL7 ORDER STATUS CHANGED
- +125 ;;R^"860.3:",.01,"E"
- +126 ;;D^HL7 ORDER STATUS CHANGED
- +127 ;;R^"860.3:",.02,"E"
- +128 ;;D^GENERIC HL7 MESSAGE ARRAY
- +129 ;;R^"860.3:","860.31:1",.01,"E"
- +130 ;;D^1
- +131 ;;R^"860.3:","860.31:1",1,"E"
- +132 ;;D^CONTROL CODE
- +133 ;;R^"860.3:","860.31:1",2,"E"
- +134 ;;D^EQ FREE TEXT
- +135 ;;R^"860.3:","860.31:1",3,"E"
- +136 ;;D^SC
- +137 ;;EOR^
- +138 ;;KEY^860.3:^RADIOLOGY EXAM ID IN LONG FORMAT
- +139 ;;R^"860.3:",.01,"E"
- +140 ;;D^RADIOLOGY EXAM ID IN LONG FORMAT
- +141 ;;R^"860.3:",.02,"E"
- +142 ;;D^GENERIC HL7 MESSAGE ARRAY
- +143 ;;EOR^
- +144 ;;KEY^860.3:^RAD RESULTS VERIFIED
- +145 ;;R^"860.3:",.01,"E"
- +146 ;;D^RAD RESULTS VERIFIED
- +147 ;;R^"860.3:",.02,"E"
- +148 ;;D^GENERIC HL7 MESSAGE ARRAY
- +149 ;;R^"860.3:","860.31:1",.01,"E"
- +150 ;;D^1
- +151 ;;R^"860.3:","860.31:1",1,"E"
- +152 ;;D^FILLER
- +153 ;;R^"860.3:","860.31:1",2,"E"
- +154 ;;D^EQ FREE TEXT
- +155 ;;R^"860.3:","860.31:1",3,"E"
- +156 ;;D^RA
- +157 ;;R^"860.3:","860.31:2",.01,"E"
- +158 ;;D^2
- +159 ;;R^"860.3:","860.31:2",1,"E"
- +160 ;;D^REQUEST STATUS (OBR)
- +161 ;;R^"860.3:","860.31:2",2,"E"
- +162 ;;D^EQ FREE TEXT
- +163 ;;R^"860.3:","860.31:2",3,"E"
- +164 ;;D^F
- +165 ;;R^"860.3:","860.31:3",.01,"E"
- +166 ;;D^3
- +167 ;;R^"860.3:","860.31:3",1,"E"
- +168 ;;D^ABNORMAL FLAG
- +169 ;;R^"860.3:","860.31:3",2,"E"
- +170 ;;D^NOT EQUAL TO
- +171 ;;R^"860.3:","860.31:3",3,"E"
- +172 ;;D^A
- +173 ;;EOR^
- +174 ;;KEY^860.3:^HL7 LAB REQUEST CANCELLED
- +175 ;;R^"860.3:",.01,"E"
- +176 ;;D^HL7 LAB REQUEST CANCELLED
- +177 ;;R^"860.3:",.02,"E"
- +178 ;;D^GENERIC HL7 MESSAGE ARRAY
- +179 ;;R^"860.3:","860.31:1",.01,"E"
- +180 ;;D^1
- +181 ;;R^"860.3:","860.31:1",1,"E"
- +182 ;;D^FILLER
- +183 ;;R^"860.3:","860.31:1",2,"E"
- +184 ;;D^STARTS WITH
- +185 ;;R^"860.3:","860.31:1",3,"E"
- +186 ;;D^LR
- +187 ;;R^"860.3:","860.31:2",.01,"E"
- +188 ;;D^2
- +189 ;;R^"860.3:","860.31:2",1,"E"
- +190 ;;D^CONTROL CODE
- +191 ;;R^"860.3:","860.31:2",2,"E"
- +192 ;;D^EQ FREE TEXT
- +193 ;;R^"860.3:","860.31:2",3,"E"
- +194 ;;D^CA
- +195 ;;EOR^
- +196 ;;KEY^860.3:^HL7 RADIOLOGY RESULT ABNORMAL
- +197 ;;R^"860.3:",.01,"E"
- +198 ;;D^HL7 RADIOLOGY RESULT ABNORMAL
- +199 ;;R^"860.3:",.02,"E"
- +200 ;;D^GENERIC HL7 MESSAGE ARRAY
- +201 ;;R^"860.3:","860.31:1",.01,"E"
- +202 ;;D^1
- +203 ;;R^"860.3:","860.31:1",1,"E"
- +204 ;;D^FILLER
- +205 ;;R^"860.3:","860.31:1",2,"E"
- +206 ;;D^EQ FREE TEXT
- +207 ;;R^"860.3:","860.31:1",3,"E"
- +208 ;;D^RA
- +209 ;;R^"860.3:","860.31:2",.01,"E"
- +210 ;;D^2
- +211 ;;R^"860.3:","860.31:2",1,"E"
- +212 ;1;
- +213 ;