OCXDI023 ;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 ^OCXDI024
;
Q
;
DATA ;
;
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BIOCHEMICAL RESULTS
;;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^2
;;EOR^
;;KEY^863.3:^PATIENT.CHOLE_PROC_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.CHOLE_PROC_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CHOLECYSGRAM FLAG
;;R^"863.3:",.06,"E"
;;D^9999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CH(|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_CHOLEC_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CHOLEC_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^RECENT CHOLE 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^RECCH(|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^1
;;EOR^
;;KEY^863.3:^PATIENT.REC_CHOLEC_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_CHOLEC_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CHOLECYSTOGRAM TEXT
;;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^RECCH(|PATIENT IEN|,7)
;;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^3
;;EOR^
;;KEY^863.3:^PATIENT.AGE
;;R^"863.3:",.01,"E"
;;D^PATIENT.AGE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^AGE
;;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^AGE^ORQPTQ4(|PATIENT IEN|)
;;EOR^
;;KEY^863.3:^PATIENT.LAB_RESULTS
;;R^"863.3:",.01,"E"
;;D^PATIENT.LAB_RESULTS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^LAB RESULTS
;;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^FLAB(|PATIENT IEN|,|LTNC|,"")
;;EOR^
;;KEY^863.3:^PATIENT.REN_LAB_RES
;;R^"863.3:",.01,"E"
;;D^PATIENT.REN_LAB_RES
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^LAB RESULTS
;;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^FLAB(|PATIENT IEN|,"SERUM CREATININE^SERUM UREA NITROGEN","SERUM SPECIMEN")
;;EOR^
;;KEY^863.3:^PATIENT.CONT_MED_ALGY
;;R^"863.3:",.01,"E"
;;D^PATIENT.CONT_MED_ALGY
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CONTRAST MEDIA ALLERGY FLAG
;;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^ORCHK^GMRAOR(|PATIENT IEN|,"CM","")
;;EOR^
;;KEY^863.3:^PATIENT.CON_MEDIA_TRANS
;;R^"863.3:",.01,"E"
;;D^PATIENT.CON_MEDIA_TRANS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CONTRAST MEDIA
;;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^CONTRANS(|CONTRAST MEDIA CODE|)
;;EOR^
;;KEY^863.3:^PATIENT.CONTR_MED_CODE
;;R^"863.3:",.01,"E"
;;D^PATIENT.CONTR_MED_CODE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CONTRAST MEDIA CODE
;;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^CM^ORQQRA(|ORDERABLE ITEM IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;EOR^
;;KEY^863.3:^PATIENT.MACPLT
;;R^"863.3:",.01,"E"
;;D^PATIENT.MACPLT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^MACPLT
;;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^MTSTF("PROTHROMBIN TIME,PARTIAL THROMBOPLASTIN TIME")
;;EOR^
;;KEY^863.3:^PATIENT.REC_BA_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_BA_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BARIUM FLAG
;;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^RECBAR(|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^1
;;EOR^
;;KEY^863.3:^PATIENT.REC_BAR_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_BAR_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BARIUM TEXT
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI023 5479 printed Oct 16, 2024@18:24:19 Page 2
OCXDI023 ;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 ^OCXDI024
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.3:",.02,"E"
+3 ;;D^PATIENT
+4 ;;R^"863.3:",.05,"E"
+5 ;;D^BIOCHEMICAL RESULTS
+6 ;;R^"863.3:",.06,"E"
+7 ;;D^999
+8 ;;R^"863.3:","863.32:1",.01,"E"
+9 ;;D^OCXO EXTERNAL FUNCTION CALL
+10 ;;R^"863.3:","863.32:1",1,"E"
+11 ;;D^ABREN(|PATIENT IEN|)
+12 ;;R^"863.3:","863.32:2",.01,"E"
+13 ;;D^OCXO UP-ARROW PIECE NUMBER
+14 ;;R^"863.3:","863.32:2",1,"E"
+15 ;;D^2
+16 ;;EOR^
+17 ;;KEY^863.3:^PATIENT.CHOLE_PROC_FLAG
+18 ;;R^"863.3:",.01,"E"
+19 ;;D^PATIENT.CHOLE_PROC_FLAG
+20 ;;R^"863.3:",.02,"E"
+21 ;;D^PATIENT
+22 ;;R^"863.3:",.05,"E"
+23 ;;D^CHOLECYSGRAM FLAG
+24 ;;R^"863.3:",.06,"E"
+25 ;;D^9999
+26 ;;R^"863.3:","863.32:1",.01,"E"
+27 ;;D^OCXO EXTERNAL FUNCTION CALL
+28 ;;R^"863.3:","863.32:1",1,"E"
+29 ;;D^CH(|ORDERABLE ITEM IEN|)
+30 ;;R^"863.3:","863.32:2",.01,"E"
+31 ;;D^OCXO UP-ARROW PIECE NUMBER
+32 ;;R^"863.3:","863.32:2",1,"E"
+33 ;;D^1
+34 ;;EOR^
+35 ;;KEY^863.3:^PATIENT.REC_CHOLEC_FLAG
+36 ;;R^"863.3:",.01,"E"
+37 ;;D^PATIENT.REC_CHOLEC_FLAG
+38 ;;R^"863.3:",.02,"E"
+39 ;;D^PATIENT
+40 ;;R^"863.3:",.05,"E"
+41 ;;D^RECENT CHOLE FLAG
+42 ;;R^"863.3:",.06,"E"
+43 ;;D^999
+44 ;;R^"863.3:","863.32:1",.01,"E"
+45 ;;D^OCXO EXTERNAL FUNCTION CALL
+46 ;;R^"863.3:","863.32:1",1,"E"
+47 ;;D^RECCH(|PATIENT IEN|,7)
+48 ;;R^"863.3:","863.32:2",.01,"E"
+49 ;;D^OCXO UP-ARROW PIECE NUMBER
+50 ;;R^"863.3:","863.32:2",1,"E"
+51 ;;D^1
+52 ;;EOR^
+53 ;;KEY^863.3:^PATIENT.REC_CHOLEC_TEXT
+54 ;;R^"863.3:",.01,"E"
+55 ;;D^PATIENT.REC_CHOLEC_TEXT
+56 ;;R^"863.3:",.02,"E"
+57 ;;D^PATIENT
+58 ;;R^"863.3:",.05,"E"
+59 ;;D^CHOLECYSTOGRAM TEXT
+60 ;;R^"863.3:",.06,"E"
+61 ;;D^999
+62 ;;R^"863.3:","863.32:1",.01,"E"
+63 ;;D^OCXO EXTERNAL FUNCTION CALL
+64 ;;R^"863.3:","863.32:1",1,"E"
+65 ;;D^RECCH(|PATIENT IEN|,7)
+66 ;;R^"863.3:","863.32:2",.01,"E"
+67 ;;D^OCXO VT-BAR PIECE NUMBER
+68 ;;R^"863.3:","863.32:3",.01,"E"
+69 ;;D^OCXO UP-ARROW PIECE NUMBER
+70 ;;R^"863.3:","863.32:3",1,"E"
+71 ;;D^3
+72 ;;EOR^
+73 ;;KEY^863.3:^PATIENT.AGE
+74 ;;R^"863.3:",.01,"E"
+75 ;;D^PATIENT.AGE
+76 ;;R^"863.3:",.02,"E"
+77 ;;D^PATIENT
+78 ;;R^"863.3:",.05,"E"
+79 ;;D^AGE
+80 ;;R^"863.3:",.06,"E"
+81 ;;D^999
+82 ;;R^"863.3:","863.32:1",.01,"E"
+83 ;;D^OCXO EXTERNAL FUNCTION CALL
+84 ;;R^"863.3:","863.32:1",1,"E"
+85 ;;D^AGE^ORQPTQ4(|PATIENT IEN|)
+86 ;;EOR^
+87 ;;KEY^863.3:^PATIENT.LAB_RESULTS
+88 ;;R^"863.3:",.01,"E"
+89 ;;D^PATIENT.LAB_RESULTS
+90 ;;R^"863.3:",.02,"E"
+91 ;;D^PATIENT
+92 ;;R^"863.3:",.05,"E"
+93 ;;D^LAB RESULTS
+94 ;;R^"863.3:",.06,"E"
+95 ;;D^999
+96 ;;R^"863.3:","863.32:1",.01,"E"
+97 ;;D^OCXO EXTERNAL FUNCTION CALL
+98 ;;R^"863.3:","863.32:1",1,"E"
+99 ;;D^FLAB(|PATIENT IEN|,|LTNC|,"")
+100 ;;EOR^
+101 ;;KEY^863.3:^PATIENT.REN_LAB_RES
+102 ;;R^"863.3:",.01,"E"
+103 ;;D^PATIENT.REN_LAB_RES
+104 ;;R^"863.3:",.02,"E"
+105 ;;D^PATIENT
+106 ;;R^"863.3:",.05,"E"
+107 ;;D^LAB RESULTS
+108 ;;R^"863.3:",.06,"E"
+109 ;;D^99
+110 ;;R^"863.3:","863.32:1",.01,"E"
+111 ;;D^OCXO EXTERNAL FUNCTION CALL
+112 ;;R^"863.3:","863.32:1",1,"E"
+113 ;;D^FLAB(|PATIENT IEN|,"SERUM CREATININE^SERUM UREA NITROGEN","SERUM SPECIMEN")
+114 ;;EOR^
+115 ;;KEY^863.3:^PATIENT.CONT_MED_ALGY
+116 ;;R^"863.3:",.01,"E"
+117 ;;D^PATIENT.CONT_MED_ALGY
+118 ;;R^"863.3:",.02,"E"
+119 ;;D^PATIENT
+120 ;;R^"863.3:",.05,"E"
+121 ;;D^CONTRAST MEDIA ALLERGY FLAG
+122 ;;R^"863.3:",.06,"E"
+123 ;;D^99
+124 ;;R^"863.3:","863.32:1",.01,"E"
+125 ;;D^OCXO EXTERNAL FUNCTION CALL
+126 ;;R^"863.3:","863.32:1",1,"E"
+127 ;;D^ORCHK^GMRAOR(|PATIENT IEN|,"CM","")
+128 ;;EOR^
+129 ;;KEY^863.3:^PATIENT.CON_MEDIA_TRANS
+130 ;;R^"863.3:",.01,"E"
+131 ;;D^PATIENT.CON_MEDIA_TRANS
+132 ;;R^"863.3:",.02,"E"
+133 ;;D^PATIENT
+134 ;;R^"863.3:",.05,"E"
+135 ;;D^CONTRAST MEDIA
+136 ;;R^"863.3:",.06,"E"
+137 ;;D^99
+138 ;;R^"863.3:","863.32:1",.01,"E"
+139 ;;D^OCXO EXTERNAL FUNCTION CALL
+140 ;;R^"863.3:","863.32:1",1,"E"
+141 ;;D^CONTRANS(|CONTRAST MEDIA CODE|)
+142 ;;EOR^
+143 ;;KEY^863.3:^PATIENT.CONTR_MED_CODE
+144 ;;R^"863.3:",.01,"E"
+145 ;;D^PATIENT.CONTR_MED_CODE
+146 ;;R^"863.3:",.02,"E"
+147 ;;D^PATIENT
+148 ;;R^"863.3:",.05,"E"
+149 ;;D^CONTRAST MEDIA CODE
+150 ;;R^"863.3:",.06,"E"
+151 ;;D^99
+152 ;;R^"863.3:","863.32:1",.01,"E"
+153 ;;D^OCXO EXTERNAL FUNCTION CALL
+154 ;;R^"863.3:","863.32:1",1,"E"
+155 ;;D^CM^ORQQRA(|ORDERABLE ITEM IEN|)
+156 ;;R^"863.3:","863.32:2",.01,"E"
+157 ;;D^OCXO UP-ARROW PIECE NUMBER
+158 ;;EOR^
+159 ;;KEY^863.3:^PATIENT.MACPLT
+160 ;;R^"863.3:",.01,"E"
+161 ;;D^PATIENT.MACPLT
+162 ;;R^"863.3:",.02,"E"
+163 ;;D^PATIENT
+164 ;;R^"863.3:",.05,"E"
+165 ;;D^MACPLT
+166 ;;R^"863.3:",.06,"E"
+167 ;;D^99
+168 ;;R^"863.3:","863.32:1",.01,"E"
+169 ;;D^OCXO EXTERNAL FUNCTION CALL
+170 ;;R^"863.3:","863.32:1",1,"E"
+171 ;;D^MTSTF("PROTHROMBIN TIME,PARTIAL THROMBOPLASTIN TIME")
+172 ;;EOR^
+173 ;;KEY^863.3:^PATIENT.REC_BA_FLAG
+174 ;;R^"863.3:",.01,"E"
+175 ;;D^PATIENT.REC_BA_FLAG
+176 ;;R^"863.3:",.02,"E"
+177 ;;D^PATIENT
+178 ;;R^"863.3:",.05,"E"
+179 ;;D^BARIUM FLAG
+180 ;;R^"863.3:",.06,"E"
+181 ;;D^99
+182 ;;R^"863.3:","863.32:1",.01,"E"
+183 ;;D^OCXO EXTERNAL FUNCTION CALL
+184 ;;R^"863.3:","863.32:1",1,"E"
+185 ;;D^RECBAR(|PATIENT IEN|,48)
+186 ;;R^"863.3:","863.32:2",.01,"E"
+187 ;;D^OCXO UP-ARROW PIECE NUMBER
+188 ;;R^"863.3:","863.32:2",1,"E"
+189 ;;D^1
+190 ;;EOR^
+191 ;;KEY^863.3:^PATIENT.REC_BAR_TEXT
+192 ;;R^"863.3:",.01,"E"
+193 ;;D^PATIENT.REC_BAR_TEXT
+194 ;;R^"863.3:",.02,"E"
+195 ;;D^PATIENT
+196 ;;R^"863.3:",.05,"E"
+197 ;;D^BARIUM TEXT
+198 ;;R^"863.3:",.06,"E"
+199 ;;D^99
+200 ;;R^"863.3:","863.32:1",.01,"E"
+201 ;;D^OCXO EXTERNAL FUNCTION CALL
+202 ;1;
+203 ;