Filter by time in Routing Rule

Primary tabs

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

  • 0
  • 0
  • 129
  • 2
  • 2

Answers

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

"AdmitDateTime.timeofanevent" is the correct specification.

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

Comments