Validate Field is empty

This tutorial explains how to build a Segment/Field rule validating that field has no values

In this example, we’ll validate that PV1.45 (Discharge Date/Time) is not set.

  1. In the inbound HL7 task, select the Validation tab
  2. Select the Segment/Field Validation tab
  3. Add a rule: PV1.45 is empty
  4. Click Advanced Mode
  5. Add a second rule: Or PV1.45 is not empty

     

    These rules mean:

    • First rule:  PV1.45 is not set.  Delimiters are present but there is nothing in the field.
    • Second rule: This rule covers the case where delimiters are not provided for PV1.45.  For instance, the last field is PV1.44 Admit Date/Time with no delimiter at the end.

 

Download the rules file (Field is empty.cxf)

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