OCXDI028 ;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 ^OCXDI029
;
Q
;
DATA ;
;
;;D^
;;R^"863.3:",.05,"E"
;;D^LAB TEST PRINT NAME
;;R^"863.3:",.06,"E"
;;D^997
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^PRINTNAM^ORQQLR1(|LAB TEST ID|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;EOR^
;;KEY^863.3:^ORDER FLAGGED FOR RESULTS
;;R^"863.3:",.01,"E"
;;D^ORDER FLAGGED FOR RESULTS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^99
;;R^"863.3:",.05,"E"
;;D^ORDER FLAGGED
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RSLTFLG^ORQOR2(|ORDER NUMBER|)
;;EOR^
;;KEY^863.3:^CURRENT_DATE/TIME
;;R^"863.3:",.01,"E"
;;D^CURRENT_DATE/TIME
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^DATE/TIME
;;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^INT2DT($$DT2INT("N"),0)
;;EOR^
;;KEY^863.3:^PATIENT.REC_CREATININE_RESULT
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CREATININE_RESULT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SERUM CREATININE VALUE
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECCREAT(|PATIENT IEN|,60)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^3
;;EOR^
;;KEY^863.3:^PATIENT.REC_CREATININE_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CREATININE_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SERUM CREATININE TEXT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECCREAT(|PATIENT IEN|,60)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.REC_CREATININE_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CREATININE_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CREATININE FLAG
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECCREAT(|PATIENT IEN|,60)
;;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.WBC_W/IN_13_DAYS
;;R^"863.3:",.01,"E"
;;D^PATIENT.WBC_W/IN_13_DAYS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECWBC(|PATIENT IEN|,13)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.WBC_W/IN_13_DAYS_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.WBC_W/IN_13_DAYS_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^WBC W/IN 13 DAYS
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECWBC(|PATIENT IEN|,13)
;;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.RECENT WBC RESULT
;;R^"863.3:",.01,"E"
;;D^PATIENT.RECENT WBC RESULT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^RECENT WBC RESULT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECWBC(|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^2
;;EOR^
;;KEY^863.3:^PATIENT.REC_BAR_ORDER_STATUS
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_BAR_ORDER_STATUS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BARIUM ORDER STATUS
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECBARST(|PATIENT IEN|,48)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.REC_CHOLEC_ORD_STATUS
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CHOLEC_ORD_STATUS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CHOLECYSTOGRAM ORDER STATUS
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECCHST(|PATIENT IEN|,7)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.POLYPHARMACY
;;R^"863.3:",.01,"E"
;;D^PATIENT.POLYPHARMACY
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^POLYPHARMACY
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^POLYRX^ORKPS(|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.GLUCOPHAGE_CREAT_FLAG
;;R^"863.3:",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI028 5387 printed Oct 16, 2024@18:24:24 Page 2
OCXDI028 ;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 ^OCXDI029
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^
+3 ;;R^"863.3:",.05,"E"
+4 ;;D^LAB TEST PRINT NAME
+5 ;;R^"863.3:",.06,"E"
+6 ;;D^997
+7 ;;R^"863.3:","863.32:1",.01,"E"
+8 ;;D^OCXO EXTERNAL FUNCTION CALL
+9 ;;R^"863.3:","863.32:1",1,"E"
+10 ;;D^PRINTNAM^ORQQLR1(|LAB TEST ID|)
+11 ;;R^"863.3:","863.32:2",.01,"E"
+12 ;;D^OCXO UP-ARROW PIECE NUMBER
+13 ;;EOR^
+14 ;;KEY^863.3:^ORDER FLAGGED FOR RESULTS
+15 ;;R^"863.3:",.01,"E"
+16 ;;D^ORDER FLAGGED FOR RESULTS
+17 ;;R^"863.3:",.02,"E"
+18 ;;D^PATIENT
+19 ;;R^"863.3:",.04,"E"
+20 ;;D^99
+21 ;;R^"863.3:",.05,"E"
+22 ;;D^ORDER FLAGGED
+23 ;;R^"863.3:",.06,"E"
+24 ;;D^99
+25 ;;R^"863.3:","863.32:1",.01,"E"
+26 ;;D^OCXO EXTERNAL FUNCTION CALL
+27 ;;R^"863.3:","863.32:1",1,"E"
+28 ;;D^RSLTFLG^ORQOR2(|ORDER NUMBER|)
+29 ;;EOR^
+30 ;;KEY^863.3:^CURRENT_DATE/TIME
+31 ;;R^"863.3:",.01,"E"
+32 ;;D^CURRENT_DATE/TIME
+33 ;;R^"863.3:",.02,"E"
+34 ;;D^PATIENT
+35 ;;R^"863.3:",.05,"E"
+36 ;;D^DATE/TIME
+37 ;;R^"863.3:",.06,"E"
+38 ;;D^999
+39 ;;R^"863.3:","863.32:1",.01,"E"
+40 ;;D^OCXO EXTERNAL FUNCTION CALL
+41 ;;R^"863.3:","863.32:1",1,"E"
+42 ;;D^INT2DT($$DT2INT("N"),0)
+43 ;;EOR^
+44 ;;KEY^863.3:^PATIENT.REC_CREATININE_RESULT
+45 ;;R^"863.3:",.01,"E"
+46 ;;D^PATIENT.REC_CREATININE_RESULT
+47 ;;R^"863.3:",.02,"E"
+48 ;;D^PATIENT
+49 ;;R^"863.3:",.05,"E"
+50 ;;D^SERUM CREATININE VALUE
+51 ;;R^"863.3:","863.32:1",.01,"E"
+52 ;;D^OCXO EXTERNAL FUNCTION CALL
+53 ;;R^"863.3:","863.32:1",1,"E"
+54 ;;D^RECCREAT(|PATIENT IEN|,60)
+55 ;;R^"863.3:","863.32:2",.01,"E"
+56 ;;D^OCXO UP-ARROW PIECE NUMBER
+57 ;;R^"863.3:","863.32:2",1,"E"
+58 ;;D^3
+59 ;;EOR^
+60 ;;KEY^863.3:^PATIENT.REC_CREATININE_TEXT
+61 ;;R^"863.3:",.01,"E"
+62 ;;D^PATIENT.REC_CREATININE_TEXT
+63 ;;R^"863.3:",.02,"E"
+64 ;;D^PATIENT
+65 ;;R^"863.3:",.05,"E"
+66 ;;D^SERUM CREATININE TEXT
+67 ;;R^"863.3:","863.32:1",.01,"E"
+68 ;;D^OCXO EXTERNAL FUNCTION CALL
+69 ;;R^"863.3:","863.32:1",1,"E"
+70 ;;D^RECCREAT(|PATIENT IEN|,60)
+71 ;;R^"863.3:","863.32:2",.01,"E"
+72 ;;D^OCXO UP-ARROW PIECE NUMBER
+73 ;;R^"863.3:","863.32:2",1,"E"
+74 ;;D^2
+75 ;;EOR^
+76 ;;KEY^863.3:^PATIENT.REC_CREATININE_FLAG
+77 ;;R^"863.3:",.01,"E"
+78 ;;D^PATIENT.REC_CREATININE_FLAG
+79 ;;R^"863.3:",.02,"E"
+80 ;;D^PATIENT
+81 ;;R^"863.3:",.05,"E"
+82 ;;D^CREATININE FLAG
+83 ;;R^"863.3:","863.32:1",.01,"E"
+84 ;;D^OCXO EXTERNAL FUNCTION CALL
+85 ;;R^"863.3:","863.32:1",1,"E"
+86 ;;D^RECCREAT(|PATIENT IEN|,60)
+87 ;;R^"863.3:","863.32:2",.01,"E"
+88 ;;D^OCXO UP-ARROW PIECE NUMBER
+89 ;;R^"863.3:","863.32:2",1,"E"
+90 ;;D^1
+91 ;;EOR^
+92 ;;KEY^863.3:^PATIENT.WBC_W/IN_13_DAYS
+93 ;;R^"863.3:",.01,"E"
+94 ;;D^PATIENT.WBC_W/IN_13_DAYS
+95 ;;R^"863.3:",.02,"E"
+96 ;;D^PATIENT
+97 ;;R^"863.3:","863.32:1",.01,"E"
+98 ;;D^OCXO EXTERNAL FUNCTION CALL
+99 ;;R^"863.3:","863.32:1",1,"E"
+100 ;;D^RECWBC(|PATIENT IEN|,13)
+101 ;;R^"863.3:","863.32:2",.01,"E"
+102 ;;D^OCXO UP-ARROW PIECE NUMBER
+103 ;;R^"863.3:","863.32:2",1,"E"
+104 ;;D^2
+105 ;;EOR^
+106 ;;KEY^863.3:^PATIENT.WBC_W/IN_13_DAYS_FLAG
+107 ;;R^"863.3:",.01,"E"
+108 ;;D^PATIENT.WBC_W/IN_13_DAYS_FLAG
+109 ;;R^"863.3:",.02,"E"
+110 ;;D^PATIENT
+111 ;;R^"863.3:",.05,"E"
+112 ;;D^WBC W/IN 13 DAYS
+113 ;;R^"863.3:","863.32:1",.01,"E"
+114 ;;D^OCXO EXTERNAL FUNCTION CALL
+115 ;;R^"863.3:","863.32:1",1,"E"
+116 ;;D^RECWBC(|PATIENT IEN|,13)
+117 ;;R^"863.3:","863.32:2",.01,"E"
+118 ;;D^OCXO UP-ARROW PIECE NUMBER
+119 ;;R^"863.3:","863.32:2",1,"E"
+120 ;;D^1
+121 ;;EOR^
+122 ;;KEY^863.3:^PATIENT.RECENT WBC RESULT
+123 ;;R^"863.3:",.01,"E"
+124 ;;D^PATIENT.RECENT WBC RESULT
+125 ;;R^"863.3:",.02,"E"
+126 ;;D^PATIENT
+127 ;;R^"863.3:",.05,"E"
+128 ;;D^RECENT WBC RESULT
+129 ;;R^"863.3:","863.32:1",.01,"E"
+130 ;;D^OCXO EXTERNAL FUNCTION CALL
+131 ;;R^"863.3:","863.32:1",1,"E"
+132 ;;D^RECWBC(|PATIENT IEN|,"")
+133 ;;R^"863.3:","863.32:2",.01,"E"
+134 ;;D^OCXO UP-ARROW PIECE NUMBER
+135 ;;R^"863.3:","863.32:2",1,"E"
+136 ;;D^2
+137 ;;EOR^
+138 ;;KEY^863.3:^PATIENT.REC_BAR_ORDER_STATUS
+139 ;;R^"863.3:",.01,"E"
+140 ;;D^PATIENT.REC_BAR_ORDER_STATUS
+141 ;;R^"863.3:",.02,"E"
+142 ;;D^PATIENT
+143 ;;R^"863.3:",.05,"E"
+144 ;;D^BARIUM ORDER STATUS
+145 ;;R^"863.3:","863.32:1",.01,"E"
+146 ;;D^OCXO EXTERNAL FUNCTION CALL
+147 ;;R^"863.3:","863.32:1",1,"E"
+148 ;;D^RECBARST(|PATIENT IEN|,48)
+149 ;;R^"863.3:","863.32:2",.01,"E"
+150 ;;D^OCXO UP-ARROW PIECE NUMBER
+151 ;;R^"863.3:","863.32:2",1,"E"
+152 ;;D^2
+153 ;;EOR^
+154 ;;KEY^863.3:^PATIENT.REC_CHOLEC_ORD_STATUS
+155 ;;R^"863.3:",.01,"E"
+156 ;;D^PATIENT.REC_CHOLEC_ORD_STATUS
+157 ;;R^"863.3:",.02,"E"
+158 ;;D^PATIENT
+159 ;;R^"863.3:",.05,"E"
+160 ;;D^CHOLECYSTOGRAM ORDER STATUS
+161 ;;R^"863.3:","863.32:1",.01,"E"
+162 ;;D^OCXO EXTERNAL FUNCTION CALL
+163 ;;R^"863.3:","863.32:1",1,"E"
+164 ;;D^RECCHST(|PATIENT IEN|,7)
+165 ;;R^"863.3:","863.32:2",.01,"E"
+166 ;;D^OCXO UP-ARROW PIECE NUMBER
+167 ;;R^"863.3:","863.32:2",1,"E"
+168 ;;D^2
+169 ;;EOR^
+170 ;;KEY^863.3:^PATIENT.POLYPHARMACY
+171 ;;R^"863.3:",.01,"E"
+172 ;;D^PATIENT.POLYPHARMACY
+173 ;;R^"863.3:",.02,"E"
+174 ;;D^PATIENT
+175 ;;R^"863.3:",.05,"E"
+176 ;;D^POLYPHARMACY
+177 ;;R^"863.3:","863.32:1",.01,"E"
+178 ;;D^OCXO EXTERNAL FUNCTION CALL
+179 ;;R^"863.3:","863.32:1",1,"E"
+180 ;;D^POLYRX^ORKPS(|PATIENT IEN|)
+181 ;;R^"863.3:","863.32:2",.01,"E"
+182 ;;D^OCXO UP-ARROW PIECE NUMBER
+183 ;;R^"863.3:","863.32:2",1,"E"
+184 ;;D^1
+185 ;;EOR^
+186 ;;KEY^863.3:^PATIENT.GLUCOPHAGE_CREAT_FLAG
+187 ;;R^"863.3:",.01,"E"
+188 ;1;
+189 ;