HL7 filter out messages that has specific tekst in PID segment
I am relativly new to this, so excuse me if i am asking a dumb question
HL7 schema is 2.4
When a HL7 message comes in and in the PID segment on spot 4 the word "Relation" is written, i want to filter out those messages through a Router Rule.
I have come up with several rules (when conditions), here are some examples.
HL7.{PID:4} CONTAINS "Relation"
or
HL7.{PID:AlternatePatientIDPID(1).ID} CONTAINS "Relation"
I have tried a lot of different Rules, but no luck yet.
But every time i test a massege what contains the word Relation in de PID segment on spot 4 it states ".....no whens matched...."
What am i doing wrong??
Product version: HealthShare 2020.1