Path Expressions
  • 14 Jun 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Path Expressions

  • Dark
    Light
  • PDF

Article summary

Whenever you specify a message part's path property, you are telling it the location of a data element within the HL7 message. However, sometimes the mapping requires the combination of more than one data element. In order to accommodate this scenario, Dr. Know supports path expressions.

A path expression is simply any expression with one or more paths specified, each contained within curly braces ({ }).


Examples

Here are a few examples that will demonstrate this easy, but powerful ability. Combined with value mappings (discussed later), path expressions can help you easily accommodate even the trickiest of communications mappings.

{PID.3.1}, {PID.3.2} {PID.3.3}
  • This expression could be used to represent the full name of a patient
  • LastName, FirstName MI
{OBR2.1}-{OBR2.2.1.2}
  • This expression could be used as a mapping of two data elements found in the same ORB segment
{MSH.3.1}^{MSH.3.2}
  • This expression could be used to mimic a sub-section of the raw data packet

What's Next