Class ECR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class ECR extends AbstractSegment

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

  • ECR-1: Command Response (CE)
  • ECR-2: Date/Time Completed (TS)
  • ECR-3: Command Response Parameters (ST) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getCommandResponse

      Returns ECR-1: "Command Response" - creates it if necessary
    • getEcr1_CommandResponse

      Returns ECR-1: "Command Response" - creates it if necessary
    • getDateTimeCompleted

      Returns ECR-2: "Date/Time Completed" - creates it if necessary
    • getEcr2_DateTimeCompleted

      Returns ECR-2: "Date/Time Completed" - creates it if necessary
    • getCommandResponseParameters

      Returns all repetitions of Command Response Parameters (ECR-3).
    • getEcr3_CommandResponseParameters

      Returns all repetitions of Command Response Parameters (ECR-3).
    • 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

      Returns a specific repetition of ECR-3: "Command Response Parameters" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • 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

      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

      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

      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

      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