Class DFT_P03_FINANCIAL_TIMING_QUANTITY

java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v251.group.DFT_P03_FINANCIAL_TIMING_QUANTITY
All Implemented Interfaces:
Group, Structure, Visitable, Serializable

Represents a DFT_P03_FINANCIAL_TIMING_QUANTITY 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: TQ1 (Timing/Quantity)
  • 2: TQ2 (Timing/Quantity Relationship) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.5.1"
    • getTQ1

      public TQ1 getTQ1()
      Returns TQ1 (Timing/Quantity) - creates it if necessary
    • getTQ2

      public TQ2 getTQ2()
      Returns the first repetition of TQ2 (Timing/Quantity Relationship) - creates it if necessary
    • getTQ2

      public TQ2 getTQ2(int rep)
      Returns a specific repetition of TQ2 (Timing/Quantity Relationship) - 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.
    • getTQ2Reps

      public int getTQ2Reps()
      Returns the number of existing repetitions of TQ2
    • getTQ2All

      public List<TQ2> getTQ2All() throws HL7Exception

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

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

      Throws:
      HL7Exception
    • insertTQ2

      public void insertTQ2(TQ2 structure, int rep) throws HL7Exception
      Inserts a specific repetition of TQ2 (Timing/Quantity Relationship)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertTQ2

      public TQ2 insertTQ2(int rep) throws HL7Exception
      Inserts a specific repetition of TQ2 (Timing/Quantity Relationship)
      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeTQ2

      public TQ2 removeTQ2(int rep) throws HL7Exception
      Removes a specific repetition of TQ2 (Timing/Quantity Relationship)
      Throws:
      HL7Exception
      See Also: