The HL segment is used in several X12 transaction sets to identify levels of detail information using a hierarchical structure, such as relating dependents to a subscriber. Hierarchical levels may differ from guide to guide.
For example, each provider can bill for one or more subscribers, each subscriber can have one or more dependents and the subscriber and the dependents can make one or more claims.
Each guide states what levels are available, the level's usage, number of repeats, and whether that level has subordinate levels within a transaction set.
For implementations compliant with this guide, the repeats of the loopsidentified by the HL structure shall appear in the hierarchical order specifiedin BHT01, when those particular hierarchical levels exist. That is, an HL parentloop must be followed by the subordinate child loops, if any, prior tocommencing a new HL parent loop at the same hierarchical level.
The following diagram, from transaction set 837, illustrates a typicalhierarchy.
The two examples below illustrate this requirement:
Example 1 based on Implementation Guide 811X201:
INSURER
First STATE in transaction (child of INSURER)
First POLICY in transaction (child of first STATE)
First VEHICLE in transaction (child of first POLICY)
Second POLICY in transaction (child of first STATE)
Second VEHICLE in transaction (child of second POLICY)
Third VEHICLE in transaction (child of second POLICY)
Second STATE in transaction (child of INSURER)
Third POLICY in transaction (child of second STATE)
Fourth VEHICLE in transaction (child of third POLICY)
Example 2 based on Implementation Guide 837X141
First PROVIDER in transaction
First SUBSCRIBER in transaction (child of first PROVIDER)
Second PROVIDER in transaction
Second SUBSCRIBER in transaction (child of second PROVIDER)
First DEPENDENT in transaction (child of second SUBSCRIBER)
Second DEPENDENT in transaction (child of second SUBSCRIBER)
Third SUBSCRIBER in transaction (child of second PROVIDER)
Third PROVIDER in transaction
Fourth SUBSCRIBER in transaction (child of third PROVIDER)
Fifth SUBSCRIBER in transaction (child of third PROVIDER)
Third DEPENDENT in transaction (child of fifth SUBSCRIBER)