visit the hl7 website The Demo site for our new HL7 Version 2+ (plus) Standard

18.8.78 LRL - Location Relationship Segment (8.9.4)

The Technical Steward for the LRL segment is Patient Administration.

The LRL segment is used to identify one location's relationship to another location, the nearest lab, pharmacy, etc.

HL7 Attribute Table - LRL - Location Relationship

Base Framework
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
LRL
100943Primary Key Value - LRL SHOULD[1..1] 
PL

Person Location

200763Segment Action Code MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

300764Segment Unique Key MAY[0..1] 
EI

Entity Identifier

401277Location Relationship ID SHOULD[1..1] ex.:LocationRelationshipId (CD)
CWE

Coded with Exceptions


501301Organizational Location Relationship Value
C

Condition defined for this element

MAY[0..*] 
XON

Extended Composite Name and Identification Number for Organizations

601292Patient Location Relationship Value
C

Condition defined for this element

MAY[0..1] 
PL

Person Location

Conditions/Invariants

The root for the expression is on the segment.

Seq. Referenced Elements Introduction Invariant Comment
1 ?

Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
LRL
100943Primary Key Value - LRL SHALL[1..1] 
PL

Person Location

200763Segment Action Code MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

300764Segment Unique Key MAY[0..1] 
EI

Entity Identifier

401277Location Relationship ID SHALL[1..1] ex.:LocationRelationshipId (CD) hl7VS-locationRelationshipId (VS) locationRelationship (CS)
CWE

Coded with Exceptions


501301Organizational Location Relationship Value
C

Condition defined for this element

MAY[0..*] 
XON

Extended Composite Name and Identification Number for Organizations

601292Patient Location Relationship Value
C

Condition defined for this element

MAY[0..1] 
PL

Person Location

Base FrameworkBase Standard Profile
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData TypeImplementVocabulary
LRL 
100943Primary Key Value - LRL SHOULD[1..1] 
PL

Person Location

SHALL
200763Segment Action Code MAY[0..1][1..1]univ: SegmentActionCode (CD) hl7VS-segmentActionCode (VS) segmentAction (CS)
ID

Coded Value for HL7 Defined Tables

MAY 
300764Segment Unique Key MAY[0..1] 
EI

Entity Identifier

MAY
401277Location Relationship ID SHOULD[1..1] ex.:LocationRelationshipId (CD)
CWE

Coded with Exceptions

SHALLhl7VS-locationRelationshipId (VS) locationRelationship (CS)

501301Organizational Location Relationship Value
C

Condition defined for this element

MAY[0..*] 
XON

Extended Composite Name and Identification Number for Organizations

MAY
601292Patient Location Relationship Value
C

Condition defined for this element

MAY[0..1] 
PL

Person Location

MAY
Base Framework Base Standard Profile
Seq# Data Element Description Flags Optionality Repetition Length C.LEN Table Data Type Optionality Table
LRL  
1 00943 Primary Key Value - LRL   O      
PL

Person Location

R  
2 00763 Segment Action Code   O   [1..1]  
ID

Coded Value for HL7 Defined Tables

  (0206)
3 00764 Segment Unique Key   O      
EI

Entity Identifier

   
4 01277 Location Relationship ID   O     (0325)
CWE

Coded with Exceptions

R  

5 01301 Organizational Location Relationship Value
C

Condition defined for this element

O Y    
XON

Extended Composite Name and Identification Number for Organizations

   
6 01292 Patient Location Relationship Value
C

Condition defined for this element

O      
PL

Person Location

   
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
LRL
1 00943 Primary Key Value - LRL R      
PL

Person Location

2 00763 Segment Action Code O   [1..1] (0206)
ID

Coded Value for HL7 Defined Tables

3 00764 Segment Unique Key O      
EI

Entity Identifier

4 01277 Location Relationship ID R     (0325)
CWE

Coded with Exceptions

5 01301 Organizational Location Relationship Value C Y    
XON

Extended Composite Name and Identification Number for Organizations

6 01292 Patient Location Relationship Value C      
PL

Person Location

18.8.78.1 LRL Field Definitions (8.9.4.0)

18.8.78.2 LRL-1 Primary Key Value - LRL (PL) 00943 (8.9.4.1)

Definition: This field contains the institution's identification code for the location. The identifying key value. This field has the same components as the patient location fields in the PV1 segment (except that bed status is not included here). At least the first component of this field is required. The contents of this field must exactly match the content of its preceding MFE (MFE-4 - Primary Key Value - MFE), its preceding LOC (LOC-1 - Primary Key Value - LOC), and its preceding LDP (LDP-1 - Primary Key Value - LDP).

18.8.78.3 LRL-2 Segment Action Code (ID) 00763 (8.9.4.2)

Definition: This field indicates whether this repetition of the segment is being added, changed or deleted. The action code adds a validation check to indicate, from the point of view of the sending system, whether this repetition of a segment is being added, changed or deleted. This and the following field are used to implement the "unique key" mode of updating repeating segments. (See Chapter 2, section 2.10.4.2, "Action code/unique identifier mode update definition.") Refer to HL7 Table 0206 - Segment Action Code in Chapter 2C, Code Tables, for valid values.

18.8.78.4 LRL-3 Segment Unique Key (EI) 00764 (8.9.4.3)

Definition: This field contains a unique identifier for one of the multiple repetitions of this segment, to be used in conjunction with the preceding field. Each of the repetitions of the segment will be uniquely identified by this unique key field for the purposes of updates.

18.8.78.5 LRL-4 Location Relationship ID (CWE) 01277 (8.9.4.4)

Definition: This field contains an identifier code to show WHICH relationship is being communicated with this segment. Refer to User-defined Table 0325 - Location Relationship ID for suggested values.

18.8.78.6 LRL-5 Organizational Location Relationship Value (XON) 01301 (8.9.4.5)

Definition: This field is conditional on the value of LRL-4 - Location Relationship ID. When LRL-4 -Location Relationship ID contains "RX"- Nearest Pharmacy, "RX2"- Other Pharmacy, "LAB"- Nearest Lab, "LB2"- Other Lab, or "DTY"- Dietary, this field holds that organization's extended name, i.e., the value of this field is conditional on the value of LRL-4 - Location Relationship ID. For example, for an inpatient location, this could be an in-house department ID code using only the third component of this data type. For an outpatient location, this could be the nearest external pharmacy.

18.8.78.7 LRL-6 Patient Location Relationship Value (PL) 01292 (8.9.4.6)

Definition: This field is conditional on the value of LRL-4 - Location Relationship ID. When LRL-4 -Location Relationship ID contains "ALI"- Location aliases or "PAR"- Parent location this field holds the value of the associated patient location.

When LRL-4 - Location Relationship ID contains "PAR"- Parent, this field holds the value of the parent location to allow for nested entries. For example, a bed entry can point to its containing room or nurse unit. The value for the parent location should match the LOC-1 - Primary Key Value - LOC of the parent entry. Not intended to be used for multiple designations of the same physical location, but for identifying the larger physical locations (supersets) which include this physical location as a subset.