Class RQI_I01_PROVIDER

All Implemented Interfaces:
Group, Structure, Visitable, Serializable

public class RQI_I01_PROVIDER extends AbstractGroup

Represents a RQI_I01_PROVIDER 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: PRD (Provider Data)
  • 2: CTD (Contact Data) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.4"
    • getPRD

      public PRD getPRD()
      Returns PRD (Provider Data) - creates it if necessary
    • getCTD

      public CTD getCTD()
      Returns the first repetition of CTD (Contact Data) - creates it if necessary
    • getCTD

      public CTD getCTD(int rep)
      Returns a specific repetition of CTD (Contact Data) - 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.
    • getCTDReps

      public int getCTDReps()
      Returns the number of existing repetitions of CTD
    • getCTDAll

      public List<CTD> getCTDAll() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertCTD

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

      public CTD insertCTD(int rep) throws HL7Exception
      Inserts a specific repetition of CTD (Contact Data)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeCTD

      public CTD removeCTD(int rep) throws HL7Exception
      Removes a specific repetition of CTD (Contact Data)
      Throws:
      HL7Exception
      See Also: