Package ca.uhn.hl7v2.model.v251.segment
Class LOC
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v251.segment.LOC
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 LOC message segment (Location Identification). This segment has the following fields:
- LOC-1: Primary Key Value - LOC (PL)
- LOC-2: Location Description (ST) optional
- LOC-3: Location Type - LOC (IS) repeating
- LOC-4: Organization Name - LOC (XON) optional repeating
- LOC-5: Location Address (XAD) optional repeating
- LOC-6: Location Phone (XTN) optional repeating
- LOC-7: License Number (CE) optional repeating
- LOC-8: Location Equipment (IS) optional repeating
- LOC-9: Location Service Code (IS) 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) CE[]Returns all repetitions of License Number (LOC-7).getLicenseNumber(int rep) Returns a specific repetition of LOC-7: "License Number" - creates it if necessaryintReturns a count of the current number of repetitions of License Number (LOC-7).Returns LOC-1: "Primary Key Value - LOC" - creates it if necessaryReturns LOC-2: "Location Description" - creates it if necessaryIS[]Returns all repetitions of Location Type - LOC (LOC-3).getLoc3_LocationTypeLOC(int rep) Returns a specific repetition of LOC-3: "Location Type - LOC" - creates it if necessaryintReturns a count of the current number of repetitions of Location Type - LOC (LOC-3).XON[]Returns all repetitions of Organization Name - LOC (LOC-4).getLoc4_OrganizationNameLOC(int rep) Returns a specific repetition of LOC-4: "Organization Name - LOC" - creates it if necessaryintReturns a count of the current number of repetitions of Organization Name - LOC (LOC-4).XAD[]Returns all repetitions of Location Address (LOC-5).getLoc5_LocationAddress(int rep) Returns a specific repetition of LOC-5: "Location Address" - creates it if necessaryintReturns a count of the current number of repetitions of Location Address (LOC-5).XTN[]Returns all repetitions of Location Phone (LOC-6).getLoc6_LocationPhone(int rep) Returns a specific repetition of LOC-6: "Location Phone" - creates it if necessaryintReturns a count of the current number of repetitions of Location Phone (LOC-6).CE[]Returns all repetitions of License Number (LOC-7).getLoc7_LicenseNumber(int rep) Returns a specific repetition of LOC-7: "License Number" - creates it if necessaryintReturns a count of the current number of repetitions of License Number (LOC-7).IS[]Returns all repetitions of Location Equipment (LOC-8).getLoc8_LocationEquipment(int rep) Returns a specific repetition of LOC-8: "Location Equipment" - creates it if necessaryintReturns a count of the current number of repetitions of Location Equipment (LOC-8).Returns LOC-9: "Location Service Code" - creates it if necessaryXAD[]Returns all repetitions of Location Address (LOC-5).getLocationAddress(int rep) Returns a specific repetition of LOC-5: "Location Address" - creates it if necessaryintReturns a count of the current number of repetitions of Location Address (LOC-5).Returns LOC-2: "Location Description" - creates it if necessaryIS[]Returns all repetitions of Location Equipment (LOC-8).getLocationEquipment(int rep) Returns a specific repetition of LOC-8: "Location Equipment" - creates it if necessaryintReturns a count of the current number of repetitions of Location Equipment (LOC-8).XTN[]Returns all repetitions of Location Phone (LOC-6).getLocationPhone(int rep) Returns a specific repetition of LOC-6: "Location Phone" - creates it if necessaryintReturns a count of the current number of repetitions of Location Phone (LOC-6).Returns LOC-9: "Location Service Code" - creates it if necessaryIS[]Returns all repetitions of Location Type - LOC (LOC-3).getLocationTypeLOC(int rep) Returns a specific repetition of LOC-3: "Location Type - LOC" - creates it if necessaryintReturns a count of the current number of repetitions of Location Type - LOC (LOC-3).XON[]Returns all repetitions of Organization Name - LOC (LOC-4).getOrganizationNameLOC(int rep) Returns a specific repetition of LOC-4: "Organization Name - LOC" - creates it if necessaryintReturns a count of the current number of repetitions of Organization Name - LOC (LOC-4).Returns LOC-1: "Primary Key Value - LOC" - creates it if necessaryinsertLicenseNumber(int rep) Inserts a repetition of LOC-7: "License Number" at a specific indexinsertLoc3_LocationTypeLOC(int rep) Inserts a repetition of LOC-3: "Location Type - LOC" at a specific indexinsertLoc4_OrganizationNameLOC(int rep) Inserts a repetition of LOC-4: "Organization Name - LOC" at a specific indexinsertLoc5_LocationAddress(int rep) Inserts a repetition of LOC-5: "Location Address" at a specific indexinsertLoc6_LocationPhone(int rep) Inserts a repetition of LOC-6: "Location Phone" at a specific indexinsertLoc7_LicenseNumber(int rep) Inserts a repetition of LOC-7: "License Number" at a specific indexinsertLoc8_LocationEquipment(int rep) Inserts a repetition of LOC-8: "Location Equipment" at a specific indexinsertLocationAddress(int rep) Inserts a repetition of LOC-5: "Location Address" at a specific indexinsertLocationEquipment(int rep) Inserts a repetition of LOC-8: "Location Equipment" at a specific indexinsertLocationPhone(int rep) Inserts a repetition of LOC-6: "Location Phone" at a specific indexinsertLocationTypeLOC(int rep) Inserts a repetition of LOC-3: "Location Type - LOC" at a specific indexinsertOrganizationNameLOC(int rep) Inserts a repetition of LOC-4: "Organization Name - LOC" at a specific indexremoveLicenseNumber(int rep) Removes a repetition of LOC-7: "License Number" at a specific indexremoveLoc3_LocationTypeLOC(int rep) Removes a repetition of LOC-3: "Location Type - LOC" at a specific indexremoveLoc4_OrganizationNameLOC(int rep) Removes a repetition of LOC-4: "Organization Name - LOC" at a specific indexremoveLoc5_LocationAddress(int rep) Removes a repetition of LOC-5: "Location Address" at a specific indexremoveLoc6_LocationPhone(int rep) Removes a repetition of LOC-6: "Location Phone" at a specific indexremoveLoc7_LicenseNumber(int rep) Removes a repetition of LOC-7: "License Number" at a specific indexremoveLoc8_LocationEquipment(int rep) Removes a repetition of LOC-8: "Location Equipment" at a specific indexremoveLocationAddress(int rep) Removes a repetition of LOC-5: "Location Address" at a specific indexremoveLocationEquipment(int rep) Removes a repetition of LOC-8: "Location Equipment" at a specific indexremoveLocationPhone(int rep) Removes a repetition of LOC-6: "Location Phone" at a specific indexremoveLocationTypeLOC(int rep) Removes a repetition of LOC-3: "Location Type - LOC" at a specific indexremoveOrganizationNameLOC(int rep) Removes a repetition of LOC-4: "Organization Name - LOC" 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
-
LOC
Creates a new LOC segment
-
-
Method Details
-
getPrimaryKeyValueLOC
Returns LOC-1: "Primary Key Value - LOC" - creates it if necessary -
getLoc1_PrimaryKeyValueLOC
Returns LOC-1: "Primary Key Value - LOC" - creates it if necessary -
getLocationDescription
Returns LOC-2: "Location Description" - creates it if necessary -
getLoc2_LocationDescription
Returns LOC-2: "Location Description" - creates it if necessary -
getLocationTypeLOC
Returns all repetitions of Location Type - LOC (LOC-3). -
getLoc3_LocationTypeLOC
Returns all repetitions of Location Type - LOC (LOC-3). -
getLocationTypeLOCReps
Returns a count of the current number of repetitions of Location Type - LOC (LOC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLocationTypeLOC
Returns a specific repetition of LOC-3: "Location Type - LOC" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc3_LocationTypeLOC
Returns a specific repetition of LOC-3: "Location Type - LOC" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc3_LocationTypeLOCReps
Returns a count of the current number of repetitions of Location Type - LOC (LOC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLocationTypeLOC
Inserts a repetition of LOC-3: "Location Type - LOC" 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)
-
insertLoc3_LocationTypeLOC
Inserts a repetition of LOC-3: "Location Type - LOC" 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)
-
removeLocationTypeLOC
Removes a repetition of LOC-3: "Location Type - LOC" 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)
-
removeLoc3_LocationTypeLOC
Removes a repetition of LOC-3: "Location Type - LOC" 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)
-
getOrganizationNameLOC
Returns all repetitions of Organization Name - LOC (LOC-4). -
getLoc4_OrganizationNameLOC
Returns all repetitions of Organization Name - LOC (LOC-4). -
getOrganizationNameLOCReps
Returns a count of the current number of repetitions of Organization Name - LOC (LOC-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getOrganizationNameLOC
Returns a specific repetition of LOC-4: "Organization Name - LOC" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc4_OrganizationNameLOC
Returns a specific repetition of LOC-4: "Organization Name - LOC" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc4_OrganizationNameLOCReps
Returns a count of the current number of repetitions of Organization Name - LOC (LOC-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertOrganizationNameLOC
Inserts a repetition of LOC-4: "Organization Name - LOC" 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)
-
insertLoc4_OrganizationNameLOC
Inserts a repetition of LOC-4: "Organization Name - LOC" 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)
-
removeOrganizationNameLOC
Removes a repetition of LOC-4: "Organization Name - LOC" 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)
-
removeLoc4_OrganizationNameLOC
Removes a repetition of LOC-4: "Organization Name - LOC" 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)
-
getLocationAddress
Returns all repetitions of Location Address (LOC-5). -
getLoc5_LocationAddress
Returns all repetitions of Location Address (LOC-5). -
getLocationAddressReps
Returns a count of the current number of repetitions of Location Address (LOC-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLocationAddress
Returns a specific repetition of LOC-5: "Location Address" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc5_LocationAddress
Returns a specific repetition of LOC-5: "Location Address" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc5_LocationAddressReps
Returns a count of the current number of repetitions of Location Address (LOC-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLocationAddress
Inserts a repetition of LOC-5: "Location Address" 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)
-
insertLoc5_LocationAddress
Inserts a repetition of LOC-5: "Location Address" 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)
-
removeLocationAddress
Removes a repetition of LOC-5: "Location Address" 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)
-
removeLoc5_LocationAddress
Removes a repetition of LOC-5: "Location Address" 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)
-
getLocationPhone
Returns all repetitions of Location Phone (LOC-6). -
getLoc6_LocationPhone
Returns all repetitions of Location Phone (LOC-6). -
getLocationPhoneReps
Returns a count of the current number of repetitions of Location Phone (LOC-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLocationPhone
Returns a specific repetition of LOC-6: "Location Phone" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc6_LocationPhone
Returns a specific repetition of LOC-6: "Location Phone" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc6_LocationPhoneReps
Returns a count of the current number of repetitions of Location Phone (LOC-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLocationPhone
Inserts a repetition of LOC-6: "Location Phone" 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)
-
insertLoc6_LocationPhone
Inserts a repetition of LOC-6: "Location Phone" 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)
-
removeLocationPhone
Removes a repetition of LOC-6: "Location Phone" 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)
-
removeLoc6_LocationPhone
Removes a repetition of LOC-6: "Location Phone" 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)
-
getLicenseNumber
Returns all repetitions of License Number (LOC-7). -
getLoc7_LicenseNumber
Returns all repetitions of License Number (LOC-7). -
getLicenseNumberReps
Returns a count of the current number of repetitions of License Number (LOC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLicenseNumber
Returns a specific repetition of LOC-7: "License Number" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc7_LicenseNumber
Returns a specific repetition of LOC-7: "License Number" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc7_LicenseNumberReps
Returns a count of the current number of repetitions of License Number (LOC-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLicenseNumber
Inserts a repetition of LOC-7: "License Number" 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)
-
insertLoc7_LicenseNumber
Inserts a repetition of LOC-7: "License Number" 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)
-
removeLicenseNumber
Removes a repetition of LOC-7: "License Number" 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)
-
removeLoc7_LicenseNumber
Removes a repetition of LOC-7: "License Number" 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)
-
getLocationEquipment
Returns all repetitions of Location Equipment (LOC-8). -
getLoc8_LocationEquipment
Returns all repetitions of Location Equipment (LOC-8). -
getLocationEquipmentReps
Returns a count of the current number of repetitions of Location Equipment (LOC-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLocationEquipment
Returns a specific repetition of LOC-8: "Location Equipment" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc8_LocationEquipment
Returns a specific repetition of LOC-8: "Location Equipment" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc8_LocationEquipmentReps
Returns a count of the current number of repetitions of Location Equipment (LOC-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLocationEquipment
Inserts a repetition of LOC-8: "Location Equipment" 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)
-
insertLoc8_LocationEquipment
Inserts a repetition of LOC-8: "Location Equipment" 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)
-
removeLocationEquipment
Removes a repetition of LOC-8: "Location Equipment" 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)
-
removeLoc8_LocationEquipment
Removes a repetition of LOC-8: "Location Equipment" 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)
-
getLocationServiceCode
Returns LOC-9: "Location Service Code" - creates it if necessary -
getLoc9_LocationServiceCode
Returns LOC-9: "Location Service Code" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-