OCXDI024 ;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 ^OCXDI025
;
Q
;
DATA ;
;
;;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^3
;;EOR^
;;KEY^863.3:^PATIENT.REC_WBC_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_WBC_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^WBC 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^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.REC_WBC_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_WBC_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^WBC 13 DAYS
;;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^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.ORDER_ITEM_IEN
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORDER_ITEM_IEN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM IEN
;;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^0
;;EOR^
;;KEY^863.3:^PATIENT.DRUG_CLASS
;;R^"863.3:",.01,"E"
;;D^PATIENT.DRUG_CLASS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^DRUG CLASS
;;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^ENVAC^PSJORUT2(|OI NATIONAL ID|)
;;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.PTT_PT_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.PTT_PT_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^LAB RESULT TEXT
;;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|,"PROTHROMBIN TIME^THROMBOPLASTIN TIME PARTIAL")
;;EOR^
;;KEY^863.3:^PATIENT.CRCL_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT.CRCL_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CREAT. CLEAR. VALUE
;;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^CRCL(|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.CRCL_DATE
;;R^"863.3:",.01,"E"
;;D^PATIENT.CRCL_DATE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CREAT CLEAR DATE
;;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^CRCL(|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.SCNR_OVRSZ_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.SCNR_OVRSZ_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^OVERSIZE 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^CTMRI(|PATIENT IEN|,|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_SCNR_OVRSZ_TEXT
;;R^"863.3:",.01,"E"
;;D^PATIENT_SCNR_OVRSZ_TEXT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^OVERSIZE TEXT
;;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^CTMRI(|PATIENT IEN|,|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^2
;;EOR^
;;KEY^863.3:^PATIENT.SCNR_OVRSZ_DEV
;;R^"863.3:",.01,"E"
;;D^PATIENT.SCNR_OVRSZ_DEV
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^OVERSIZE DEVICE
;;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^CTMRI(|PATIENT IEN|,|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^3
;;EOR^
;;KEY^863.3:^PATIENT.LAB_TST_NAT_CODE
;;R^"863.3:",.01,"E"
;;D^PATIENT.LAB_TST_NAT_CODE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^HL7
;;R^"863.3:",.05,"E"
;;D^LAB TEST CODE
;;R^"863.3:",.06,"E"
;;D^9999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXODATA("OBX",3)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI024 5470 printed Dec 13, 2024@02:23:44 Page 2
OCXDI024 ;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 ^OCXDI025
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.3:","863.32:1",1,"E"
+3 ;;D^RECBAR(|PATIENT IEN|,48)
+4 ;;R^"863.3:","863.32:2",.01,"E"
+5 ;;D^OCXO UP-ARROW PIECE NUMBER
+6 ;;R^"863.3:","863.32:2",1,"E"
+7 ;;D^3
+8 ;;EOR^
+9 ;;KEY^863.3:^PATIENT.REC_WBC_FLAG
+10 ;;R^"863.3:",.01,"E"
+11 ;;D^PATIENT.REC_WBC_FLAG
+12 ;;R^"863.3:",.02,"E"
+13 ;;D^PATIENT
+14 ;;R^"863.3:",.05,"E"
+15 ;;D^WBC FLAG
+16 ;;R^"863.3:",.06,"E"
+17 ;;D^99
+18 ;;R^"863.3:","863.32:1",.01,"E"
+19 ;;D^OCXO EXTERNAL FUNCTION CALL
+20 ;;R^"863.3:","863.32:1",1,"E"
+21 ;;D^RECWBC(|PATIENT IEN|,13)
+22 ;;R^"863.3:","863.32:2",.01,"E"
+23 ;;D^OCXO UP-ARROW PIECE NUMBER
+24 ;;R^"863.3:","863.32:2",1,"E"
+25 ;;D^1
+26 ;;EOR^
+27 ;;KEY^863.3:^PATIENT.REC_WBC_TEXT
+28 ;;R^"863.3:",.01,"E"
+29 ;;D^PATIENT.REC_WBC_TEXT
+30 ;;R^"863.3:",.02,"E"
+31 ;;D^PATIENT
+32 ;;R^"863.3:",.05,"E"
+33 ;;D^WBC 13 DAYS
+34 ;;R^"863.3:",.06,"E"
+35 ;;D^99
+36 ;;R^"863.3:","863.32:1",.01,"E"
+37 ;;D^OCXO EXTERNAL FUNCTION CALL
+38 ;;R^"863.3:","863.32:1",1,"E"
+39 ;;D^RECWBC(|PATIENT IEN|,13)
+40 ;;R^"863.3:","863.32:2",.01,"E"
+41 ;;D^OCXO UP-ARROW PIECE NUMBER
+42 ;;R^"863.3:","863.32:2",1,"E"
+43 ;;D^2
+44 ;;EOR^
+45 ;;KEY^863.3:^PATIENT.ORDER_ITEM_IEN
+46 ;;R^"863.3:",.01,"E"
+47 ;;D^PATIENT.ORDER_ITEM_IEN
+48 ;;R^"863.3:",.02,"E"
+49 ;;D^PATIENT
+50 ;;R^"863.3:",.05,"E"
+51 ;;D^ORDERABLE ITEM IEN
+52 ;;R^"863.3:",.06,"E"
+53 ;;D^99
+54 ;;R^"863.3:","863.32:1",.01,"E"
+55 ;;D^OCXO VARIABLE NAME
+56 ;;R^"863.3:","863.32:1",1,"E"
+57 ;;D^OCXPSD
+58 ;;R^"863.3:","863.32:2",.01,"E"
+59 ;;D^OCXO VT-BAR PIECE NUMBER
+60 ;;R^"863.3:","863.32:2",1,"E"
+61 ;;D^0
+62 ;;EOR^
+63 ;;KEY^863.3:^PATIENT.DRUG_CLASS
+64 ;;R^"863.3:",.01,"E"
+65 ;;D^PATIENT.DRUG_CLASS
+66 ;;R^"863.3:",.02,"E"
+67 ;;D^PATIENT
+68 ;;R^"863.3:",.05,"E"
+69 ;;D^DRUG CLASS
+70 ;;R^"863.3:",.06,"E"
+71 ;;D^99
+72 ;;R^"863.3:","863.32:1",.01,"E"
+73 ;;D^OCXO EXTERNAL FUNCTION CALL
+74 ;;R^"863.3:","863.32:1",1,"E"
+75 ;;D^ENVAC^PSJORUT2(|OI NATIONAL ID|)
+76 ;;R^"863.3:","863.32:2",.01,"E"
+77 ;;D^OCXO UP-ARROW PIECE NUMBER
+78 ;;R^"863.3:","863.32:2",1,"E"
+79 ;;D^2
+80 ;;EOR^
+81 ;;KEY^863.3:^PATIENT.PTT_PT_TEXT
+82 ;;R^"863.3:",.01,"E"
+83 ;;D^PATIENT.PTT_PT_TEXT
+84 ;;R^"863.3:",.02,"E"
+85 ;;D^PATIENT
+86 ;;R^"863.3:",.05,"E"
+87 ;;D^LAB RESULT TEXT
+88 ;;R^"863.3:",.06,"E"
+89 ;;D^99
+90 ;;R^"863.3:","863.32:1",.01,"E"
+91 ;;D^OCXO EXTERNAL FUNCTION CALL
+92 ;;R^"863.3:","863.32:1",1,"E"
+93 ;;D^FLAB(|PATIENT IEN|,"PROTHROMBIN TIME^THROMBOPLASTIN TIME PARTIAL")
+94 ;;EOR^
+95 ;;KEY^863.3:^PATIENT.CRCL_TEXT
+96 ;;R^"863.3:",.01,"E"
+97 ;;D^PATIENT.CRCL_TEXT
+98 ;;R^"863.3:",.02,"E"
+99 ;;D^PATIENT
+100 ;;R^"863.3:",.05,"E"
+101 ;;D^CREAT. CLEAR. VALUE
+102 ;;R^"863.3:",.06,"E"
+103 ;;D^99
+104 ;;R^"863.3:","863.32:1",.01,"E"
+105 ;;D^OCXO EXTERNAL FUNCTION CALL
+106 ;;R^"863.3:","863.32:1",1,"E"
+107 ;;D^CRCL(|PATIENT IEN|)
+108 ;;R^"863.3:","863.32:2",.01,"E"
+109 ;;D^OCXO UP-ARROW PIECE NUMBER
+110 ;;R^"863.3:","863.32:2",1,"E"
+111 ;;D^2
+112 ;;EOR^
+113 ;;KEY^863.3:^PATIENT.CRCL_DATE
+114 ;;R^"863.3:",.01,"E"
+115 ;;D^PATIENT.CRCL_DATE
+116 ;;R^"863.3:",.02,"E"
+117 ;;D^PATIENT
+118 ;;R^"863.3:",.05,"E"
+119 ;;D^CREAT CLEAR DATE
+120 ;;R^"863.3:",.06,"E"
+121 ;;D^99
+122 ;;R^"863.3:","863.32:1",.01,"E"
+123 ;;D^OCXO EXTERNAL FUNCTION CALL
+124 ;;R^"863.3:","863.32:1",1,"E"
+125 ;;D^CRCL(|PATIENT IEN|)
+126 ;;R^"863.3:","863.32:2",.01,"E"
+127 ;;D^OCXO UP-ARROW PIECE NUMBER
+128 ;;R^"863.3:","863.32:2",1,"E"
+129 ;;D^1
+130 ;;EOR^
+131 ;;KEY^863.3:^PATIENT.SCNR_OVRSZ_FLAG
+132 ;;R^"863.3:",.01,"E"
+133 ;;D^PATIENT.SCNR_OVRSZ_FLAG
+134 ;;R^"863.3:",.02,"E"
+135 ;;D^PATIENT
+136 ;;R^"863.3:",.05,"E"
+137 ;;D^OVERSIZE FLAG
+138 ;;R^"863.3:",.06,"E"
+139 ;;D^99
+140 ;;R^"863.3:","863.32:1",.01,"E"
+141 ;;D^OCXO EXTERNAL FUNCTION CALL
+142 ;;R^"863.3:","863.32:1",1,"E"
+143 ;;D^CTMRI(|PATIENT IEN|,|ORDERABLE ITEM IEN|)
+144 ;;R^"863.3:","863.32:2",.01,"E"
+145 ;;D^OCXO UP-ARROW PIECE NUMBER
+146 ;;R^"863.3:","863.32:2",1,"E"
+147 ;;D^1
+148 ;;EOR^
+149 ;;KEY^863.3:^PATIENT_SCNR_OVRSZ_TEXT
+150 ;;R^"863.3:",.01,"E"
+151 ;;D^PATIENT_SCNR_OVRSZ_TEXT
+152 ;;R^"863.3:",.02,"E"
+153 ;;D^PATIENT
+154 ;;R^"863.3:",.05,"E"
+155 ;;D^OVERSIZE TEXT
+156 ;;R^"863.3:",.06,"E"
+157 ;;D^99
+158 ;;R^"863.3:","863.32:1",.01,"E"
+159 ;;D^OCXO EXTERNAL FUNCTION CALL
+160 ;;R^"863.3:","863.32:1",1,"E"
+161 ;;D^CTMRI(|PATIENT IEN|,|ORDERABLE ITEM IEN|)
+162 ;;R^"863.3:","863.32:2",.01,"E"
+163 ;;D^OCXO UP-ARROW PIECE NUMBER
+164 ;;R^"863.3:","863.32:2",1,"E"
+165 ;;D^2
+166 ;;EOR^
+167 ;;KEY^863.3:^PATIENT.SCNR_OVRSZ_DEV
+168 ;;R^"863.3:",.01,"E"
+169 ;;D^PATIENT.SCNR_OVRSZ_DEV
+170 ;;R^"863.3:",.02,"E"
+171 ;;D^PATIENT
+172 ;;R^"863.3:",.05,"E"
+173 ;;D^OVERSIZE DEVICE
+174 ;;R^"863.3:",.06,"E"
+175 ;;D^99
+176 ;;R^"863.3:","863.32:1",.01,"E"
+177 ;;D^OCXO EXTERNAL FUNCTION CALL
+178 ;;R^"863.3:","863.32:1",1,"E"
+179 ;;D^CTMRI(|PATIENT IEN|,|ORDERABLE ITEM IEN|)
+180 ;;R^"863.3:","863.32:2",.01,"E"
+181 ;;D^OCXO UP-ARROW PIECE NUMBER
+182 ;;R^"863.3:","863.32:2",1,"E"
+183 ;;D^3
+184 ;;EOR^
+185 ;;KEY^863.3:^PATIENT.LAB_TST_NAT_CODE
+186 ;;R^"863.3:",.01,"E"
+187 ;;D^PATIENT.LAB_TST_NAT_CODE
+188 ;;R^"863.3:",.02,"E"
+189 ;;D^PATIENT
+190 ;;R^"863.3:",.04,"E"
+191 ;;D^HL7
+192 ;;R^"863.3:",.05,"E"
+193 ;;D^LAB TEST CODE
+194 ;;R^"863.3:",.06,"E"
+195 ;;D^9999
+196 ;;R^"863.3:","863.32:1",.01,"E"
+197 ;;D^OCXO VARIABLE NAME
+198 ;;R^"863.3:","863.32:1",1,"E"
+199 ;;D^OCXODATA("OBX",3)
+200 ;;R^"863.3:","863.32:2",.01,"E"
+201 ;;D^OCXO VT-BAR PIECE NUMBER
+202 ;1;
+203 ;