OCXDI02Q ;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 ^OCXDI02R
;
Q
;
DATA ;
;
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CONTR_MED_CODE
;;EOR^
;;KEY^860.4:^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
;;R^"860.4:",.01,"E"
;;D^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.MACPLT
;;EOR^
;;KEY^860.4:^RECENT BARIUM STUDY FLAG
;;R^"860.4:",.01,"E"
;;D^RECENT BARIUM STUDY FLAG
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.REC_BA_FLAG
;;EOR^
;;KEY^860.4:^RECENT BARIUM STUDY TEXT
;;R^"860.4:",.01,"E"
;;D^RECENT BARIUM STUDY TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.REC_BAR_TEXT
;;EOR^
;;KEY^860.4:^CLOZAPINE LABS W/IN 6 DAYS FLAG
;;R^"860.4:",.01,"E"
;;D^CLOZAPINE LABS W/IN 6 DAYS FLAG
;;R^"860.4:",1,"E"
;;D^CLOZ LABS FLAG
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CLOZ_LABS_W/IN_6_DAYS
;;EOR^
;;KEY^860.4:^RECENT WBC RESULT
;;R^"860.4:",.01,"E"
;;D^RECENT WBC RESULT
;;R^"860.4:",1,"E"
;;D^RECENT WBC
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.RECENT WBC RESULT
;;EOR^
;;KEY^860.4:^ORDERABLE ITEM IEN
;;R^"860.4:",.01,"E"
;;D^ORDERABLE ITEM IEN
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:5",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:5",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:5",1,"E"
;;D^PATIENT.ORDER_ITEM_IEN
;;EOR^
;;KEY^860.4:^VA DRUG CLASS
;;R^"860.4:",.01,"E"
;;D^VA DRUG CLASS
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.DRUG_CLASS
;;EOR^
;;KEY^860.4:^RECENT PT AND PTT LAB TEXT
;;R^"860.4:",.01,"E"
;;D^RECENT PT AND PTT LAB TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.PTT_PT_TEXT
;;EOR^
;;KEY^860.4:^CREATININE CLEARANCE (ESTIM) VALUE
;;R^"860.4:",.01,"E"
;;D^CREATININE CLEARANCE (ESTIM) VALUE
;;R^"860.4:",1,"E"
;;D^CRCLV
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CRCL_TEXT
;;EOR^
;;KEY^860.4:^CREATININE CLEARANCE (ESTIM) DATE
;;R^"860.4:",.01,"E"
;;D^CREATININE CLEARANCE (ESTIM) DATE
;;R^"860.4:",1,"E"
;;D^CRCLD
;;R^"860.4:",101,"E"
;;D^DATE/TIME
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.CRCL_DATE
;;EOR^
;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER FLAG
;;R^"860.4:",.01,"E"
;;D^PATIENT TOO BIG FOR SCANNER FLAG
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.SCNR_OVRSZ_FLAG
;;EOR^
;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER TEXT
;;R^"860.4:",.01,"E"
;;D^PATIENT TOO BIG FOR SCANNER TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT_SCNR_OVRSZ_TEXT
;;EOR^
;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER DEVICE
;;R^"860.4:",.01,"E"
;;D^PATIENT TOO BIG FOR SCANNER DEVICE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:4",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:4",1,"E"
;;D^PATIENT.SCNR_OVRSZ_DEV
;;EOR^
;;KEY^860.4:^LAB TEST NATIONAL CODE
;;R^"860.4:",.01,"E"
;;D^LAB TEST NATIONAL CODE
;;R^"860.4:",1,"E"
;;D^LTNC
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 OBSERVATION/RESULT SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.LAB_TST_NAT_CODE
;;EOR^
;;KEY^860.4:^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.4:",.01,"E"
;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:1",.01,"E"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI02Q 5420 printed Oct 16, 2024@18:24:41 Page 2
OCXDI02Q ;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 ^OCXDI02R
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^DATABASE LOOKUP
+3 ;;R^"860.4:","860.41:4",1,"E"
+4 ;;D^PATIENT.CONTR_MED_CODE
+5 ;;EOR^
+6 ;;KEY^860.4:^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
+7 ;;R^"860.4:",.01,"E"
+8 ;;D^MISSING ANGIOGRAM, CATH PERIF LAB TESTS
+9 ;;R^"860.4:",101,"E"
+10 ;;D^FREE TEXT
+11 ;;R^"860.4:","860.41:4",.01,"E"
+12 ;;D^DATABASE LOOKUP
+13 ;;R^"860.4:","860.41:4",.02,"E"
+14 ;;D^DATABASE LOOKUP
+15 ;;R^"860.4:","860.41:4",1,"E"
+16 ;;D^PATIENT.MACPLT
+17 ;;EOR^
+18 ;;KEY^860.4:^RECENT BARIUM STUDY FLAG
+19 ;;R^"860.4:",.01,"E"
+20 ;;D^RECENT BARIUM STUDY FLAG
+21 ;;R^"860.4:",101,"E"
+22 ;;D^BOOLEAN
+23 ;;R^"860.4:","860.41:4",.01,"E"
+24 ;;D^DATABASE LOOKUP
+25 ;;R^"860.4:","860.41:4",.02,"E"
+26 ;;D^DATABASE LOOKUP
+27 ;;R^"860.4:","860.41:4",1,"E"
+28 ;;D^PATIENT.REC_BA_FLAG
+29 ;;EOR^
+30 ;;KEY^860.4:^RECENT BARIUM STUDY TEXT
+31 ;;R^"860.4:",.01,"E"
+32 ;;D^RECENT BARIUM STUDY TEXT
+33 ;;R^"860.4:",101,"E"
+34 ;;D^FREE TEXT
+35 ;;R^"860.4:","860.41:4",.01,"E"
+36 ;;D^DATABASE LOOKUP
+37 ;;R^"860.4:","860.41:4",.02,"E"
+38 ;;D^DATABASE LOOKUP
+39 ;;R^"860.4:","860.41:4",1,"E"
+40 ;;D^PATIENT.REC_BAR_TEXT
+41 ;;EOR^
+42 ;;KEY^860.4:^CLOZAPINE LABS W/IN 6 DAYS FLAG
+43 ;;R^"860.4:",.01,"E"
+44 ;;D^CLOZAPINE LABS W/IN 6 DAYS FLAG
+45 ;;R^"860.4:",1,"E"
+46 ;;D^CLOZ LABS FLAG
+47 ;;R^"860.4:",101,"E"
+48 ;;D^BOOLEAN
+49 ;;R^"860.4:","860.41:4",.01,"E"
+50 ;;D^DATABASE LOOKUP
+51 ;;R^"860.4:","860.41:4",.02,"E"
+52 ;;D^DATABASE LOOKUP
+53 ;;R^"860.4:","860.41:4",1,"E"
+54 ;;D^PATIENT.CLOZ_LABS_W/IN_6_DAYS
+55 ;;EOR^
+56 ;;KEY^860.4:^RECENT WBC RESULT
+57 ;;R^"860.4:",.01,"E"
+58 ;;D^RECENT WBC RESULT
+59 ;;R^"860.4:",1,"E"
+60 ;;D^RECENT WBC
+61 ;;R^"860.4:",101,"E"
+62 ;;D^FREE TEXT
+63 ;;R^"860.4:","860.41:4",.01,"E"
+64 ;;D^DATABASE LOOKUP
+65 ;;R^"860.4:","860.41:4",.02,"E"
+66 ;;D^DATABASE LOOKUP
+67 ;;R^"860.4:","860.41:4",1,"E"
+68 ;;D^PATIENT.RECENT WBC RESULT
+69 ;;EOR^
+70 ;;KEY^860.4:^ORDERABLE ITEM IEN
+71 ;;R^"860.4:",.01,"E"
+72 ;;D^ORDERABLE ITEM IEN
+73 ;;R^"860.4:",101,"E"
+74 ;;D^NUMERIC
+75 ;;R^"860.4:","860.41:5",.01,"E"
+76 ;;D^CPRS ORDER PRESCAN
+77 ;;R^"860.4:","860.41:5",.02,"E"
+78 ;;D^ORDER ENTRY ORDER PRESCAN
+79 ;;R^"860.4:","860.41:5",1,"E"
+80 ;;D^PATIENT.ORDER_ITEM_IEN
+81 ;;EOR^
+82 ;;KEY^860.4:^VA DRUG CLASS
+83 ;;R^"860.4:",.01,"E"
+84 ;;D^VA DRUG CLASS
+85 ;;R^"860.4:",101,"E"
+86 ;;D^FREE TEXT
+87 ;;R^"860.4:","860.41:4",.01,"E"
+88 ;;D^DATABASE LOOKUP
+89 ;;R^"860.4:","860.41:4",.02,"E"
+90 ;;D^DATABASE LOOKUP
+91 ;;R^"860.4:","860.41:4",1,"E"
+92 ;;D^PATIENT.DRUG_CLASS
+93 ;;EOR^
+94 ;;KEY^860.4:^RECENT PT AND PTT LAB TEXT
+95 ;;R^"860.4:",.01,"E"
+96 ;;D^RECENT PT AND PTT LAB TEXT
+97 ;;R^"860.4:",101,"E"
+98 ;;D^FREE TEXT
+99 ;;R^"860.4:","860.41:4",.01,"E"
+100 ;;D^DATABASE LOOKUP
+101 ;;R^"860.4:","860.41:4",.02,"E"
+102 ;;D^DATABASE LOOKUP
+103 ;;R^"860.4:","860.41:4",1,"E"
+104 ;;D^PATIENT.PTT_PT_TEXT
+105 ;;EOR^
+106 ;;KEY^860.4:^CREATININE CLEARANCE (ESTIM) VALUE
+107 ;;R^"860.4:",.01,"E"
+108 ;;D^CREATININE CLEARANCE (ESTIM) VALUE
+109 ;;R^"860.4:",1,"E"
+110 ;;D^CRCLV
+111 ;;R^"860.4:",101,"E"
+112 ;;D^NUMERIC
+113 ;;R^"860.4:","860.41:4",.01,"E"
+114 ;;D^DATABASE LOOKUP
+115 ;;R^"860.4:","860.41:4",.02,"E"
+116 ;;D^DATABASE LOOKUP
+117 ;;R^"860.4:","860.41:4",1,"E"
+118 ;;D^PATIENT.CRCL_TEXT
+119 ;;EOR^
+120 ;;KEY^860.4:^CREATININE CLEARANCE (ESTIM) DATE
+121 ;;R^"860.4:",.01,"E"
+122 ;;D^CREATININE CLEARANCE (ESTIM) DATE
+123 ;;R^"860.4:",1,"E"
+124 ;;D^CRCLD
+125 ;;R^"860.4:",101,"E"
+126 ;;D^DATE/TIME
+127 ;;R^"860.4:","860.41:4",.01,"E"
+128 ;;D^DATABASE LOOKUP
+129 ;;R^"860.4:","860.41:4",.02,"E"
+130 ;;D^DATABASE LOOKUP
+131 ;;R^"860.4:","860.41:4",1,"E"
+132 ;;D^PATIENT.CRCL_DATE
+133 ;;EOR^
+134 ;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER FLAG
+135 ;;R^"860.4:",.01,"E"
+136 ;;D^PATIENT TOO BIG FOR SCANNER FLAG
+137 ;;R^"860.4:",101,"E"
+138 ;;D^BOOLEAN
+139 ;;R^"860.4:","860.41:4",.01,"E"
+140 ;;D^DATABASE LOOKUP
+141 ;;R^"860.4:","860.41:4",.02,"E"
+142 ;;D^DATABASE LOOKUP
+143 ;;R^"860.4:","860.41:4",1,"E"
+144 ;;D^PATIENT.SCNR_OVRSZ_FLAG
+145 ;;EOR^
+146 ;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER TEXT
+147 ;;R^"860.4:",.01,"E"
+148 ;;D^PATIENT TOO BIG FOR SCANNER TEXT
+149 ;;R^"860.4:",101,"E"
+150 ;;D^FREE TEXT
+151 ;;R^"860.4:","860.41:4",.01,"E"
+152 ;;D^DATABASE LOOKUP
+153 ;;R^"860.4:","860.41:4",.02,"E"
+154 ;;D^DATABASE LOOKUP
+155 ;;R^"860.4:","860.41:4",1,"E"
+156 ;;D^PATIENT_SCNR_OVRSZ_TEXT
+157 ;;EOR^
+158 ;;KEY^860.4:^PATIENT TOO BIG FOR SCANNER DEVICE
+159 ;;R^"860.4:",.01,"E"
+160 ;;D^PATIENT TOO BIG FOR SCANNER DEVICE
+161 ;;R^"860.4:",101,"E"
+162 ;;D^FREE TEXT
+163 ;;R^"860.4:","860.41:4",.01,"E"
+164 ;;D^DATABASE LOOKUP
+165 ;;R^"860.4:","860.41:4",.02,"E"
+166 ;;D^DATABASE LOOKUP
+167 ;;R^"860.4:","860.41:4",1,"E"
+168 ;;D^PATIENT.SCNR_OVRSZ_DEV
+169 ;;EOR^
+170 ;;KEY^860.4:^LAB TEST NATIONAL CODE
+171 ;;R^"860.4:",.01,"E"
+172 ;;D^LAB TEST NATIONAL CODE
+173 ;;R^"860.4:",1,"E"
+174 ;;D^LTNC
+175 ;;R^"860.4:",101,"E"
+176 ;;D^FREE TEXT
+177 ;;R^"860.4:","860.41:1",.01,"E"
+178 ;;D^GENERIC HL7 MESSAGE ARRAY
+179 ;;R^"860.4:","860.41:1",.02,"E"
+180 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+181 ;;R^"860.4:","860.41:1",1,"E"
+182 ;;D^PATIENT.LAB_TST_NAT_CODE
+183 ;;EOR^
+184 ;;KEY^860.4:^PHARMACY LOCAL ORDERABLE ITEM TEXT
+185 ;;R^"860.4:",.01,"E"
+186 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+187 ;;R^"860.4:",101,"E"
+188 ;;D^FREE TEXT
+189 ;;R^"860.4:","860.41:1",.01,"E"
+190 ;1;
+191 ;