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.