All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class DDI extends AbstractComposite

Represents an HL7 DDI (Daily Deductible Information) data type. This type consists of the following components:

  • Delay Days (NM)
  • Monetary Amount (MO)
  • 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.
    • getMonetaryAmount

      Returns Monetary Amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getDdi2_MonetaryAmount

      Returns Monetary 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.