OCXDI02P ;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 ^OCXDI02Q
;
Q
;
DATA ;
;
;;R^"860.4:","860.41:1",.02,"E"
;;D^HL7 DIETARY SEGMENT
;;R^"860.4:","860.41:1",1,"E"
;;D^PATIENT.HL7_DIET_LOCAL_TEXT
;;EOR^
;;KEY^860.4:^PATIENT TRANSACTION TYPE CURRENT
;;R^"860.4:",.01,"E"
;;D^PATIENT TRANSACTION TYPE CURRENT
;;R^"860.4:",1,"E"
;;D^TRANSACTION TYPE
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:3",.01,"E"
;;D^DGPM PATIENT MOVEMENT PROTOCOL
;;R^"860.4:","860.41:3",.02,"E"
;;D^DGPM MOVEMENT EVENTS PROTOCOL
;;R^"860.4:","860.41:3",1,"E"
;;D^PATIENT.TRANS_TYPE_CURRENT
;;EOR^
;;KEY^860.4:^SITE FLAGGED ORDER
;;R^"860.4:",.01,"E"
;;D^SITE FLAGGED ORDER
;;R^"860.4:",1,"E"
;;D^SITEORD
;;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.SITE_FLAGGED_ORDER
;;EOR^
;;KEY^860.4:^SITE FLAGGED RESULT
;;R^"860.4:",.01,"E"
;;D^SITE FLAGGED RESULT
;;R^"860.4:",1,"E"
;;D^SITERES
;;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.SITE_FLAGGED_RESULT
;;EOR^
;;KEY^860.4:^CONTRAST MEDIA FLAG
;;R^"860.4:",.01,"E"
;;D^CONTRAST MEDIA 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.RAD_CON_MEDIA
;;EOR^
;;KEY^860.4:^MOST RECENT RENAL TEST ABNORMAL FLAG
;;R^"860.4:",.01,"E"
;;D^MOST RECENT RENAL TEST ABNORMAL 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_RENAL_ABNORM_FLAG
;;EOR^
;;KEY^860.4:^ABNORMAL RENAL BIOCHEM RESULTS
;;R^"860.4:",.01,"E"
;;D^ABNORMAL RENAL BIOCHEM RESULTS
;;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_RENAL_ABNORM_RES
;;EOR^
;;KEY^860.4:^CHOLECYSTOGRAM PROCEDURE FLAG
;;R^"860.4:",.01,"E"
;;D^CHOLECYSTOGRAM PROCEDURE 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.CHOLE_PROC_FLAG
;;EOR^
;;KEY^860.4:^RECENT CHOLECYSTOGRAM FLAG
;;R^"860.4:",.01,"E"
;;D^RECENT CHOLECYSTOGRAM 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_CHOLEC_FLAG
;;EOR^
;;KEY^860.4:^RECENT CHOLECYSTOGRAM TEXT
;;R^"860.4:",.01,"E"
;;D^RECENT CHOLECYSTOGRAM 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_CHOLEC_TEXT
;;EOR^
;;KEY^860.4:^PATIENT AGE
;;R^"860.4:",.01,"E"
;;D^PATIENT AGE
;;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.AGE
;;EOR^
;;KEY^860.4:^FORMATTED LAB RESULTS
;;R^"860.4:",.01,"E"
;;D^FORMATTED LAB RESULTS
;;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.LAB_RESULTS
;;EOR^
;;KEY^860.4:^FORMATTED RENAL LAB RESULTS
;;R^"860.4:",.01,"E"
;;D^FORMATTED RENAL LAB RESULTS
;;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.REN_LAB_RES
;;EOR^
;;KEY^860.4:^CONTRAST MEDIA ALLERGY FLAG
;;R^"860.4:",.01,"E"
;;D^CONTRAST MEDIA ALLERGY FLAG
;;R^"860.4:",1,"E"
;;D^ConMedAlgyFlag
;;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.CONT_MED_ALGY
;;EOR^
;;KEY^860.4:^CONTRAST MEDIA CODE TRANSLATION
;;R^"860.4:",.01,"E"
;;D^CONTRAST MEDIA CODE TRANSLATION
;;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.CON_MEDIA_TRANS
;;EOR^
;;KEY^860.4:^CONTRAST MEDIA CODE
;;R^"860.4:",.01,"E"
;;D^CONTRAST MEDIA CODE
;;R^"860.4:",1,"E"
;;D^CMC
;;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"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI02P 5417 printed Dec 13, 2024@02:24:03 Page 2
OCXDI02P ;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 ^OCXDI02Q
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.4:","860.41:1",.02,"E"
+3 ;;D^HL7 DIETARY SEGMENT
+4 ;;R^"860.4:","860.41:1",1,"E"
+5 ;;D^PATIENT.HL7_DIET_LOCAL_TEXT
+6 ;;EOR^
+7 ;;KEY^860.4:^PATIENT TRANSACTION TYPE CURRENT
+8 ;;R^"860.4:",.01,"E"
+9 ;;D^PATIENT TRANSACTION TYPE CURRENT
+10 ;;R^"860.4:",1,"E"
+11 ;;D^TRANSACTION TYPE
+12 ;;R^"860.4:",101,"E"
+13 ;;D^FREE TEXT
+14 ;;R^"860.4:","860.41:3",.01,"E"
+15 ;;D^DGPM PATIENT MOVEMENT PROTOCOL
+16 ;;R^"860.4:","860.41:3",.02,"E"
+17 ;;D^DGPM MOVEMENT EVENTS PROTOCOL
+18 ;;R^"860.4:","860.41:3",1,"E"
+19 ;;D^PATIENT.TRANS_TYPE_CURRENT
+20 ;;EOR^
+21 ;;KEY^860.4:^SITE FLAGGED ORDER
+22 ;;R^"860.4:",.01,"E"
+23 ;;D^SITE FLAGGED ORDER
+24 ;;R^"860.4:",1,"E"
+25 ;;D^SITEORD
+26 ;;R^"860.4:",101,"E"
+27 ;;D^BOOLEAN
+28 ;;R^"860.4:","860.41:4",.01,"E"
+29 ;;D^DATABASE LOOKUP
+30 ;;R^"860.4:","860.41:4",.02,"E"
+31 ;;D^DATABASE LOOKUP
+32 ;;R^"860.4:","860.41:4",1,"E"
+33 ;;D^PATIENT.SITE_FLAGGED_ORDER
+34 ;;EOR^
+35 ;;KEY^860.4:^SITE FLAGGED RESULT
+36 ;;R^"860.4:",.01,"E"
+37 ;;D^SITE FLAGGED RESULT
+38 ;;R^"860.4:",1,"E"
+39 ;;D^SITERES
+40 ;;R^"860.4:",101,"E"
+41 ;;D^BOOLEAN
+42 ;;R^"860.4:","860.41:4",.01,"E"
+43 ;;D^DATABASE LOOKUP
+44 ;;R^"860.4:","860.41:4",.02,"E"
+45 ;;D^DATABASE LOOKUP
+46 ;;R^"860.4:","860.41:4",1,"E"
+47 ;;D^PATIENT.SITE_FLAGGED_RESULT
+48 ;;EOR^
+49 ;;KEY^860.4:^CONTRAST MEDIA FLAG
+50 ;;R^"860.4:",.01,"E"
+51 ;;D^CONTRAST MEDIA FLAG
+52 ;;R^"860.4:",101,"E"
+53 ;;D^BOOLEAN
+54 ;;R^"860.4:","860.41:4",.01,"E"
+55 ;;D^DATABASE LOOKUP
+56 ;;R^"860.4:","860.41:4",.02,"E"
+57 ;;D^DATABASE LOOKUP
+58 ;;R^"860.4:","860.41:4",1,"E"
+59 ;;D^PATIENT.RAD_CON_MEDIA
+60 ;;EOR^
+61 ;;KEY^860.4:^MOST RECENT RENAL TEST ABNORMAL FLAG
+62 ;;R^"860.4:",.01,"E"
+63 ;;D^MOST RECENT RENAL TEST ABNORMAL FLAG
+64 ;;R^"860.4:",101,"E"
+65 ;;D^BOOLEAN
+66 ;;R^"860.4:","860.41:4",.01,"E"
+67 ;;D^DATABASE LOOKUP
+68 ;;R^"860.4:","860.41:4",.02,"E"
+69 ;;D^DATABASE LOOKUP
+70 ;;R^"860.4:","860.41:4",1,"E"
+71 ;;D^PATIENT.REC_RENAL_ABNORM_FLAG
+72 ;;EOR^
+73 ;;KEY^860.4:^ABNORMAL RENAL BIOCHEM RESULTS
+74 ;;R^"860.4:",.01,"E"
+75 ;;D^ABNORMAL RENAL BIOCHEM RESULTS
+76 ;;R^"860.4:",101,"E"
+77 ;;D^FREE TEXT
+78 ;;R^"860.4:","860.41:4",.01,"E"
+79 ;;D^DATABASE LOOKUP
+80 ;;R^"860.4:","860.41:4",.02,"E"
+81 ;;D^DATABASE LOOKUP
+82 ;;R^"860.4:","860.41:4",1,"E"
+83 ;;D^PATIENT.REC_RENAL_ABNORM_RES
+84 ;;EOR^
+85 ;;KEY^860.4:^CHOLECYSTOGRAM PROCEDURE FLAG
+86 ;;R^"860.4:",.01,"E"
+87 ;;D^CHOLECYSTOGRAM PROCEDURE FLAG
+88 ;;R^"860.4:",101,"E"
+89 ;;D^BOOLEAN
+90 ;;R^"860.4:","860.41:4",.01,"E"
+91 ;;D^DATABASE LOOKUP
+92 ;;R^"860.4:","860.41:4",.02,"E"
+93 ;;D^DATABASE LOOKUP
+94 ;;R^"860.4:","860.41:4",1,"E"
+95 ;;D^PATIENT.CHOLE_PROC_FLAG
+96 ;;EOR^
+97 ;;KEY^860.4:^RECENT CHOLECYSTOGRAM FLAG
+98 ;;R^"860.4:",.01,"E"
+99 ;;D^RECENT CHOLECYSTOGRAM FLAG
+100 ;;R^"860.4:",101,"E"
+101 ;;D^BOOLEAN
+102 ;;R^"860.4:","860.41:4",.01,"E"
+103 ;;D^DATABASE LOOKUP
+104 ;;R^"860.4:","860.41:4",.02,"E"
+105 ;;D^DATABASE LOOKUP
+106 ;;R^"860.4:","860.41:4",1,"E"
+107 ;;D^PATIENT.REC_CHOLEC_FLAG
+108 ;;EOR^
+109 ;;KEY^860.4:^RECENT CHOLECYSTOGRAM TEXT
+110 ;;R^"860.4:",.01,"E"
+111 ;;D^RECENT CHOLECYSTOGRAM TEXT
+112 ;;R^"860.4:",101,"E"
+113 ;;D^FREE TEXT
+114 ;;R^"860.4:","860.41:4",.01,"E"
+115 ;;D^DATABASE LOOKUP
+116 ;;R^"860.4:","860.41:4",.02,"E"
+117 ;;D^DATABASE LOOKUP
+118 ;;R^"860.4:","860.41:4",1,"E"
+119 ;;D^PATIENT.REC_CHOLEC_TEXT
+120 ;;EOR^
+121 ;;KEY^860.4:^PATIENT AGE
+122 ;;R^"860.4:",.01,"E"
+123 ;;D^PATIENT AGE
+124 ;;R^"860.4:",101,"E"
+125 ;;D^NUMERIC
+126 ;;R^"860.4:","860.41:4",.01,"E"
+127 ;;D^DATABASE LOOKUP
+128 ;;R^"860.4:","860.41:4",.02,"E"
+129 ;;D^DATABASE LOOKUP
+130 ;;R^"860.4:","860.41:4",1,"E"
+131 ;;D^PATIENT.AGE
+132 ;;EOR^
+133 ;;KEY^860.4:^FORMATTED LAB RESULTS
+134 ;;R^"860.4:",.01,"E"
+135 ;;D^FORMATTED LAB RESULTS
+136 ;;R^"860.4:","860.41:4",.01,"E"
+137 ;;D^DATABASE LOOKUP
+138 ;;R^"860.4:","860.41:4",.02,"E"
+139 ;;D^DATABASE LOOKUP
+140 ;;R^"860.4:","860.41:4",1,"E"
+141 ;;D^PATIENT.LAB_RESULTS
+142 ;;EOR^
+143 ;;KEY^860.4:^FORMATTED RENAL LAB RESULTS
+144 ;;R^"860.4:",.01,"E"
+145 ;;D^FORMATTED RENAL LAB RESULTS
+146 ;;R^"860.4:",101,"E"
+147 ;;D^FREE TEXT
+148 ;;R^"860.4:","860.41:4",.01,"E"
+149 ;;D^DATABASE LOOKUP
+150 ;;R^"860.4:","860.41:4",.02,"E"
+151 ;;D^DATABASE LOOKUP
+152 ;;R^"860.4:","860.41:4",1,"E"
+153 ;;D^PATIENT.REN_LAB_RES
+154 ;;EOR^
+155 ;;KEY^860.4:^CONTRAST MEDIA ALLERGY FLAG
+156 ;;R^"860.4:",.01,"E"
+157 ;;D^CONTRAST MEDIA ALLERGY FLAG
+158 ;;R^"860.4:",1,"E"
+159 ;;D^ConMedAlgyFlag
+160 ;;R^"860.4:",101,"E"
+161 ;;D^BOOLEAN
+162 ;;R^"860.4:","860.41:4",.01,"E"
+163 ;;D^DATABASE LOOKUP
+164 ;;R^"860.4:","860.41:4",.02,"E"
+165 ;;D^DATABASE LOOKUP
+166 ;;R^"860.4:","860.41:4",1,"E"
+167 ;;D^PATIENT.CONT_MED_ALGY
+168 ;;EOR^
+169 ;;KEY^860.4:^CONTRAST MEDIA CODE TRANSLATION
+170 ;;R^"860.4:",.01,"E"
+171 ;;D^CONTRAST MEDIA CODE TRANSLATION
+172 ;;R^"860.4:",101,"E"
+173 ;;D^FREE TEXT
+174 ;;R^"860.4:","860.41:4",.01,"E"
+175 ;;D^DATABASE LOOKUP
+176 ;;R^"860.4:","860.41:4",.02,"E"
+177 ;;D^DATABASE LOOKUP
+178 ;;R^"860.4:","860.41:4",1,"E"
+179 ;;D^PATIENT.CON_MEDIA_TRANS
+180 ;;EOR^
+181 ;;KEY^860.4:^CONTRAST MEDIA CODE
+182 ;;R^"860.4:",.01,"E"
+183 ;;D^CONTRAST MEDIA CODE
+184 ;;R^"860.4:",1,"E"
+185 ;;D^CMC
+186 ;;R^"860.4:",101,"E"
+187 ;;D^FREE TEXT
+188 ;;R^"860.4:","860.41:4",.01,"E"
+189 ;;D^DATABASE LOOKUP
+190 ;;R^"860.4:","860.41:4",.02,"E"
+191 ;1;
+192 ;