All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class SRT extends AbstractComposite

Represents an HL7 SRT (Sort Order) data type. This type consists of the following components:

  • Sort-by Field (ST)
  • Sequencing (ID)
See Also:
  • Constructor Details

    • SRT

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

      public ST getSortByField()
      Returns Sort-by Field (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getSrt1_SortByField

      Returns Sort-by Field (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getSequencing

      public ID getSequencing()
      Returns Sequencing (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getSrt2_Sequencing

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