I have a routing rule that uses Matches e.g. Matches "1P4N1P1A5N1A1P" that matches against this string <0508:F00002R>

How do I include literals within the expression editor?

Pattern match doc indicates something like this 1P4N":F"5N"R"1P

Since within the expression is surrounded by double-quotes, that breaks the syntax in the editor.

Have tried many variations, none of which work.

Marc,

Thanks for the reply.

What I'm trying to do is to check the contents of each record that contains value for a result component (ObservationValue) to determine if it is null or = NP so I can filter out messages that do not contain any valid results. Since the record can have one or more  ObservationValue items in the message, I need to evaluate all that exist to determine whether the record is considered valid or not.

If it were an HL7 message, these would be the OBX-5 values in a message.

In the context of a record map these are properties in the record map defined as list of %String.

Tried your suggestion searching for some text I know is found in one of the records, but I get a PROPERTY DOES NOT EXISTS error. Perhaps I have the syntax wrong. I'm positive the field I'm using is defined and named as I have used in the rule.

This is the syntax I used in the rule:

You can access an element or attribute without loading a schema by using the "path" to the element or attribute. 

For an element called "name":

Document.{/ClinicalDocument/recordTarget/patientRole/providerOrganization/name}

For an attribute  of "id" called  "extension":

Document.{/ClinicalDocument/recordTarget/patientRole/providerOrganization/id/@extension}