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

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

public class ECR
extends AbstractSegment

Represents an HL7 ECR message segment (Equipment Command Response). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
ECR(Group parent, ModelClassFactory factory)
          Creates a new ECR segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE getCommandResponse()
          Returns ECR-1: "Command Response" - creates it if necessary
 ST[] getCommandResponseParameters()
          Returns all repetitions of Command Response Parameters (ECR-3).
 ST getCommandResponseParameters(int rep)
          Returns a specific repetition of ECR-3: "Command Response Parameters" - creates it if necessary
 int getCommandResponseParametersReps()
          Returns a count of the current number of repetitions of Command Response Parameters (ECR-3).
 TS getDateTimeCompleted()
          Returns ECR-2: "Date/Time Completed" - creates it if necessary
 CE getEcr1_CommandResponse()
          Returns ECR-1: "Command Response" - creates it if necessary
 TS getEcr2_DateTimeCompleted()
          Returns ECR-2: "Date/Time Completed" - creates it if necessary
 ST getEcr3_CommandResponseParameters(int rep)
          Returns a specific repetition of ECR-3: "Command Response Parameters" - creates it if necessary
 int getEcr3_CommandResponseParametersReps()
          Returns a count of the current number of repetitions of Command Response Parameters (ECR-3).
 ST insertCommandResponseParameters(int rep)
          Inserts a repetition of ECR-3: "Command Response Parameters" at a specific index
 ST insertEcr3_CommandResponseParameters(int rep)
          Inserts a repetition of ECR-3: "Command Response Parameters" at a specific index
 ST removeCommandResponseParameters(int rep)
          Removes a repetition of ECR-3: "Command Response Parameters" at a specific index
 ST removeEcr3_CommandResponseParameters(int rep)
          Removes a repetition of ECR-3: "Command Response Parameters" 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

ECR

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

Method Detail

getCommandResponse

public CE getCommandResponse()
Returns ECR-1: "Command Response" - creates it if necessary


getEcr1_CommandResponse

public CE getEcr1_CommandResponse()
Returns ECR-1: "Command Response" - creates it if necessary


getDateTimeCompleted

public TS getDateTimeCompleted()
Returns ECR-2: "Date/Time Completed" - creates it if necessary


getEcr2_DateTimeCompleted

public TS getEcr2_DateTimeCompleted()
Returns ECR-2: "Date/Time Completed" - creates it if necessary


getCommandResponseParameters

public ST[] getCommandResponseParameters()
Returns all repetitions of Command Response Parameters (ECR-3).


getCommandResponseParametersReps

public int getCommandResponseParametersReps()
Returns a count of the current number of repetitions of Command Response Parameters (ECR-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getCommandResponseParameters

public ST getCommandResponseParameters(int rep)
Returns a specific repetition of ECR-3: "Command Response Parameters" - creates it if necessary

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

getEcr3_CommandResponseParameters

public ST getEcr3_CommandResponseParameters(int rep)
Returns a specific repetition of ECR-3: "Command Response Parameters" - creates it if necessary

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

getEcr3_CommandResponseParametersReps

public int getEcr3_CommandResponseParametersReps()
Returns a count of the current number of repetitions of Command Response Parameters (ECR-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertCommandResponseParameters

public ST insertCommandResponseParameters(int rep)
                                   throws HL7Exception
Inserts a repetition of ECR-3: "Command Response Parameters" 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)

insertEcr3_CommandResponseParameters

public ST insertEcr3_CommandResponseParameters(int rep)
                                        throws HL7Exception
Inserts a repetition of ECR-3: "Command Response Parameters" 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)

removeCommandResponseParameters

public ST removeCommandResponseParameters(int rep)
                                   throws HL7Exception
Removes a repetition of ECR-3: "Command Response Parameters" 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)

removeEcr3_CommandResponseParameters

public ST removeEcr3_CommandResponseParameters(int rep)
                                        throws HL7Exception
Removes a repetition of ECR-3: "Command Response Parameters" 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.