Validate Field1 = Field2

How to build a build a Segment/Field rule validating that 2 fields have the same value

In this example, we’ll validate that values for EVN.1 and MSH.9.2 are equal.

  1. In the inbound HL7 task, select the Validation tab
  2. Select the Segment/Field Validation tab
  3. Add the rule:  EVN.1 is = @HL7(“MSH.9.2”) where @HL7(“MSH.9.2”) refers to the field MSH.9.2 value


 You can download the rule file for use in Caristix Workgroup or Test software.


Download the rule file (Field1 = Field2.cxf)

Learn more about how to import validation rules into an inbound HL7 task.