Written by

Enterprise Application Development Consultant at The Ohio State University Wexner Medical Center
MOD
Question Scott Roth · Aug 19, 2019

Filter by time in Routing Rule

I have a colleague that is trying to eliminate any HL7 transactions that have admit date/time of midnight from going to an downstream system within a routing rule. I have tried several different iterations of code trying to figure this out just in the routing editor. Without having to write an object script function is this possible?

((HL7.{PV1:AssignedPatientLocation.PointofCare}="D3")||(HL7.{PV1:AssignedPatientLocation.PointofCare}="D4"))&&(SUBSTRING(HL7.{PV1:AdmitDateTime.Time},9,12)!=0000)

Thanks

Scott Roth

Comments

Jeffrey Drumm · Aug 19, 2019

I'm thinking that you may want quotes around the 0000 value ... you are, after all comparing it to a string laugh

0
Michel Bruyère · Aug 21, 2019

"AdmitDateTime.timeofanevent" is the correct specification.

Also is better to write ="0000" but it's work your way.

0