Class ADT_AXX_PROCEDURE

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class ADT_AXX_PROCEDURE extends AbstractGroup

Represents a ADT_AXX_PROCEDURE group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:

  • 1: PR1 ()
  • 2: ROL () optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.4"
    • getPR1

      public PR1 getPR1()
      Returns PR1 () - creates it if necessary
    • getROL

      public ROL getROL()
      Returns the first repetition of ROL () - creates it if necessary
    • getROL

      public ROL getROL(int rep)
      Returns a specific repetition of ROL () - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getROLReps

      public int getROLReps()
      Returns the number of existing repetitions of ROL
    • getROLAll

      public List<ROL> getROLAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of ROL.

      Note that unlike getROL(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertROL

      public void insertROL(ROL structure, int rep) throws HL7Exception
      Inserts a specific repetition of ROL ()
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertROL

      public ROL insertROL(int rep) throws HL7Exception
      Inserts a specific repetition of ROL ()
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeROL

      public ROL removeROL(int rep) throws HL7Exception
      Removes a specific repetition of ROL ()
      Throws:
      HL7Exception
      See Also: