Package ca.uhn.hl7v2.model.v251.segment
Class LRL
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v251.segment.LRL
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 LRL message segment (Location Relationship). This segment has the following fields:
- LRL-1: Primary Key Value - LRL (PL)
- LRL-2: Segment Action Code (ID) optional
- LRL-3: Segment Unique Key (EI) optional
- LRL-4: Location Relationship ID (CE)
- LRL-5: Organizational Location Relationship Value (XON) optional repeating
- LRL-6: Patient Location Relationship Value (PL) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns LRL-4: "Location Relationship ID" - creates it if necessaryReturns LRL-1: "Primary Key Value - LRL" - creates it if necessaryReturns LRL-2: "Segment Action Code" - creates it if necessaryReturns LRL-3: "Segment Unique Key" - creates it if necessaryReturns LRL-4: "Location Relationship ID" - creates it if necessaryXON[]Returns all repetitions of Organizational Location Relationship Value (LRL-5).Returns a specific repetition of LRL-5: "Organizational Location Relationship Value" - creates it if necessaryintReturns a count of the current number of repetitions of Organizational Location Relationship Value (LRL-5).Returns LRL-6: "Patient Location Relationship Value" - creates it if necessaryXON[]Returns all repetitions of Organizational Location Relationship Value (LRL-5).Returns a specific repetition of LRL-5: "Organizational Location Relationship Value" - creates it if necessaryintReturns a count of the current number of repetitions of Organizational Location Relationship Value (LRL-5).Returns LRL-6: "Patient Location Relationship Value" - creates it if necessaryReturns LRL-1: "Primary Key Value - LRL" - creates it if necessaryReturns LRL-2: "Segment Action Code" - creates it if necessaryReturns LRL-3: "Segment Unique Key" - creates it if necessaryInserts a repetition of LRL-5: "Organizational Location Relationship Value" at a specific indexInserts a repetition of LRL-5: "Organizational Location Relationship Value" at a specific indexRemoves a repetition of LRL-5: "Organizational Location Relationship Value" at a specific indexRemoves a repetition of LRL-5: "Organizational Location Relationship Value" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
LRL
Creates a new LRL segment
-
-
Method Details
-
getPrimaryKeyValueLRL
Returns LRL-1: "Primary Key Value - LRL" - creates it if necessary -
getLrl1_PrimaryKeyValueLRL
Returns LRL-1: "Primary Key Value - LRL" - creates it if necessary -
getSegmentActionCode
Returns LRL-2: "Segment Action Code" - creates it if necessary -
getLrl2_SegmentActionCode
Returns LRL-2: "Segment Action Code" - creates it if necessary -
getSegmentUniqueKey
Returns LRL-3: "Segment Unique Key" - creates it if necessary -
getLrl3_SegmentUniqueKey
Returns LRL-3: "Segment Unique Key" - creates it if necessary -
getLocationRelationshipID
Returns LRL-4: "Location Relationship ID" - creates it if necessary -
getLrl4_LocationRelationshipID
Returns LRL-4: "Location Relationship ID" - creates it if necessary -
getOrganizationalLocationRelationshipValue
Returns all repetitions of Organizational Location Relationship Value (LRL-5). -
getLrl5_OrganizationalLocationRelationshipValue
Returns all repetitions of Organizational Location Relationship Value (LRL-5). -
getOrganizationalLocationRelationshipValueReps
Returns a count of the current number of repetitions of Organizational Location Relationship Value (LRL-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getOrganizationalLocationRelationshipValue
Returns a specific repetition of LRL-5: "Organizational Location Relationship Value" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLrl5_OrganizationalLocationRelationshipValue
Returns a specific repetition of LRL-5: "Organizational Location Relationship Value" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLrl5_OrganizationalLocationRelationshipValueReps
Returns a count of the current number of repetitions of Organizational Location Relationship Value (LRL-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertOrganizationalLocationRelationshipValue
Inserts a repetition of LRL-5: "Organizational Location Relationship Value" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertLrl5_OrganizationalLocationRelationshipValue
Inserts a repetition of LRL-5: "Organizational Location Relationship Value" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeOrganizationalLocationRelationshipValue
Removes a repetition of LRL-5: "Organizational Location Relationship Value" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeLrl5_OrganizationalLocationRelationshipValue
Removes a repetition of LRL-5: "Organizational Location Relationship Value" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPatientLocationRelationshipValue
Returns LRL-6: "Patient Location Relationship Value" - creates it if necessary -
getLrl6_PatientLocationRelationshipValue
Returns LRL-6: "Patient Location Relationship Value" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-