Package ca.uhn.hl7v2.model.v22.segment
Class ERR
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.segment.ERR
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 ERR message segment (ERROR). This segment has the following fields:
- ERR-1: Error Code and Location (CM_ELD) 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) CM_ELD[]Returns all repetitions of Error Code and Location (ERR-1).getErr1_ErrorCodeAndLocation(int rep) Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessaryintReturns a count of the current number of repetitions of Error Code and Location (ERR-1).CM_ELD[]Returns all repetitions of Error Code and Location (ERR-1).getErrorCodeAndLocation(int rep) Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessaryintReturns a count of the current number of repetitions of Error Code and Location (ERR-1).insertErr1_ErrorCodeAndLocation(int rep) Inserts a repetition of ERR-1: "Error Code and Location" at a specific indexinsertErrorCodeAndLocation(int rep) Inserts a repetition of ERR-1: "Error Code and Location" at a specific indexremoveErr1_ErrorCodeAndLocation(int rep) Removes a repetition of ERR-1: "Error Code and Location" at a specific indexremoveErrorCodeAndLocation(int rep) Removes a repetition of ERR-1: "Error Code and Location" 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
-
ERR
Creates a new ERR segment
-
-
Method Details
-
getErrorCodeAndLocation
Returns all repetitions of Error Code and Location (ERR-1). -
getErr1_ErrorCodeAndLocation
Returns all repetitions of Error Code and Location (ERR-1). -
getErrorCodeAndLocationReps
Returns a count of the current number of repetitions of Error Code and Location (ERR-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getErrorCodeAndLocation
Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getErr1_ErrorCodeAndLocation
Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getErr1_ErrorCodeAndLocationReps
Returns a count of the current number of repetitions of Error Code and Location (ERR-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertErrorCodeAndLocation
Inserts a repetition of ERR-1: "Error Code and Location" 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)
-
insertErr1_ErrorCodeAndLocation
Inserts a repetition of ERR-1: "Error Code and Location" 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)
-
removeErrorCodeAndLocation
Removes a repetition of ERR-1: "Error Code and Location" 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)
-
removeErr1_ErrorCodeAndLocation
Removes a repetition of ERR-1: "Error Code and Location" 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
-