HL7 ERL Error Location
HL7 datatype components ERL components from HL7 v2.5.1 Hide components
These are the generated components for the version selected at the top of the page. The article stays practical, and this panel follows the chosen HL7 version.
Components
| Pos | Component | Name | Type | Table | Description |
|---|---|---|---|---|---|
| 1 | ERL.1 | Segment ID | ST | Segment ID; Type ST. | |
| 2 | ERL.2 | Segment Sequence | NM | Segment Sequence; Type NM. | |
| 3 | ERL.3 | Field Position | NM | Field Position; Type NM. | |
| 4 | ERL.4 | Field Repetition | NM | Field Repetition; Type NM. | |
| 5 | ERL.5 | Component Number | NM | Component Number; Type NM. | |
| 6 | ERL.6 | Sub-Component Number | NM | Sub-Component Number; Type NM. |
ERL is a precise error location. It lets an ACK or error message point to a segment, field, repetition, component, or subcomponent instead of saying vaguely that the message is bad.
In this guide, ERL appears in ERR.2. That used-by list is a good reality check: the datatype is only half the story, and the field that uses it tells you the workflow.
The component panel above is expanded by default because most datatype pages are used as quick lookup pages. Start there for the exact HL7 v2.5.1 shape, then use the notes below for the practical gotchas.
ERL-1 to ERL-6: Component Quick Read
The generated component panel above is the formal quick lookup. The short version is below so you can scan the shape without counting carets by eye.
- ERL-1 Segment ID - Segment ID. Type ST.
- ERL-2 Segment Sequence - Segment Sequence. Type NM.
- ERL-3 Field Position - Field Position. Type NM.
- ERL-4 Field Repetition - Field Repetition. Type NM.
- ERL-5 Component Number - Component Number. Type NM.
- ERL-6 Sub-Component Number - Sub-Component Number. Type NM.
Practical Notes
Text still has to survive HL7 delimiters. If the source value can contain |, ^, ~, &, or a backslash, encode it before putting it into the message. Integration Soup and the HL7 parser helpers include HL7Encode and HL7Decode for that exact kind of cleanup.
In HL7 Soup Web, click a field that uses ERL and the interpretation view will show which component you are sitting in and where that value lives in the raw message. That is especially handy with compact datatypes because one missing caret can move every value after it.
Official and Reference Notes
For formal reference, compare the generated HL7 v2.5.1 panel above with the HL7 v2.5.1 datatype list and the HL7 Terminology data type code system. Local implementation guides can narrow allowed values, tables, and component usage.