Class DDI

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class DDI extends AbstractComposite

Represents an HL7 DDI (daily deductible) data type. This type consists of the following components:

  • delay days (NM)
  • amount (NM)
  • number of days (NM)
See Also:
  • Constructor Details

    • DDI

      public DDI(Message message)
      Creates a new DDI type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getDelayDays

      public NM getDelayDays()
      Returns delay days (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDdi1_DelayDays

      Returns delay days (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getAmount

      public NM getAmount()
      Returns amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDdi2_Amount

      public NM getDdi2_Amount()
      Returns amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getNumberOfDays

      public NM getNumberOfDays()
      Returns number of days (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getDdi3_NumberOfDays

      Returns number of days (component 3). This is a convenience method that saves you from casting and handling an exception.