OCXRU00B ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*96) ;JAN 30,2001 at 11:16
;;3.0;ORDER ENTRY/RESULTS REPORTING;**96**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXRULE
;
;
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("OCXRULE",$J,$O(^TMP("OCXRULE",$J,"A"),-1)+1)=TEXT
;
;
;
Q
;
DATA ;
;
;;D^PATIENT.HL7_PATIENT_ID
;;EOR^
;;KEY^860.4:^PATIENT LOCATION
;;R^"860.4:",.01,"E"
;;D^PATIENT LOCATION
;;R^"860.4:",1,"E"
;;D^PT LOC
;;R^"860.4:",101,"E"
;;D^FREE TEXT
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
;;D^PATIENT.LOCATION
;;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:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
;;D^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
;;D^PATIENT.HL7_RX_OI_TEXT
;;EOR^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^CANCELED BY NON-ORIG ORDERING PROVIDER
;;R^"860.3:",.01,"E"
;;D^CANCELED BY NON-ORIG ORDERING PROVIDER
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDERED BY
;;R^"860.3:","860.31:1",2,"E"
;;D^NOT EQUAL TO
;;R^"860.3:","860.31:1",4,"E"
;;D^ORDER CANCELED BY
;;EOR^
;;KEY^860.3:^CREATININE CLEARANCE DATE/TIME
;;R^"860.3:",.01,"E"
;;D^CREATININE CLEARANCE DATE/TIME
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^CREATININE CLEARANCE (ESTIM) DATE
;;R^"860.3:","860.31:1",2,"E"
;;D^DATE AFTER
;;R^"860.3:","860.31:1",3,"E"
;;D^0
;;EOR^
;;KEY^860.3:^CREATININE CLEARANCE ESTIMATE
;;R^"860.3:",.01,"E"
;;D^CREATININE CLEARANCE ESTIMATE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^DISPLAY
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CREATININE CLEARANCE (ESTIM) VALUE
;;R^"860.3:","860.31:3",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:3",3,"E"
;;D^50
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CREATININE CLEARANCE (ESTIM) VALUE
;;R^"860.3:","860.31:4",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:4",3,"E"
;;D^0
;;EOR^
;;KEY^860.3:^INPATIENT FOOD-DRUG REACTION
;;R^"860.3:",.01,"E"
;;D^INPATIENT FOOD-DRUG REACTION
;;R^"860.3:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^FOOD-DRUG INTERACTION MED
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;R^"860.3:","860.31:1",3,"E"
;;D^COUMADIN,WARFARIN,DISULFIRAM,PHENELZINE,TRANYLCYPROMINE,PARNATE
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CONTROL CODE
;;R^"860.3:","860.31:3",2,"E"
;;D^EQUALS ELEMENT IN SET
;;R^"860.3:","860.31:3",3,"E"
;;D^NW,SN
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^INPATIENT
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^RENAL RESULTS
;;R^"860.3:",.01,"E"
;;D^RENAL RESULTS
;;R^"860.3:",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^FORMATTED RENAL LAB RESULTS
;;R^"860.3:","860.31:1",2,"E"
;;D^NOT EQUAL TO
;;R^"860.3:","860.31:1",3,"E"
;;D^<Results Not Found>
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^CREATININE CLEARANCE ESTIMATION
;;R^"860.2:",.01,"E"
;;D^CREATININE CLEARANCE ESTIMATION
;;R^"860.2:","860.21:1",.01,"E"
;;D^CREAT CLEAR
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^CREATININE CLEARANCE ESTIMATE
;;R^"860.2:","860.21:2",.01,"E"
;;D^CREATININE CLEARANCE DATE
;;R^"860.2:","860.21:2",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:2",1,"E"
;;D^CREATININE CLEARANCE DATE/TIME
;;R^"860.2:","860.21:3",.01,"E"
;;D^RENAL RESULTS
;;R^"860.2:","860.21:3",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:3",1,"E"
;;D^RENAL RESULTS
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^IF CREAT CLEAR AND ( CREATININE CLEARANCE DATE OR RENAL RESULTS )
;;R^"860.2:","860.22:1",2,"E"
;;D^ESTIMATED CREATININE CLEARANCE
;;R^"860.2:","860.22:1",6,"E"
;;D^Est. CrCl: |CRCLV| (|FORMATTED RENAL LAB RESULTS|)
;;EOR^
;;KEY^860.2:^FOOD/DRUG INTERACTION
;;R^"860.2:",.01,"E"
;;D^FOOD/DRUG INTERACTION
;;R^"860.2:","860.21:1",.01,"E"
;;D^INPATIENT FOOD DRUG REACTION
;;R^"860.2:","860.21:1",1,"E"
;;D^INPATIENT FOOD-DRUG REACTION
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^INPATIENT FOOD DRUG REACTION
;;R^"860.2:","860.22:1",3,"E"
;;D^FOOD/DRUG INTERACTION
;;R^"860.2:","860.22:1",5,"E"
;;D^[|PT LOC|] |PHARMACY LOCAL ORDERABLE ITEM TEXT| ordered - adjust diet accordingly.
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
OCXRU00B ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*96) ;JAN 30,2001 at 11:16
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**96**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXRULE
+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("OCXRULE",$JOB,$ORDER(^TMP("OCXRULE",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
IF QUIT
QUIT
+8 ;
+9 ;
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^PATIENT.HL7_PATIENT_ID
+3 ;;EOR^
+4 ;;KEY^860.4:^PATIENT LOCATION
+5 ;;R^"860.4:",.01,"E"
+6 ;;D^PATIENT LOCATION
+7 ;;R^"860.4:",1,"E"
+8 ;;D^PT LOC
+9 ;;R^"860.4:",101,"E"
+10 ;;D^FREE TEXT
+11 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+12 ;;D^DATABASE LOOKUP
+13 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+14 ;;D^DATABASE LOOKUP
+15 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+16 ;;D^PATIENT.LOCATION
+17 ;;EOR^
+18 ;;KEY^860.4:^PHARMACY LOCAL ORDERABLE ITEM TEXT
+19 ;;R^"860.4:",.01,"E"
+20 ;;D^PHARMACY LOCAL ORDERABLE ITEM TEXT
+21 ;;R^"860.4:",101,"E"
+22 ;;D^FREE TEXT
+23 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+24 ;;D^GENERIC HL7 MESSAGE ARRAY
+25 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+26 ;;D^HL7 PHARMACY PRESCRIPTION ORDER SEGMENT
+27 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+28 ;;D^PATIENT.HL7_RX_OI_TEXT
+29 ;;EOR^
+30 ;;EOF^OCXS(860.4)^1
+31 ;;SOF^860.3 ORDER CHECK ELEMENT
+32 ;;KEY^860.3:^CANCELED BY NON-ORIG ORDERING PROVIDER
+33 ;;R^"860.3:",.01,"E"
+34 ;;D^CANCELED BY NON-ORIG ORDERING PROVIDER
+35 ;;R^"860.3:",.02,"E"
+36 ;;D^GENERIC HL7 MESSAGE ARRAY
+37 ;;R^"860.3:","860.31:1",.01,"E"
+38 ;;D^1
+39 ;;R^"860.3:","860.31:1",1,"E"
+40 ;;D^ORDERED BY
+41 ;;R^"860.3:","860.31:1",2,"E"
+42 ;;D^NOT EQUAL TO
+43 ;;R^"860.3:","860.31:1",4,"E"
+44 ;;D^ORDER CANCELED BY
+45 ;;EOR^
+46 ;;KEY^860.3:^CREATININE CLEARANCE DATE/TIME
+47 ;;R^"860.3:",.01,"E"
+48 ;;D^CREATININE CLEARANCE DATE/TIME
+49 ;;R^"860.3:",.02,"E"
+50 ;;D^DATABASE LOOKUP
+51 ;;R^"860.3:","860.31:1",.01,"E"
+52 ;;D^1
+53 ;;R^"860.3:","860.31:1",1,"E"
+54 ;;D^CREATININE CLEARANCE (ESTIM) DATE
+55 ;;R^"860.3:","860.31:1",2,"E"
+56 ;;D^DATE AFTER
+57 ;;R^"860.3:","860.31:1",3,"E"
+58 ;;D^0
+59 ;;EOR^
+60 ;;KEY^860.3:^CREATININE CLEARANCE ESTIMATE
+61 ;;R^"860.3:",.01,"E"
+62 ;;D^CREATININE CLEARANCE ESTIMATE
+63 ;;R^"860.3:",.02,"E"
+64 ;;D^CPRS ORDER PRESCAN
+65 ;;R^"860.3:","860.31:1",.01,"E"
+66 ;;D^1
+67 ;;R^"860.3:","860.31:1",1,"E"
+68 ;;D^ORDER MODE
+69 ;;R^"860.3:","860.31:1",2,"E"
+70 ;;D^EQ FREE TEXT
+71 ;;R^"860.3:","860.31:1",3,"E"
+72 ;;D^DISPLAY
+73 ;;R^"860.3:","860.31:2",.01,"E"
+74 ;;D^2
+75 ;;R^"860.3:","860.31:2",1,"E"
+76 ;;D^FILLER
+77 ;;R^"860.3:","860.31:2",2,"E"
+78 ;;D^STARTS WITH
+79 ;;R^"860.3:","860.31:2",3,"E"
+80 ;;D^PS
+81 ;;R^"860.3:","860.31:3",.01,"E"
+82 ;;D^3
+83 ;;R^"860.3:","860.31:3",1,"E"
+84 ;;D^CREATININE CLEARANCE (ESTIM) VALUE
+85 ;;R^"860.3:","860.31:3",2,"E"
+86 ;;D^LESS THAN
+87 ;;R^"860.3:","860.31:3",3,"E"
+88 ;;D^50
+89 ;;R^"860.3:","860.31:4",.01,"E"
+90 ;;D^4
+91 ;;R^"860.3:","860.31:4",1,"E"
+92 ;;D^CREATININE CLEARANCE (ESTIM) VALUE
+93 ;;R^"860.3:","860.31:4",2,"E"
+94 ;;D^GREATER THAN
+95 ;;R^"860.3:","860.31:4",3,"E"
+96 ;;D^0
+97 ;;EOR^
+98 ;;KEY^860.3:^INPATIENT FOOD-DRUG REACTION
+99 ;;R^"860.3:",.01,"E"
+100 ;;D^INPATIENT FOOD-DRUG REACTION
+101 ;;R^"860.3:",.02,"E"
+102 ;;D^GENERIC HL7 MESSAGE ARRAY
+103 ;;R^"860.3:","860.31:1",.01,"E"
+104 ;;D^1
+105 ;;R^"860.3:","860.31:1",1,"E"
+106 ;;D^FOOD-DRUG INTERACTION MED
+107 ;;R^"860.3:","860.31:1",2,"E"
+108 ;;D^LOGICAL TRUE
+109 ;;R^"860.3:","860.31:1",3,"E"
+110 ;;D^COUMADIN,WARFARIN,DISULFIRAM,PHENELZINE,TRANYLCYPROMINE,PARNATE
+111 ;;R^"860.3:","860.31:3",.01,"E"
+112 ;;D^3
+113 ;;R^"860.3:","860.31:3",1,"E"
+114 ;;D^CONTROL CODE
+115 ;;R^"860.3:","860.31:3",2,"E"
+116 ;;D^EQUALS ELEMENT IN SET
+117 ;;R^"860.3:","860.31:3",3,"E"
+118 ;;D^NW,SN
+119 ;;R^"860.3:","860.31:4",.01,"E"
+120 ;;D^4
+121 ;;R^"860.3:","860.31:4",1,"E"
+122 ;;D^INPATIENT
+123 ;;R^"860.3:","860.31:4",2,"E"
+124 ;;D^LOGICAL TRUE
+125 ;;EOR^
+126 ;;KEY^860.3:^RENAL RESULTS
+127 ;;R^"860.3:",.01,"E"
+128 ;;D^RENAL RESULTS
+129 ;;R^"860.3:",.02,"E"
+130 ;;D^DATABASE LOOKUP
+131 ;;R^"860.3:","860.31:1",.01,"E"
+132 ;;D^1
+133 ;;R^"860.3:","860.31:1",1,"E"
+134 ;;D^FORMATTED RENAL LAB RESULTS
+135 ;;R^"860.3:","860.31:1",2,"E"
+136 ;;D^NOT EQUAL TO
+137 ;;R^"860.3:","860.31:1",3,"E"
+138 ;;D^<Results Not Found>
+139 ;;EOR^
+140 ;;EOF^OCXS(860.3)^1
+141 ;;SOF^860.2 ORDER CHECK RULE
+142 ;;KEY^860.2:^CREATININE CLEARANCE ESTIMATION
+143 ;;R^"860.2:",.01,"E"
+144 ;;D^CREATININE CLEARANCE ESTIMATION
+145 ;;R^"860.2:","860.21:1",.01,"E"
+146 ;;D^CREAT CLEAR
+147 ;;R^"860.2:","860.21:1",.02,"E"
+148 ;;D^SIMPLE DEFINITION
+149 ;;R^"860.2:","860.21:1",1,"E"
+150 ;;D^CREATININE CLEARANCE ESTIMATE
+151 ;;R^"860.2:","860.21:2",.01,"E"
+152 ;;D^CREATININE CLEARANCE DATE
+153 ;;R^"860.2:","860.21:2",.02,"E"
+154 ;;D^SIMPLE DEFINITION
+155 ;;R^"860.2:","860.21:2",1,"E"
+156 ;;D^CREATININE CLEARANCE DATE/TIME
+157 ;;R^"860.2:","860.21:3",.01,"E"
+158 ;;D^RENAL RESULTS
+159 ;;R^"860.2:","860.21:3",.02,"E"
+160 ;;D^SIMPLE DEFINITION
+161 ;;R^"860.2:","860.21:3",1,"E"
+162 ;;D^RENAL RESULTS
+163 ;;R^"860.2:","860.22:1",.01,"E"
+164 ;;D^1
+165 ;;R^"860.2:","860.22:1",1,"E"
+166 ;;D^IF CREAT CLEAR AND ( CREATININE CLEARANCE DATE OR RENAL RESULTS )
+167 ;;R^"860.2:","860.22:1",2,"E"
+168 ;;D^ESTIMATED CREATININE CLEARANCE
+169 ;;R^"860.2:","860.22:1",6,"E"
+170 ;;D^Est. CrCl: |CRCLV| (|FORMATTED RENAL LAB RESULTS|)
+171 ;;EOR^
+172 ;;KEY^860.2:^FOOD/DRUG INTERACTION
+173 ;;R^"860.2:",.01,"E"
+174 ;;D^FOOD/DRUG INTERACTION
+175 ;;R^"860.2:","860.21:1",.01,"E"
+176 ;;D^INPATIENT FOOD DRUG REACTION
+177 ;;R^"860.2:","860.21:1",1,"E"
+178 ;;D^INPATIENT FOOD-DRUG REACTION
+179 ;;R^"860.2:","860.22:1",.01,"E"
+180 ;;D^1
+181 ;;R^"860.2:","860.22:1",1,"E"
+182 ;;D^INPATIENT FOOD DRUG REACTION
+183 ;;R^"860.2:","860.22:1",3,"E"
+184 ;;D^FOOD/DRUG INTERACTION
+185 ;;R^"860.2:","860.22:1",5,"E"
+186 ;;D^[|PT LOC|] |PHARMACY LOCAL ORDERABLE ITEM TEXT| ordered - adjust diet accordingly.
+187 ;;EOR^
+188 ;;EOF^OCXS(860.2)^1
+189 ;1;
+190 ;