This tutorial explains how to build a Segment/Field rule validating that a field value is in a predefined code set.
In this example, we’ll validate that PID.8 (Administrative Sex) is equal to one of the codes in the following table. The table is preset in a conformance profile.
To learn more about how to add or customize a table in a conformance profile, refer to the profile documentation
- In the inbound HL7 task, select the Validation tab
- Select the Segment/Field Validation tab
- Add a rule: PID.8 is in table 0001 – Administrative Sex
The rule returns a pass (success) if it can find the PID.8 field value in the conformance profile table. If it doesn’t, the validation fails.
Learn more about how to import validation rules into an inbound HL7 task.