All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class RI extends AbstractComposite

Represents an HL7 RI (Repeat Interval) data type. This type consists of the following components:

  • Repeat Pattern (IS)
  • Explicit Time Interval (ST)
See Also:
  • Constructor Details

    • RI

      public RI(Message message)
      Creates a new RI 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.
    • getRepeatPattern

      public IS getRepeatPattern()
      Returns Repeat Pattern (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getRi1_RepeatPattern

      Returns Repeat Pattern (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getExplicitTimeInterval

      Returns Explicit Time Interval (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getRi2_ExplicitTimeInterval

      Returns Explicit Time Interval (component 2). This is a convenience method that saves you from casting and handling an exception.