Class ADT_AXX_INSURANCE

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class ADT_AXX_INSURANCE extends AbstractGroup

Represents a ADT_AXX_INSURANCE 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: IN1 ()
  • 2: IN2 () optional
  • 3: IN3 () optional repeating
  • 4: ROL () optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.4"
    • getIN1

      public IN1 getIN1()
      Returns IN1 () - creates it if necessary
    • getIN2

      public IN2 getIN2()
      Returns IN2 () - creates it if necessary
    • getIN3

      public IN3 getIN3()
      Returns the first repetition of IN3 () - creates it if necessary
    • getIN3

      public IN3 getIN3(int rep)
      Returns a specific repetition of IN3 () - 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.
    • getIN3Reps

      public int getIN3Reps()
      Returns the number of existing repetitions of IN3
    • getIN3All

      public List<IN3> getIN3All() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertIN3

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

      public IN3 insertIN3(int rep) throws HL7Exception
      Inserts a specific repetition of IN3 ()
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeIN3

      public IN3 removeIN3(int rep) throws HL7Exception
      Removes a specific repetition of IN3 ()
      Throws:
      HL7Exception
      See Also:
    • 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: