Package ca.uhn.hl7v2.model.v23.segment
Class LOC
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v23.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 (PL)
- LOC-2: Location Description (ST) optional
- LOC-3: Location Type (IS) repeating
- LOC-4: Organization Name (XON) optional
- LOC-5: Location Address (XAD) optional
- LOC-6: Location Phone (XTN) optional repeating
- LOC-7: License Number (CE) optional repeating
- LOC-8: Location Equipment (ID) optional repeating
- 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" - creates it if necessaryReturns LOC-2: "Location Description" - creates it if necessaryIS[]Returns all repetitions of Location Type (LOC-3).getLoc3_LocationType(int rep) Returns a specific repetition of LOC-3: "Location Type" - creates it if necessaryintReturns a count of the current number of repetitions of Location Type (LOC-3).Returns LOC-4: "Organization Name" - creates it if necessaryReturns LOC-5: "Location Address" - creates it if necessaryXTN[]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).ID[]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-5: "Location Address" - creates it if necessaryReturns LOC-2: "Location Description" - creates it if necessaryID[]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).IS[]Returns all repetitions of Location Type (LOC-3).getLocationType(int rep) Returns a specific repetition of LOC-3: "Location Type" - creates it if necessaryintReturns a count of the current number of repetitions of Location Type (LOC-3).Returns LOC-4: "Organization Name" - creates it if necessaryReturns LOC-1: "Primary Key Value" - creates it if necessaryinsertLicenseNumber(int rep) Inserts a repetition of LOC-7: "License Number" at a specific indexinsertLoc3_LocationType(int rep) Inserts a repetition of LOC-3: "Location Type" 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 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 indexinsertLocationType(int rep) Inserts a repetition of LOC-3: "Location Type" at a specific indexremoveLicenseNumber(int rep) Removes a repetition of LOC-7: "License Number" at a specific indexremoveLoc3_LocationType(int rep) Removes a repetition of LOC-3: "Location Type" 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 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 indexremoveLocationType(int rep) Removes a repetition of LOC-3: "Location Type" 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
-
getPrimaryKeyValue
Returns LOC-1: "Primary Key Value" - creates it if necessary -
getLoc1_PrimaryKeyValue
Returns LOC-1: "Primary Key Value" - 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 -
getLocationType
Returns all repetitions of Location Type (LOC-3). -
getLoc3_LocationType
Returns all repetitions of Location Type (LOC-3). -
getLocationTypeReps
Returns a count of the current number of repetitions of Location Type (LOC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getLocationType
Returns a specific repetition of LOC-3: "Location Type" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc3_LocationType
Returns a specific repetition of LOC-3: "Location Type" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getLoc3_LocationTypeReps
Returns a count of the current number of repetitions of Location Type (LOC-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertLocationType
Inserts a repetition of LOC-3: "Location Type" 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_LocationType
Inserts a repetition of LOC-3: "Location Type" 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)
-
removeLocationType
Removes a repetition of LOC-3: "Location Type" 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_LocationType
Removes a repetition of LOC-3: "Location Type" 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)
-
getOrganizationName
Returns LOC-4: "Organization Name" - creates it if necessary -
getLoc4_OrganizationName
Returns LOC-4: "Organization Name" - creates it if necessary -
getLocationAddress
Returns LOC-5: "Location Address" - creates it if necessary -
getLoc5_LocationAddress
Returns LOC-5: "Location Address" - creates it if necessary -
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)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-