All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class SN extends AbstractComposite

Represents an HL7 SN (Structured Numeric) data type. This type consists of the following components:

  • Comparator (ST)
  • Num1 (NM)
  • Separator/Suffix (ST)
  • Num2 (NM)
See Also:
  • Constructor Details

    • SN

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

      public ST getComparator()
      Returns Comparator (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getSn1_Comparator

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

      public NM getNum1()
      Returns Num1 (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getSn2_Num1

      public NM getSn2_Num1()
      Returns Num1 (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getSeparatorSuffix

      Returns Separator/Suffix (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSn3_SeparatorSuffix

      Returns Separator/Suffix (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getNum2

      public NM getNum2()
      Returns Num2 (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getSn4_Num2

      public NM getSn4_Num2()
      Returns Num2 (component 4). This is a convenience method that saves you from casting and handling an exception.