OCXDI022 ;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 ^OCXDI023
;
Q
;
DATA ;
;
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^ORDER MODE
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSM
;;EOR^
;;KEY^863.3:^PATIENT.OPS_LOC_COD_SYS
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_LOC_COD_SYS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^LOCAL CODING SYSTEM
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^6
;;EOR^
;;KEY^863.3:^PATIENT.HL7_DIET_LOCAL_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_DIET_LOCAL_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^HL7 DIET LOCAL OI TEXT
;;R^"863.3:",.06,"E"
;;D^1
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("ODS",3)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^5
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.RESULT_STATUS_OBR
;;R^"863.3:",.01,"E"
;;D^PATIENT.RESULT_STATUS_OBR
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^RESULT STATUS OBR
;;R^"863.3:",.06,"E"
;;D^1
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBR",25)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.DECEASED
;;R^"863.3:",.01,"E"
;;D^PATIENT.DECEASED
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^DECEASED
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;EOR^
;;KEY^863.3:^PATIENT.TRANS_TYPE_CURRENT
;;R^"863.3:",.01,"E"
;;D^PATIENT.TRANS_TYPE_CURRENT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^TRANSACTION TYPE
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^DGPMA
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^4
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:3",1,"E"
;;D^405.1
;;EOR^
;;KEY^863.3:^PATIENT.SITE_FLAGGED_ORDER
;;R^"863.3:",.01,"E"
;;D^PATIENT.SITE_FLAGGED_ORDER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SITE FLAG ORDER
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^SITEORD^ORB3F1(|ORDER NUMBER|)
;;EOR^
;;KEY^863.3:^PATIENT.SITE_FLAGGED_RESULT
;;R^"863.3:",.01,"E"
;;D^PATIENT.SITE_FLAGGED_RESULT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SITE FLAG RESULT
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^SITERES^ORB3F1(|ORDER NUMBER|)
;;EOR^
;;KEY^863.3:^PATIENT.HL7_LOCAL_OI_IEN
;;R^"863.3:",.01,"E"
;;D^PATIENT.HL7_LOCAL_OI_IEN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^HL7 LOCAL OI IEN
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBR",4)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^4
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;EOR^
;;KEY^863.3:^PATIENT.RAD_CON_MEDIA
;;R^"863.3:",.01,"E"
;;D^PATIENT.RAD_CON_MEDIA
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CONTRAST MEDIA FLAG
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CM(|ORDERABLE ITEM IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_RENAL_ABNORM_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^RENAL TEST ABNORMAL FLAG
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^ABREN(|PATIENT IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_RES
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_RENAL_ABNORM_RES
;1;
;
OCXDI022 ;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 ^OCXDI023
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^OPS
+3 ;;R^"863.3:",.05,"E"
+4 ;;D^ORDER MODE
+5 ;;R^"863.3:",.06,"E"
+6 ;;D^99
+7 ;;R^"863.3:","863.32:1",.01,"E"
+8 ;;D^OCXO VARIABLE NAME
+9 ;;R^"863.3:","863.32:1",1,"E"
+10 ;;D^OCXPSM
+11 ;;EOR^
+12 ;;KEY^863.3:^PATIENT.OPS_LOC_COD_SYS
+13 ;;R^"863.3:",.01,"E"
+14 ;;D^PATIENT.OPS_LOC_COD_SYS
+15 ;;R^"863.3:",.02,"E"
+16 ;;D^PATIENT
+17 ;;R^"863.3:",.04,"E"
+18 ;;D^OPS
+19 ;;R^"863.3:",.05,"E"
+20 ;;D^LOCAL CODING SYSTEM
+21 ;;R^"863.3:",.06,"E"
+22 ;;D^99
+23 ;;R^"863.3:","863.32:1",.01,"E"
+24 ;;D^OCXO VARIABLE NAME
+25 ;;R^"863.3:","863.32:1",1,"E"
+26 ;;D^OCXPSD
+27 ;;R^"863.3:","863.32:2",.01,"E"
+28 ;;D^OCXO VT-BAR PIECE NUMBER
+29 ;;R^"863.3:","863.32:2",1,"E"
+30 ;;D^2
+31 ;;R^"863.3:","863.32:3",.01,"E"
+32 ;;D^OCXO UP-ARROW PIECE NUMBER
+33 ;;R^"863.3:","863.32:3",1,"E"
+34 ;;D^6
+35 ;;EOR^
+36 ;;KEY^863.3:^PATIENT.HL7_DIET_LOCAL_TEXT
+37 ;;R^"863.3:",.01,"E"
+38 ;;D^PATIENT.HL7_DIET_LOCAL_TEXT
+39 ;;R^"863.3:",.02,"E"
+40 ;;D^PATIENT
+41 ;;R^"863.3:",.05,"E"
+42 ;;D^HL7 DIET LOCAL OI TEXT
+43 ;;R^"863.3:",.06,"E"
+44 ;;D^1
+45 ;;R^"863.3:","863.32:1",.01,"E"
+46 ;;D^OCXO VARIABLE NAME
+47 ;;R^"863.3:","863.32:1",1,"E"
+48 ;;D^OCXODATA("ODS",3)
+49 ;;R^"863.3:","863.32:2",.01,"E"
+50 ;;D^OCXO VT-BAR PIECE NUMBER
+51 ;;R^"863.3:","863.32:3",.01,"E"
+52 ;;D^OCXO UP-ARROW PIECE NUMBER
+53 ;;R^"863.3:","863.32:3",1,"E"
+54 ;;D^5
+55 ;;R^"863.3:","863.32:4",.01,"E"
+56 ;;D^OCXO HL7 SEGMENT ID
+57 ;;EOR^
+58 ;;KEY^863.3:^PATIENT.RESULT_STATUS_OBR
+59 ;;R^"863.3:",.01,"E"
+60 ;;D^PATIENT.RESULT_STATUS_OBR
+61 ;;R^"863.3:",.02,"E"
+62 ;;D^PATIENT
+63 ;;R^"863.3:",.05,"E"
+64 ;;D^RESULT STATUS OBR
+65 ;;R^"863.3:",.06,"E"
+66 ;;D^1
+67 ;;R^"863.3:","863.32:1",.01,"E"
+68 ;;D^OCXO VARIABLE NAME
+69 ;;R^"863.3:","863.32:1",1,"E"
+70 ;;D^OCXODATA("OBR",25)
+71 ;;R^"863.3:","863.32:2",.01,"E"
+72 ;;D^OCXO VT-BAR PIECE NUMBER
+73 ;;R^"863.3:","863.32:3",.01,"E"
+74 ;;D^OCXO UP-ARROW PIECE NUMBER
+75 ;;R^"863.3:","863.32:3",1,"E"
+76 ;;D^1
+77 ;;R^"863.3:","863.32:4",.01,"E"
+78 ;;D^OCXO HL7 SEGMENT ID
+79 ;;EOR^
+80 ;;KEY^863.3:^PATIENT.DECEASED
+81 ;;R^"863.3:",.01,"E"
+82 ;;D^PATIENT.DECEASED
+83 ;;R^"863.3:",.02,"E"
+84 ;;D^PATIENT
+85 ;;R^"863.3:",.05,"E"
+86 ;;D^DECEASED
+87 ;;R^"863.3:",.06,"E"
+88 ;;D^999
+89 ;;R^"863.3:","863.32:1",.01,"E"
+90 ;;D^OCXO EXTERNAL FUNCTION CALL
+91 ;;EOR^
+92 ;;KEY^863.3:^PATIENT.TRANS_TYPE_CURRENT
+93 ;;R^"863.3:",.01,"E"
+94 ;;D^PATIENT.TRANS_TYPE_CURRENT
+95 ;;R^"863.3:",.02,"E"
+96 ;;D^PATIENT
+97 ;;R^"863.3:",.05,"E"
+98 ;;D^TRANSACTION TYPE
+99 ;;R^"863.3:",.06,"E"
+100 ;;D^999
+101 ;;R^"863.3:","863.32:1",.01,"E"
+102 ;;D^OCXO VARIABLE NAME
+103 ;;R^"863.3:","863.32:1",1,"E"
+104 ;;D^DGPMA
+105 ;;R^"863.3:","863.32:2",.01,"E"
+106 ;;D^OCXO UP-ARROW PIECE NUMBER
+107 ;;R^"863.3:","863.32:2",1,"E"
+108 ;;D^4
+109 ;;R^"863.3:","863.32:3",.01,"E"
+110 ;;D^OCXO FILE POINTER
+111 ;;R^"863.3:","863.32:3",1,"E"
+112 ;;D^405.1
+113 ;;EOR^
+114 ;;KEY^863.3:^PATIENT.SITE_FLAGGED_ORDER
+115 ;;R^"863.3:",.01,"E"
+116 ;;D^PATIENT.SITE_FLAGGED_ORDER
+117 ;;R^"863.3:",.02,"E"
+118 ;;D^PATIENT
+119 ;;R^"863.3:",.05,"E"
+120 ;;D^SITE FLAG ORDER
+121 ;;R^"863.3:",.06,"E"
+122 ;;D^999
+123 ;;R^"863.3:","863.32:1",.01,"E"
+124 ;;D^OCXO EXTERNAL FUNCTION CALL
+125 ;;R^"863.3:","863.32:1",1,"E"
+126 ;;D^SITEORD^ORB3F1(|ORDER NUMBER|)
+127 ;;EOR^
+128 ;;KEY^863.3:^PATIENT.SITE_FLAGGED_RESULT
+129 ;;R^"863.3:",.01,"E"
+130 ;;D^PATIENT.SITE_FLAGGED_RESULT
+131 ;;R^"863.3:",.02,"E"
+132 ;;D^PATIENT
+133 ;;R^"863.3:",.05,"E"
+134 ;;D^SITE FLAG RESULT
+135 ;;R^"863.3:",.06,"E"
+136 ;;D^999
+137 ;;R^"863.3:","863.32:1",.01,"E"
+138 ;;D^OCXO EXTERNAL FUNCTION CALL
+139 ;;R^"863.3:","863.32:1",1,"E"
+140 ;;D^SITERES^ORB3F1(|ORDER NUMBER|)
+141 ;;EOR^
+142 ;;KEY^863.3:^PATIENT.HL7_LOCAL_OI_IEN
+143 ;;R^"863.3:",.01,"E"
+144 ;;D^PATIENT.HL7_LOCAL_OI_IEN
+145 ;;R^"863.3:",.02,"E"
+146 ;;D^PATIENT
+147 ;;R^"863.3:",.05,"E"
+148 ;;D^HL7 LOCAL OI IEN
+149 ;;R^"863.3:",.06,"E"
+150 ;;D^999
+151 ;;R^"863.3:","863.32:1",.01,"E"
+152 ;;D^OCXO VARIABLE NAME
+153 ;;R^"863.3:","863.32:1",1,"E"
+154 ;;D^OCXODATA("OBR",4)
+155 ;;R^"863.3:","863.32:2",.01,"E"
+156 ;;D^OCXO VT-BAR PIECE NUMBER
+157 ;;R^"863.3:","863.32:3",.01,"E"
+158 ;;D^OCXO UP-ARROW PIECE NUMBER
+159 ;;R^"863.3:","863.32:3",1,"E"
+160 ;;D^4
+161 ;;R^"863.3:","863.32:4",.01,"E"
+162 ;;D^OCXO HL7 SEGMENT ID
+163 ;;EOR^
+164 ;;KEY^863.3:^PATIENT.RAD_CON_MEDIA
+165 ;;R^"863.3:",.01,"E"
+166 ;;D^PATIENT.RAD_CON_MEDIA
+167 ;;R^"863.3:",.02,"E"
+168 ;;D^PATIENT
+169 ;;R^"863.3:",.05,"E"
+170 ;;D^CONTRAST MEDIA FLAG
+171 ;;R^"863.3:",.06,"E"
+172 ;;D^999
+173 ;;R^"863.3:","863.32:1",.01,"E"
+174 ;;D^OCXO EXTERNAL FUNCTION CALL
+175 ;;R^"863.3:","863.32:1",1,"E"
+176 ;;D^CM(|ORDERABLE ITEM IEN|)
+177 ;;R^"863.3:","863.32:2",.01,"E"
+178 ;;D^OCXO UP-ARROW PIECE NUMBER
+179 ;;R^"863.3:","863.32:2",1,"E"
+180 ;;D^1
+181 ;;EOR^
+182 ;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_FLAG
+183 ;;R^"863.3:",.01,"E"
+184 ;;D^PATIENT.REC_RENAL_ABNORM_FLAG
+185 ;;R^"863.3:",.02,"E"
+186 ;;D^PATIENT
+187 ;;R^"863.3:",.05,"E"
+188 ;;D^RENAL TEST ABNORMAL FLAG
+189 ;;R^"863.3:",.06,"E"
+190 ;;D^999
+191 ;;R^"863.3:","863.32:1",.01,"E"
+192 ;;D^OCXO EXTERNAL FUNCTION CALL
+193 ;;R^"863.3:","863.32:1",1,"E"
+194 ;;D^ABREN(|PATIENT IEN|)
+195 ;;R^"863.3:","863.32:2",.01,"E"
+196 ;;D^OCXO UP-ARROW PIECE NUMBER
+197 ;;R^"863.3:","863.32:2",1,"E"
+198 ;;D^1
+199 ;;EOR^
+200 ;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_RES
+201 ;;R^"863.3:",.01,"E"
+202 ;;D^PATIENT.REC_RENAL_ABNORM_RES
+203 ;1;
+204 ;