HL7 RP Reference Pointer
HL7 datatype components RP 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
RP is a reference pointer. It points to data stored elsewhere; if the actual payload must travel inside the HL7 message, ED is usually the datatype you are looking for.
You may not see RP often in ordinary ADT, order, or result feeds. When it does appear, let the field definition and local implementation guide drive how much of it to populate.
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.
RP-1 to RP-4: 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.
The table-backed components here are RP-3, RP-4. Keep those values to the table or value set your implementation guide names, especially when the field is crossing organization boundaries.
- RP-1 Pointer - Pointer. Type ST.
- RP-2 Application ID - Application ID. Type HD.
- RP-3 Type of Data - Type of Data. Type ID. Table 0191.
- RP-4 Subtype - Subtype. Type ID. Table 0291.
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 RP 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.