All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class NR extends AbstractComposite

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

  • Low Value (NM)
  • High Value (NM)
See Also:
  • Constructor Details

    • NR

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

      public NM getLowValue()
      Returns Low Value (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getNr1_LowValue

      public NM getNr1_LowValue()
      Returns Low Value (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getHighValue

      public NM getHighValue()
      Returns High Value (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getNr2_HighValue

      public NM getNr2_HighValue()
      Returns High Value (component 2). This is a convenience method that saves you from casting and handling an exception.