ca.uhn.hl7v2.model.v24.segment
Class ERR

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractSegment
      extended by ca.uhn.hl7v2.model.v24.segment.ERR
All Implemented Interfaces:
Segment, Structure, Serializable

public class ERR
extends AbstractSegment

Represents an HL7 ERR message segment (Error). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
ERR(Group parent, ModelClassFactory factory)
          Creates a new ERR segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 ELD getErr1_ErrorCodeAndLocation(int rep)
          Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary
 int getErr1_ErrorCodeAndLocationReps()
          Returns a count of the current number of repetitions of Error Code and Location (ERR-1).
 ELD[] getErrorCodeAndLocation()
          Returns all repetitions of Error Code and Location (ERR-1).
 ELD getErrorCodeAndLocation(int rep)
          Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary
 int getErrorCodeAndLocationReps()
          Returns a count of the current number of repetitions of Error Code and Location (ERR-1).
 ELD insertErr1_ErrorCodeAndLocation(int rep)
          Inserts a repetition of ERR-1: "Error Code and Location" at a specific index
 ELD insertErrorCodeAndLocation(int rep)
          Inserts a repetition of ERR-1: "Error Code and Location" at a specific index
 ELD removeErr1_ErrorCodeAndLocation(int rep)
          Removes a repetition of ERR-1: "Error Code and Location" at a specific index
 ELD removeErrorCodeAndLocation(int rep)
          Removes a repetition of ERR-1: "Error Code and Location" at a specific index
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractSegment
add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getMessage, getName, getNames, getParent, insertRepetition, isRequired, main, numFields, parse, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERR

public ERR(Group parent,
           ModelClassFactory factory)
Creates a new ERR segment

Method Detail

getErrorCodeAndLocation

public ELD[] getErrorCodeAndLocation()
Returns all repetitions of Error Code and Location (ERR-1).


getErrorCodeAndLocationReps

public int 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

public ELD getErrorCodeAndLocation(int rep)
Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getErr1_ErrorCodeAndLocation

public ELD getErr1_ErrorCodeAndLocation(int rep)
Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getErr1_ErrorCodeAndLocationReps

public int 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

public ELD insertErrorCodeAndLocation(int rep)
                               throws HL7Exception
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

public ELD insertErr1_ErrorCodeAndLocation(int rep)
                                    throws HL7Exception
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

public ELD removeErrorCodeAndLocation(int rep)
                               throws HL7Exception
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

public ELD removeErr1_ErrorCodeAndLocation(int rep)
                                    throws HL7Exception
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

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


Copyright © 2001-2011 University Health Network. All Rights Reserved.